26#ifndef __CONNECTION_H_
27#define __CONNECTION_H_
Cartesian vectorial bases (triads).
Spherical orthonormal vectorial bases (triads).
Vectorial bases (triads) with respect to which the tensorial components are defined.
void operator=(const Connection_fcart &)
Assignment to another Connection_fcart.
virtual ~Connection_fcart()
destructor
virtual Tensor * p_divergence(const Tensor &tens) const
Computes the divergence of a tensor (with respect to the current connection).
virtual Tensor * p_derive_cov(const Tensor &tens) const
Computes the covariant derivative of a tensor (with respect to the current connection).
virtual const Tensor & ricci() const
Computes (if not up to date) and returns the Ricci tensor associated with the current connection.
virtual Tensor * p_derive_cov(const Tensor &tens) const =0
Computes the covariant derivative of a tensor (with respect to the current connection).
virtual ~Connection_flat()
destructor
virtual Tensor * p_divergence(const Tensor &tens) const =0
Computes the divergence of a tensor (with respect to the current connection).
void operator=(const Connection_flat &)
Assignment to another Connection_flat.
void operator=(const Connection_fspher &)
Assignment to another Connection_fspher.
virtual Tensor * p_divergence(const Tensor &tens) const
Computes the divergence of a tensor (with respect to the current connection).
virtual ~Connection_fspher()
destructor
virtual Tensor * p_derive_cov(const Tensor &tens) const
Computes the covariant derivative of a tensor (with respect to the current connection).
Tensor * p_ricci
Pointer of the Ricci tensor associated with the connection.
bool assoc_metric
Indicates whether the connection is associated with a metric (in which case the Ricci tensor is symme...
const Metric_flat * flat_met
Flat metric with respect to which (member delta ) is defined.
const Tensor_sym & get_delta() const
Returns the tensor which defines the connection with respect to the flat one: is the difference bet...
void operator=(const Connection &)
Assignment to another Connection.
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
virtual ~Connection()
Destructor.
void update(const Tensor_sym &delta_i)
Update the connection when it is defined ab initio.
const Base_vect *const triad
Triad with respect to which the connection coefficients are defined.
virtual Tensor * p_derive_cov(const Tensor &tens) const
Computes the covariant derivative of a tensor (with respect to the current connection).
const Map *const mp
Reference mapping.
Tensor_sym delta
Tensor which defines the connection with respect to the flat one: is the difference between the con...
virtual const Tensor & ricci() const
Computes (if not up to date) and returns the Ricci tensor associated with the current connection.
const Map & get_mp() const
Returns the mapping.
virtual Tensor * p_divergence(const Tensor &tens) const
Computes the divergence of a tensor (with respect to the current connection).
void fait_delta(const Metric &)
Computes the difference between the connection coefficients and that a the flat connection in the ca...
void del_deriv() const
Deletes all the derived quantities.
Base class for coordinate mappings.
Flat metric for tensor calculation.
Metric for tensor calculation.
Symmetric tensors (with respect to two of their arguments).