Metric_flat Class Reference
[Tensorial fields]

Flat metric for tensor calculation. More...

#include <metric.h>

Inheritance diagram for Metric_flat:
Metric

List of all members.

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_vectget_triad () const
 Returns the vectorial basis (triad) on which the metric is defined.
virtual const Sym_tensorcov () const
 Read-only access to the covariant representation.
virtual const Sym_tensorcon () const
 Read-only access to the contravariant representation.
virtual const Connectionconnect () const
 Returns the connection.
virtual const Scalarricci_scal () const
 Returns the Ricci scalar.
virtual const Scalardeterminant () const
 Returns the determinant.
virtual void sauve (FILE *) const
 Save in a file.
const Mapget_mp () const
 Returns the mapping.
const Sym_tensorricci () const
 Returns the Ricci tensor (given by the Connection p_connect ).
virtual const Vectorradial_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_vecttriad
 Vectorial basis (triad) with respect to which the components of the flat metric are defined.
const Map *const mp
 Reference mapping.
Sym_tensorp_met_cov
 Pointer on the contravariant representation.
Sym_tensorp_met_con
 Pointer on the covariant representation.
Connectionp_connect
 Connection associated with the metric.
Scalarp_ricci_scal
 Pointer on the Ricci scalar.
Vectorp_radial_vect
 Pointer to the radial vector normal to a spherical slicing and pointing toward spatial infinity.
Scalarp_determinant
 Pointer on the determinant.
const Tensortensor_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.

Detailed Description

Flat metric for tensor calculation.

()

Definition at line 257 of file metric.h.


Constructor & Destructor Documentation

Metric_flat::Metric_flat ( const Map mpi,
const Base_vect triadi 
)

Standard constructor.

Standard constructor from a mapping and a triad.

Definition at line 72 of file metric_flat.C.

References cov().

Metric_flat::Metric_flat ( const Metric_flat meti  ) 

Copy constructor.

Definition at line 81 of file metric_flat.C.

Metric_flat::Metric_flat ( const Map mpi,
FILE *  fd 
)

Constructor from a file (see sauve(FILE*) ).

Definition at line 87 of file metric_flat.C.

Metric_flat::~Metric_flat (  )  [virtual]

Destructor.

Definition at line 99 of file metric_flat.C.


Member Function Documentation

const Sym_tensor & Metric_flat::con (  )  const [virtual]

Read-only access to the contravariant representation.

Reimplemented from Metric.

Definition at line 149 of file metric_flat.C.

References Metric::mp, Metric::p_met_con, Tensor::set(), Tensor::std_spectral_base(), and triad.

const Connection & Metric_flat::connect (  )  const [virtual]

Returns the connection.

Reimplemented from Metric.

Definition at line 171 of file metric_flat.C.

References Metric::mp, Metric::p_connect, and triad.

const Sym_tensor & Metric_flat::cov (  )  const [virtual]

Read-only access to the covariant representation.

Reimplemented from Metric.

Definition at line 130 of file metric_flat.C.

References Metric::mp, Metric::p_met_cov, Tensor::set(), Tensor::std_spectral_base(), and triad.

void Metric::del_deriv (  )  const [protected, inherited]

Deletes all the derived quantities.

Definition at line 172 of file metric.C.

References Metric::p_connect, Metric::p_determinant, Metric::p_radial_vect, Metric::p_ricci_scal, and Metric::set_der_0x0().

void Metric::del_tensor_depend (  )  const [protected, inherited]

Deletes all the derivative members of the Tensor contained in tensor_depend .

Those quantities had been previously calculated using *this .

Definition at line 193 of file metric.C.

References Tensor::del_derive_met(), Tensor::get_place_met(), Metric::set_tensor_depend_0x0(), and Metric::tensor_depend.

