81 #include "connection.h" 83 #define N_TENSOR_DEPEND 200 243 virtual void sauve(FILE *)
const ;
250 virtual ostream&
operator>>(ostream& )
const ;
335 virtual void sauve(FILE *)
const ;
339 virtual ostream&
operator>>(ostream& )
const ;
Metric for tensor calculation.
virtual const Sym_tensor & con() const
Read-only access to the contravariant representation.
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
virtual const Scalar & determinant() const
Returns the determinant.
const Map *const mp
Reference mapping.
Scalar * p_determinant
Pointer on the determinant.
Flat metric for tensor calculation.
Tensor field of valence 0 (or component of a tensorial field).
Base class for coordinate mappings.
const Base_vect * get_triad() const
Returns the vectorial basis (triad) on which the metric is defined.
virtual const Vector & radial_vect() const
Returns the radial vector normal to a spherical slicing and pointing toward spatial infinity...
void set_tensor_depend_0x0() const
Sets all elements of tensor_depend to 0x0.
const Sym_tensor & ricci() const
Returns the Ricci tensor (given by the Connection p_connect )
void del_tensor_depend() const
Deletes all the derivative members of the Tensor contained in tensor_depend .
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
void operator=(const Metric &met)
Assignment to another Metric.
Tensor field of valence 1.
friend ostream & operator<<(ostream &, const Metric &)
Display.
Vectorial bases (triads) with respect to which the tensorial components are defined.
const Map & get_mp() const
Returns the mapping.
Vector * p_radial_vect
Pointer to the radial vector normal to a spherical slicing and pointing toward spatial infinity...
Sym_tensor * p_met_con
Pointer on the covariant representation.
virtual void sauve(FILE *) const
Save in a file.
virtual void sauve(FILE *) const
Save in a file.
virtual const Sym_tensor & con() const
Read-only access to the contravariant representation.
Connection * p_connect
Connection associated with the metric.
virtual const Connection & connect() const
Returns the connection.
virtual const Scalar & ricci_scal() const
Returns the Ricci scalar.
virtual const Connection & connect() const
Returns the connection.
Metric_flat(const Map &, const Base_vect &)
Standard constructor.
virtual ~Metric_flat()
Destructor.
virtual const Scalar & determinant() const
Returns the determinant.
virtual const Sym_tensor & cov() const
Read-only access to the covariant representation.
virtual const Sym_tensor & cov() const
Read-only access to the covariant representation.
const Base_vect * triad
Vectorial basis (triad) with respect to which the components of the flat metric are defined...
const Tensor * tensor_depend[N_TENSOR_DEPEND]
Pointer on the dependancies, that means the array contains pointers on all the Tensor whom derivative...
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Scalar * p_ricci_scal
Pointer on the Ricci scalar.
Metric(const Sym_tensor &tens)
Standard constructor from a Sym_tensor .
void del_deriv() const
Deletes all the derived quantities.
virtual const Scalar & ricci_scal() const
Returns the Ricci scalar.
Sym_tensor * p_met_cov
Pointer on the contravariant representation.
Class intended to describe valence-2 symmetric tensors.
virtual ~Metric()
Destructor.
void operator=(const Metric_flat &)
Assignment to another Metric_flat.