|
LORENE
|
Class Connection_fspher. More...
#include <connection.h>
Public Member Functions | |
| Connection_fspher (const Map &, const Base_vect_spher &) | |
| Contructor from a spherical flat-metric-orthonormal basis. | |
| Connection_fspher (const Connection_fspher &) | |
| Copy constructor. | |
| virtual | ~Connection_fspher () |
| destructor | |
| void | operator= (const Connection_fspher &) |
Assignment to another Connection_fspher. | |
| virtual Tensor * | p_derive_cov (const Tensor &tens) const |
Computes the covariant derivative ![]() ![]() | |
| virtual Tensor * | p_divergence (const Tensor &tens) const |
Computes the divergence of a tensor ![]() | |
| virtual const Tensor & | ricci () const |
| Computes (if not up to date) and returns the Ricci tensor associated with the current 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 ![]() ![]() ![]() ![]() | |
Protected Member Functions | |
| 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 ![]() | |
| Tensor_sym | delta |
Tensor ![]() ![]() ![]() ![]() | |
| 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 ![]() | |
Private Attributes | |
| const Metric_flat * | flat_met |
Flat metric with respect to which ![]() delta ) is defined. | |
Class Connection_fspher.
()
Class for connections associated with a flat metric and given onto an orthonormal spherical triad.
Definition at line 452 of file connection.h.
| Lorene::Connection_fspher::Connection_fspher | ( | const Map & | mpi, |
| const Base_vect_spher & | bi ) |
Contructor from a spherical flat-metric-orthonormal basis.
Definition at line 142 of file connection_fspher.C.
References Lorene::Connection_flat::Connection_flat(), and Lorene::Map().
| Lorene::Connection_fspher::Connection_fspher | ( | const Connection_fspher & | ci | ) |
Copy constructor.
Definition at line 148 of file connection_fspher.C.
References Lorene::Connection_flat::Connection_flat(), and Connection_fspher().
|
virtual |
destructor
Definition at line 158 of file connection_fspher.C.
|
protectedinherited |
Deletes all the derived quantities.
Definition at line 205 of file connection.C.
References p_ricci, and set_der_0x0().
|
privateinherited |
Computes the difference 
Definition at line 278 of file connection.C.
References Lorene::Metric::con(), Lorene::Metric::cov(), delta, Lorene::Tensor_sym::derive_cov(), and flat_met.
|
inlineinherited |
Returns the tensor 



The connection coefficients with respect to the triad 
![\[ \Gamma^i_{\ jk} := \langle e^i, \nabla_{e_k} \, e_j \rangle
\]](form_210.png)
Note that 
delta}(i,j,k) = 
Definition at line 271 of file connection.h.
References delta.
|
inlineinherited |
| void Lorene::Connection_fspher::operator= | ( | const Connection_fspher & | ) |
Assignment to another Connection_fspher.
Definition at line 168 of file connection_fspher.C.
References Connection_fspher().
Computes the covariant derivative 

The extra index (with respect to the indices of \f$T\f$) of \f$\nabla T\f$ is chosen to be the \b last one. This convention agrees with that of MTW (see Eq. (10.17) of MTW). For instance, if \f$T\f$ is a 1-form, whose components w.r.t. the triad \f$e^i\f$ are \f$T_i\f$: \f$T=T_i \; e^i\f$, then the covariant derivative of \f$T\f$ is the bilinear form \f$\nabla T\f$ whose components \f$\nabla_j T_i\f$ are such that \f[ \nabla T = \nabla_j T_i \; e^i \otimes e^j \f] @param tens tensor \f$T\f$ @return pointer on the covariant derivative \f$\nabla T\f$ ; this pointer is polymorphe, i.e. it is a pointer on a \c Vector if the argument is a \c Scalar , and on a \c Tensor otherwise. NB: The corresponding memory is allocated by the method \c p_derive_cov() and must be deallocated by the user afterwards.
Implements Lorene::Connection_flat.
Definition at line 183 of file connection_fspher.C.
References Lorene::Scalar::div_r_dzpuis(), Lorene::Scalar::div_tant(), Lorene::dsdr(), Lorene::Tensor::get_index_type(), Lorene::Tensor::get_n_comp(), Lorene::Tensor::get_triad(), Lorene::Tensor::get_valence(), Lorene::Tensor::indices(), Lorene::Connection::mp, Lorene::Itbl::set(), Lorene::Tensor::set(), Lorene::srdsdt(), Lorene::srstdsdp(), Lorene::Tensor_sym::sym_index1(), Lorene::Tensor_sym::sym_index2(), and Lorene::Connection::triad.
Computes the divergence of a tensor 
The divergence is taken with respect of the last index of 





![\[ {\rm div} T = \nabla_k T^{ik} \; e_i
\]](form_218.png)
where 
| tens | tensor ![]() |

Scalar if 
Vector , on a Vector if 
Tensor otherwise. NB: The corresponding memory is allocated by the method p_divergence() and must be deallocated by the user afterwards. Implements Lorene::Connection_flat.
Definition at line 431 of file connection_fspher.C.
References Lorene::Scalar::div_r_dzpuis(), Lorene::Scalar::div_tant(), Lorene::Tensor::get_index_type(), Lorene::Tensor::get_n_comp(), Lorene::Tensor::get_triad(), Lorene::Tensor::get_valence(), Lorene::Tensor::indices(), Lorene::Connection::mp, Lorene::Itbl::set(), Lorene::Tensor::set(), Lorene::Tensor_sym::sym_index1(), Lorene::Tensor_sym::sym_index2(), and Lorene::Connection::triad.
|
virtualinherited |
Computes (if not up to date) and returns the Ricci tensor associated with the current connection.
Reimplemented from Lorene::Connection.
Definition at line 121 of file connection_flat.C.
References Lorene::Connection::mp, Lorene::Connection::p_ricci, and Lorene::Connection::triad.
|
protectedinherited |
Sets to 0x0 all the pointers on derived quantities.
Definition at line 213 of file connection.C.
References p_ricci.
|
inherited |
Update the connection when it is associated with a metric.
| met | Metric to which the connection is associated |
Definition at line 255 of file connection.C.
References assoc_metric, del_deriv(), fait_delta(), and flat_met.
|
inherited |
Update the connection when it is defined ab initio.
| delta_i | tensor ![]() ![]() ![]() ![]() ![]() |
Definition at line 235 of file connection.C.
References assoc_metric, del_deriv(), delta, flat_met, Lorene::Tensor::get_index_type(), Lorene::Tensor::get_valence(), Lorene::Tensor_sym::sym_index1(), and Lorene::Tensor_sym::sym_index2().
|
protectedinherited |
Indicates whether the connection is associated with a metric (in which case the Ricci tensor is symmetric, i.e.
the actual type of p_ricci is a Sym_tensor )
Definition at line 147 of file connection.h.
|
protectedinherited |
Tensor 



The connection coefficients with respect to the triad 
![\[ \Gamma^i_{\ jk} := \langle e^i, \nabla_{e_k} \, e_j \rangle
\]](form_210.png)
Note that 
Definition at line 141 of file connection.h.
|
privateinherited |
Flat metric with respect to which 
delta ) is defined.
Definition at line 156 of file connection.h.
|
protectedinherited |
Reference mapping.
Definition at line 119 of file connection.h.
|
mutableprotectedinherited |
Pointer of the Ricci tensor associated with the connection.
Definition at line 164 of file connection.h.
|
protectedinherited |
Triad 
Definition at line 124 of file connection.h.