const Scalar & Metric_flat::determinant (  )  const [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 Metric.

Definition at line 210 of file metric_flat.C.

References Metric::mp, Metric::p_determinant, and Scalar::set_etat_one().

const Map& Metric::get_mp (  )  const [inline, inherited]

Returns the mapping.

Definition at line 198 of file metric.h.

References Metric::mp.

const Base_vect* Metric_flat::get_triad (  )  const [inline]

Returns the vectorial basis (triad) on which the metric is defined.

Definition at line 305 of file metric.h.

References triad.

void Metric_flat::operator= ( const Sym_tensor tens  )  [virtual]

Assignment from a Sym_tensor .

In principle, this method should not be used for a Metric_flat .

Reimplemented from Metric.

Definition at line 115 of file metric_flat.C.

void Metric_flat::operator= ( const Metric_flat meti  ) 

Assignment to another Metric_flat.

Reimplemented from Metric.

Definition at line 108 of file metric_flat.C.

References triad.

ostream & Metric_flat::operator>> ( ostream &  ost  )  const [protected, virtual]

Operator >> (virtual function called by the operator <<).

Reimplemented from Metric.

Definition at line 237 of file metric_flat.C.

References triad.

const Vector & Metric::radial_vect (  )  const [virtual, inherited]

Returns the radial vector normal to a spherical slicing and pointing toward spatial infinity.

Definition at line 358 of file metric.C.

References Metric::p_radial_vect, Vector::set(), and sqrt().

const Sym_tensor & Metric::ricci (  )  const [inherited]

Returns the Ricci tensor (given by the Connection p_connect ).

Definition at line 334 of file metric.C.

References Metric::connect(), and Connection::ricci().

const Scalar & Metric_flat::ricci_scal (  )  const [virtual]

Returns the Ricci scalar.

Reimplemented from Metric.

Definition at line 197 of file metric_flat.C.

References Metric::mp, Metric::p_ricci_scal, and Scalar::set_etat_zero().

void Metric_flat::sauve ( FILE *   )  const [virtual]

Save in a file.

Reimplemented from Metric.

Definition at line 227 of file metric_flat.C.

void Metric::set_der_0x0 (  )  const [protected, inherited]

Sets to 0x0 all the pointers on derived quantities.

Definition at line 184 of file metric.C.

References Metric::p_connect, Metric::p_determinant, Metric::p_radial_vect, and Metric::p_ricci_scal.

void Metric::set_tensor_depend_0x0 (  )  const [protected, inherited]

Sets all elements of tensor_depend to 0x0.

Definition at line 204 of file metric.C.

References Metric::tensor_depend.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  ,
const Metric  
) [friend, inherited]

Display.


Member Data Documentation

const Map* const Metric::mp [protected, inherited]

Reference mapping.

Definition at line 91 of file metric.h.

Connection* Metric::p_connect [mutable, protected, inherited]

Connection associated with the metric.

Definition at line 108 of file metric.h.

Scalar* Metric::p_determinant [mutable, protected, inherited]

Pointer on the determinant.

Definition at line 128 of file metric.h.

Sym_tensor* Metric::p_met_con [mutable, protected, inherited]

Pointer on the covariant representation.

Definition at line 101 of file metric.h.

Sym_tensor* Metric::p_met_cov [mutable, protected, inherited]

Pointer on the contravariant representation.

Definition at line 96 of file metric.h.

Vector* Metric::p_radial_vect [mutable, protected, inherited]

Pointer to the radial vector normal to a spherical slicing and pointing toward spatial infinity.

Definition at line 121 of file metric.h.

Scalar* Metric::p_ricci_scal [mutable, protected, inherited]

Pointer on the Ricci scalar.

Remark: the Ricci tensor is stored in the connection (member p_connect->p_ricci ).

Definition at line 115 of file metric.h.

const Tensor* Metric::tensor_depend[N_TENSOR_DEPEND] [mutable, protected, inherited]

Pointer on the dependancies, that means the array contains pointers on all the Tensor whom derivative members have been calculated using *this .

Definition at line 135 of file metric.h.

const Base_vect* Metric_flat::triad [protected]

Vectorial basis (triad) with respect to which the components of the flat metric are defined.

Definition at line 266 of file metric.h.


The documentation for this class was generated from the following files:

Generated on 7 Oct 2014 for LORENE by  doxygen 1.6.1