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