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

Public Member Functions | |
| Metric (const Sym_tensor &tens) | |
Standard constructor from a Sym_tensor . | |
| Metric (const Metric &met) | |
| Copy constructor. | |
| Metric (const Map &, FILE *) | |
Constructor from a file (see sauve(FILE*) ). | |
| virtual | ~Metric () |
| Destructor. | |
| void | operator= (const Metric &met) |
| Assignment to another Metric. | |
| virtual void | operator= (const Sym_tensor &tens) |
Assignment from a Sym_tensor . | |
| const Map & | get_mp () const |
| Returns the mapping. | |
| 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. | |
| const Sym_tensor & | ricci () const |
Returns the Ricci tensor (given by the Connection p_connect ). | |
| virtual const Scalar & | ricci_scal () const |
| Returns the Ricci scalar. | |
| virtual const Vector & | radial_vect () const |
| Returns the radial vector normal to a spherical slicing and pointing toward spatial infinity. | |
| virtual const Scalar & | determinant () const |
| Returns the determinant. | |
| virtual void | sauve (FILE *) const |
| Save in a file. | |
Protected Member Functions | |
| Metric (const Map &mpi) | |
| Simplified constructor used by derived classes. | |
| 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. | |
| virtual ostream & | operator>> (ostream &) const |
| Operator >> (virtual function called by the operator <<). | |
Protected Attributes | |
| 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 86 of file metric.h.
|
|
Standard constructor from a The symmetric tensor can be either the covariant or the contravariant representation of the metric. Definition at line 97 of file metric.C. References Tensor::get_index_type(), p_met_con, p_met_cov, set_der_0x0(), and set_tensor_depend_0x0(). |
|
|
Copy constructor.
Definition at line 118 of file metric.C. References p_met_con, p_met_cov, set_der_0x0(), and set_tensor_depend_0x0(). |
|
||||||||||||
|
Constructor from a file (see
|
|
|
Simplified constructor used by derived classes.
Definition at line 140 of file metric.C. References set_der_0x0(), and set_tensor_depend_0x0(). |
|
|
Destructor.
Definition at line 153 of file metric.C. References del_deriv(), del_tensor_depend(), p_met_con, and p_met_cov. |
|
|
Read-only access to the contravariant representation.
Reimplemented in Metric_flat. Definition at line 283 of file metric.C. References Sym_tensor::inverse(), p_met_con, and p_met_cov. |
|
|
Returns the connection.
Reimplemented in Metric_flat. Definition at line 294 of file metric.C. References Map::flat_met_cart(), Map::flat_met_spher(), Tensor::get_triad(), mp, p_connect, p_met_con, and p_met_cov. |
|
|
Read-only access to the covariant representation.
Reimplemented in Metric_flat. Definition at line 273 of file metric.C. References Sym_tensor::inverse(), p_met_con, and p_met_cov. |
|
|
Deletes all the derived quantities.
Definition at line 169 of file metric.C. References p_connect, p_determinant, p_radial_vect, p_ricci_scal, and 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 tensor_depend. |
|
|
Returns the determinant.
This determinant is stored as a Reimplemented in Metric_flat. Definition at line 385 of file metric.C. References cov(), mp, and p_determinant. |
|
|
Returns the mapping.
Definition at line 198 of file metric.h. References mp. |
|
|
Assignment from a The allocated representation depends on the type of the input tensor indices. All the other members are deleted. Reimplemented in Metric_flat. Definition at line 239 of file metric.C. References del_deriv(), Tensor::get_index_type(), Tensor::get_mp(), mp, p_met_con, and p_met_cov. |
|
|
Assignment to another Metric.
Definition at line 213 of file metric.C. References del_deriv(), mp, p_met_con, and p_met_cov. |
|
|
Operator >> (virtual function called by the operator <<).
Reimplemented in Metric_flat. Definition at line 439 of file metric.C. References p_connect, p_determinant, p_met_con, p_met_cov, and p_ricci_scal. |
|
|
Returns the radial vector normal to a spherical slicing and pointing toward spatial infinity.
Definition at line 355 of file metric.C. References p_radial_vect, Vector::set(), and sqrt(). |
|
|
Returns the Ricci tensor (given by the
Definition at line 331 of file metric.C. References connect(), and Connection::ricci(). |
|
|
Returns the Ricci scalar.
Reimplemented in Metric_flat. Definition at line 343 of file metric.C. References p_ricci_scal, and ricci(). |
|
|
Save in a file.
Reimplemented in Metric_flat. Definition at line 407 of file metric.C. References fwrite_be(), p_met_con, p_met_cov, and Tensor_sym::sauve(). |
|
|
Sets to
Definition at line 181 of file metric.C. References p_connect, p_determinant, p_radial_vect, and p_ricci_scal. |
|
|
Sets all elements of
Definition at line 201 of file metric.C. References 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
|
1.4.6