#include <connection.h>
Inheritance diagram for Connection:

Public Member Functions | |
| Connection (const Tensor_sym &delta_i, const Metric_flat &flat_met_i) | |
| Standard constructor ab initio. | |
| Connection (const Metric &met, const Metric_flat &flat_met_i) | |
| Standard constructor for a connection associated with a metric. | |
| Connection (const Connection &) | |
| Copy constructor. | |
| virtual | ~Connection () |
| Destructor. | |
| void | operator= (const Connection &) |
Assignment to another Connection. | |
| void | update (const Tensor_sym &delta_i) |
| Update the connection when it is defined ab initio. | |
| void | update (const Metric &met) |
| Update the connection when it is associated with a metric. | |
| const Map & | get_mp () const |
| Returns the mapping. | |
| const Tensor_sym & | get_delta () const |
Returns the tensor which defines the connection with respect to the flat one: is the difference between the connection coefficients and the connection coefficients of the flat connection. | |
| virtual Tensor * | p_derive_cov (const Tensor &tens) const |
Computes the covariant derivative of a tensor (with respect to the current connection). | |
| 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. | |
Protected Member Functions | |
| Connection (const Map &, const Base_vect &) | |
| Constructor for 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. | |
Protected Attributes | |
| const Map *const | mp |
| Reference mapping. | |
| const Base_vect *const | triad |
Triad with respect to which the connection coefficients are defined. | |
| Tensor_sym | delta |
Tensor which defines the connection with respect to the flat one: is the difference between the connection coefficients and the connection coefficients of the flat connection. | |
| bool | assoc_metric |
| Indicates whether the connection is associated with a metric (in which case the Ricci tensor is symmetric, i.e. | |
| Tensor * | p_ricci |
| Pointer of the Ricci tensor associated with the connection. | |
Private Member Functions | |
| void | fait_delta (const Metric &) |
Computes the difference between the connection coefficients and that a the flat connection in the case where the current connection is associated with a metric. | |
Private Attributes | |
| const Metric_flat * | flat_met |
Flat metric with respect to which (member delta ) is defined. | |
()
This class deals only with torsion-free connections.
Note that we use the MTW convention for the indices of the connection coefficients with respect to a given triad
:
Definition at line 109 of file connection.h.
|
||||||||||||
|
Standard constructor ab initio.
Definition at line 122 of file connection.C. References Tensor::get_index_type(), Tensor::get_valence(), set_der_0x0(), Tensor_sym::sym_index1(), and Tensor_sym::sym_index2(). |
|
||||||||||||
|
Standard constructor for a connection associated with a metric.
Definition at line 143 of file connection.C. References fait_delta(), and set_der_0x0(). |
|
|
Copy constructor.
Definition at line 159 of file connection.C. References set_der_0x0(). |
|
||||||||||||
|
Constructor for derived classes.
Definition at line 172 of file connection.C. References set_der_0x0(). |
|
|
Destructor.
Definition at line 188 of file connection.C. References del_deriv(). |
|
|
Deletes all the derived quantities.
Definition at line 198 of file connection.C. References p_ricci, and set_der_0x0(). |
|
|
Computes the difference
Definition at line 271 of file connection.C. References Metric::con(), Metric::cov(), delta, Tensor_sym::derive_cov(), flat_met, and Tensor::set(). |
|
|
Returns the tensor
The connection coefficients with respect to the triad
Note that
Definition at line 267 of file connection.h. References delta. |
|
|
Returns the mapping.
Definition at line 249 of file connection.h. References mp. |
|
|
Assignment to another
Definition at line 218 of file connection.C. References del_deriv(), delta, flat_met, and triad. |
|
|
Computes the covariant derivative
The extra index (with respect to the indices of
Reimplemented in Connection_flat, Connection_fspher, and Connection_fcart. Definition at line 300 of file connection.C. References flat_met, Tensor::get_index_type(), Tensor::get_n_comp(), Tensor::get_triad(), Tensor::get_valence(), mp, Itbl::set(), Tensor_sym::sym_index1(), Tensor_sym::sym_index2(), and triad. |
|
|
Computes the divergence of a tensor
The divergence is taken with respect of the last index of
where
Reimplemented in Connection_flat, Connection_fspher, and Connection_fcart. Definition at line 456 of file connection.C. References Tensor::get_index_type(), Tensor::get_n_comp(), Tensor::get_triad(), Tensor::get_valence(), mp, Itbl::set(), Tensor_sym::sym_index1(), Tensor_sym::sym_index2(), and triad. |
|
|
Computes (if not up to date) and returns the Ricci tensor associated with the current connection.
Reimplemented in Connection_flat. Definition at line 655 of file connection.C. References assoc_metric, delta, Tensor_sym::derive_cov(), flat_met, mp, p_ricci, Scalar::set_etat_zero(), Tensor::set_etat_zero(), and triad. |
|
|
Sets to
Definition at line 206 of file connection.C. References p_ricci. |
|
|
Update the connection when it is associated with a metric.
Definition at line 248 of file connection.C. References assoc_metric, del_deriv(), fait_delta(), and flat_met. |
|
|
Update the connection when it is defined ab initio.
Definition at line 228 of file connection.C. References assoc_metric, del_deriv(), delta, flat_met, Tensor::get_index_type(), Tensor::get_valence(), Tensor_sym::sym_index1(), and Tensor_sym::sym_index2(). |
|
|
Indicates whether the connection is associated with a metric (in which case the Ricci tensor is symmetric, i.e.
the actual type of Definition at line 143 of file connection.h. |
|
|
Tensor
The connection coefficients with respect to the triad
Note that Definition at line 137 of file connection.h. |
|
|
Flat metric with respect to which
Definition at line 152 of file connection.h. |
|
|
Reference mapping.
Definition at line 115 of file connection.h. |
|
|
Pointer of the Ricci tensor associated with the connection.
Definition at line 160 of file connection.h. |
|
|
Triad
Definition at line 120 of file connection.h. |
1.4.6