#include <metric.h>
Inheritance diagram for Metric_flat:

Public Member Functions | |
| Metric_flat (const Map &, const Base_vect &) | |
| Standard constructor. | |
| Metric_flat (const Metric_flat &) | |
| Copy constructor. | |
| Metric_flat (const Map &, FILE *) | |
Constructor from a file (see sauve(FILE*) ). | |
| virtual | ~Metric_flat () |
| Destructor. | |
| void | operator= (const Metric_flat &) |
| Assignment to another Metric_flat. | |
| virtual void | operator= (const Sym_tensor &tens) |
Assignment from a Sym_tensor . | |
| const Base_vect * | get_triad () const |
| Returns the vectorial basis (triad) on which the metric is defined. | |
| virtual const Sym_tensor & | cov () const |
| Read-only access to the covariant representation. | |
| virtual const Sym_tensor & | con () const |
| Read-only access to the contravariant representation. | |
| virtual const Connection & | connect () const |
| Returns the connection. | |
| virtual const Scalar & | ricci_scal () const |
| Returns the Ricci scalar. | |
| virtual const Scalar & | determinant () const |
| Returns the determinant. | |
| virtual void | sauve (FILE *) const |
| Save in a file. | |
| const Map & | get_mp () const |
| Returns the mapping. | |
| const Sym_tensor & | ricci () const |
Returns the Ricci tensor (given by the Connection p_connect ). | |
| virtual const Vector & | radial_vect () const |
| Returns the radial vector normal to a spherical slicing and pointing toward spatial infinity. | |
Protected Member Functions | |
| virtual ostream & | operator>> (ostream &) const |
| Operator >> (virtual function called by the operator <<). | |
| void | del_deriv () const |
| Deletes all the derived quantities. | |
| void | set_der_0x0 () const |
Sets to 0x0 all the pointers on derived quantities. | |
| void | del_tensor_depend () const |
Deletes all the derivative members of the Tensor contained in tensor_depend . | |
| void | set_tensor_depend_0x0 () const |
Sets all elements of tensor_depend to 0x0. | |
Protected Attributes | |
| const Base_vect * | triad |
| Vectorial basis (triad) with respect to which the components of the flat metric are defined. | |
| const Map *const | mp |
| Reference mapping. | |
| Sym_tensor * | p_met_cov |
| Pointer on the contravariant representation. | |
| Sym_tensor * | p_met_con |
| Pointer on the covariant representation. | |
| Connection * | p_connect |
| Connection associated with the metric. | |
| Scalar * | p_ricci_scal |
| Pointer on the Ricci scalar. | |
| Vector * | p_radial_vect |
| Pointer to the radial vector normal to a spherical slicing and pointing toward spatial infinity. | |
| Scalar * | p_determinant |
| Pointer on the determinant. | |
| 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 . | |
Friends | |
| class | Tensor |
| ostream & | operator<< (ostream &, const Metric &) |
| Display. | |
()
Definition at line 257 of file metric.h.
|
||||||||||||
|
Standard constructor. Standard constructor from a mapping and a triad. Definition at line 69 of file metric_flat.C. References cov(). |
|
|
Copy constructor.
Definition at line 78 of file metric_flat.C. |
|
||||||||||||
|
Constructor from a file (see
Definition at line 84 of file metric_flat.C. |
|
|
Destructor.
Definition at line 96 of file metric_flat.C. |
|
|
Read-only access to the contravariant representation.
Reimplemented from Metric. Definition at line 146 of file metric_flat.C. References Metric::mp, Metric::p_met_con, Tensor::set(), Tensor::std_spectral_base(), and triad. |
|
|
Returns the connection.
Reimplemented from Metric. Definition at line 168 of file metric_flat.C. References Metric::mp, Metric::p_connect, and triad. |
|
|
Read-only access to the covariant representation.
Reimplemented from Metric. Definition at line 127 of file metric_flat.C. References Metric::mp, Metric::p_met_cov, Tensor::set(), Tensor::std_spectral_base(), and triad. |
|
|
Deletes all the derived quantities.
Definition at line 169 of file metric.C. References Metric::p_connect, Metric::p_determinant, Metric::p_radial_vect, Metric::p_ricci_scal, and Metric::set_der_0x0(). |
|
|
Deletes all the derivative members of the
Those quantities had been previously calculated using Definition at line 190 of file metric.C. References Metric::tensor_depend. |
|
|
Returns the determinant.
This determinant is stored as a Reimplemented from Metric. Definition at line 207 of file metric_flat.C. References Metric::mp, Metric::p_determinant, and Scalar::set_etat_one(). |
|
|
Returns the mapping.
Definition at line 198 of file metric.h. References Metric::mp. |
|
|
Returns the vectorial basis (triad) on which the metric is defined.
Definition at line 305 of file metric.h. References triad. |
|
|
Assignment from a
In principle, this method should not be used for a Reimplemented from Metric. Definition at line 112 of file metric_flat.C. |
|
|
Assignment to another Metric_flat.
Definition at line 105 of file metric_flat.C. References Metric::operator=(), and triad. |
|
|
Operator >> (virtual function called by the operator <<).
Reimplemented from Metric. Definition at line 234 of file metric_flat.C. References triad. |
|
|
Returns the radial vector normal to a spherical slicing and pointing toward spatial infinity.
Definition at line 355 of file metric.C. References Metric::p_radial_vect, Vector::set(), and sqrt(). |
|
|
Returns the Ricci tensor (given by the
Definition at line 331 of file metric.C. References Metric::connect(), and Connection::ricci(). |
|
|
Returns the Ricci scalar.
Reimplemented from Metric. Definition at line 194 of file metric_flat.C. References Metric::mp, Metric::p_ricci_scal, and Scalar::set_etat_zero(). |
|
|
Save in a file.
Reimplemented from Metric. Definition at line 224 of file metric_flat.C. |
|
|
Sets to
Definition at line 181 of file metric.C. References Metric::p_connect, Metric::p_determinant, Metric::p_radial_vect, and Metric::p_ricci_scal. |
|
|
Sets all elements of
Definition at line 201 of file metric.C. References Metric::tensor_depend. |
|
||||||||||||
|
Display.
|
|
|
Reference mapping.
|
|
|
Connection associated with the metric.
|
|
|
Pointer on the determinant.
|
|
|
Pointer on the covariant representation.
|
|
|
Pointer on the contravariant representation.
|
|
|
Pointer to the radial vector normal to a spherical slicing and pointing toward spatial infinity.
|
|
|
Pointer on the Ricci scalar.
Remark: the Ricci tensor is stored in the connection (member |
|
|
Pointer on the dependancies, that means the array contains pointers on all the
|
|
|
Vectorial basis (triad) with respect to which the components of the flat metric are defined.
|
1.4.6