LORENE
|
Flat metric for tensor calculation. More...
#include <metric.h>
Public Member Functions | |
Metric_flat (const Map &, const Base_vect &) | |
Standard constructor. More... | |
Metric_flat (const Metric_flat &) | |
Copy constructor. More... | |
Metric_flat (const Map &, FILE *) | |
Constructor from a file (see sauve(FILE*) ) More... | |
virtual | ~Metric_flat () |
Destructor. More... | |
void | operator= (const Metric_flat &) |
Assignment to another Metric_flat. More... | |
virtual void | operator= (const Sym_tensor &tens) |
Assignment from a Sym_tensor . More... | |
const Base_vect * | get_triad () const |
Returns the vectorial basis (triad) on which the metric is defined. More... | |
virtual const Sym_tensor & | cov () const |
Read-only access to the covariant representation. More... | |
virtual const Sym_tensor & | con () const |
Read-only access to the contravariant representation. More... | |
virtual const Connection & | connect () const |
Returns the connection. More... | |
virtual const Scalar & | ricci_scal () const |
Returns the Ricci scalar. More... | |
virtual const Scalar & | determinant () const |
Returns the determinant. More... | |
virtual void | sauve (FILE *) const |
Save in a file. More... | |
const Map & | get_mp () const |
Returns the mapping. More... | |
const Sym_tensor & | ricci () const |
Returns the Ricci tensor (given by the Connection p_connect ) More... | |
virtual const Vector & | radial_vect () const |
Returns the radial vector normal to a spherical slicing and pointing toward spatial infinity. More... | |
Protected Member Functions | |
virtual ostream & | operator>> (ostream &) const |
Operator >> (virtual function called by the operator <<). More... | |
void | del_deriv () const |
Deletes all the derived quantities. More... | |
void | set_der_0x0 () const |
Sets to 0x0 all the pointers on derived quantities. More... | |
void | del_tensor_depend () const |
Deletes all the derivative members of the Tensor contained in tensor_depend . More... | |
void | set_tensor_depend_0x0 () const |
Sets all elements of tensor_depend to 0x0. More... | |
Protected Attributes | |
const Base_vect * | triad |
Vectorial basis (triad) with respect to which the components of the flat metric are defined. More... | |
const Map *const | mp |
Reference mapping. More... | |
Sym_tensor * | p_met_cov |
Pointer on the contravariant representation. More... | |
Sym_tensor * | p_met_con |
Pointer on the covariant representation. More... | |
Connection * | p_connect |
Connection associated with the metric. More... | |
Scalar * | p_ricci_scal |
Pointer on the Ricci scalar. More... | |
Vector * | p_radial_vect |
Pointer to the radial vector normal to a spherical slicing and pointing toward spatial infinity. More... | |
Scalar * | p_determinant |
Pointer on the determinant. More... | |
const Tensor * | tensor_depend [N_TENSOR_DEPEND] |
Pointer on the dependancies, that means the array contains pointers on all the Tensor whom derivative members have been calculated using *this . More... | |
Standard constructor.
Standard constructor from a mapping and a triad.
Definition at line 79 of file metric_flat.C.
References cov().
Lorene::Metric_flat::Metric_flat | ( | const Metric_flat & | meti | ) |
Copy constructor.
Definition at line 88 of file metric_flat.C.
Lorene::Metric_flat::Metric_flat | ( | const Map & | mpi, |
FILE * | fd | ||
) |
Constructor from a file (see sauve(FILE*)
)
Definition at line 94 of file metric_flat.C.
|
virtual |
Destructor.
Definition at line 106 of file metric_flat.C.
|
virtual |
Read-only access to the contravariant representation.
Reimplemented from Lorene::Metric.
Definition at line 156 of file metric_flat.C.
References Lorene::Metric::mp, Lorene::Metric::p_met_con, Lorene::Tensor::set(), Lorene::Tensor::std_spectral_base(), and triad.
|
virtual |
Returns the connection.
Reimplemented from Lorene::Metric.
Definition at line 178 of file metric_flat.C.
References Lorene::Metric::mp, Lorene::Metric::p_connect, and triad.
|
virtual |
Read-only access to the covariant representation.
Reimplemented from Lorene::Metric.
Definition at line 137 of file metric_flat.C.
References Lorene::Metric::mp, Lorene::Metric::p_met_cov, Lorene::Tensor::set(), Lorene::Tensor::std_spectral_base(), and triad.
|
protectedinherited |
Deletes all the derived quantities.
Definition at line 179 of file metric.C.
References Lorene::Metric::p_connect, Lorene::Metric::p_determinant, Lorene::Metric::p_radial_vect, Lorene::Metric::p_ricci_scal, and Lorene::Metric::set_der_0x0().
|
protectedinherited |
Deletes all the derivative members of the Tensor
contained in tensor_depend
.
Those quantities had been previously calculated using *this
.
Definition at line 200 of file metric.C.
References Lorene::Tensor::del_derive_met(), Lorene::Tensor::get_place_met(), Lorene::Metric::set_tensor_depend_0x0(), and Lorene::Metric::tensor_depend.
|
virtual |
Returns the determinant.
This determinant is stored as a Scalar
although it a scalar density. To be a real scalar it must be divided by e.g. the determinant of a flat metric.
Reimplemented from Lorene::Metric.
Definition at line 217 of file metric_flat.C.
References Lorene::Metric::mp, Lorene::Metric::p_determinant, and Lorene::Scalar::set_etat_one().
|
inlineinherited |
|
inline |
void Lorene::Metric_flat::operator= | ( | const Metric_flat & | meti | ) |
Assignment to another Metric_flat.
Definition at line 115 of file metric_flat.C.
References Lorene::Metric::operator=(), and triad.
|
virtual |
Assignment from a Sym_tensor
.
In principle, this method should not be used for a Metric_flat
.
Reimplemented from Lorene::Metric.
Definition at line 122 of file metric_flat.C.
|
protectedvirtual |
Operator >> (virtual function called by the operator <<).
Reimplemented from Lorene::Metric.
Definition at line 244 of file metric_flat.C.
References triad.
|
virtualinherited |
Returns the radial vector normal to a spherical slicing and pointing toward spatial infinity.
Definition at line 365 of file metric.C.
References Lorene::Metric::p_radial_vect, Lorene::Vector::set(), Lorene::sqrt(), and Lorene::Scalar::std_spectral_base().
|
inherited |
Returns the Ricci tensor (given by the Connection
p_connect
)
Definition at line 341 of file metric.C.
References Lorene::Metric::connect(), and Lorene::Connection::ricci().
|
virtual |
Returns the Ricci scalar.
Reimplemented from Lorene::Metric.
Definition at line 204 of file metric_flat.C.
References Lorene::Metric::mp, Lorene::Metric::p_ricci_scal, and Lorene::Scalar::set_etat_zero().
|
virtual |
|
protectedinherited |
Sets to 0x0
all the pointers on derived quantities.
Definition at line 191 of file metric.C.
References Lorene::Metric::p_connect, Lorene::Metric::p_determinant, Lorene::Metric::p_radial_vect, and Lorene::Metric::p_ricci_scal.
|
protectedinherited |
Sets all elements of tensor_depend
to 0x0.
Definition at line 211 of file metric.C.
References Lorene::Metric::tensor_depend.
|
protectedinherited |
|
mutableprotectedinherited |
Connection associated with the metric.
|
mutableprotectedinherited |
|
mutableprotectedinherited |
|
mutableprotectedinherited |
|
mutableprotectedinherited |
|
mutableprotectedinherited |
|
mutableprotectedinherited |
|
protected |