26char star_bin_upmetr_der_xcts_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Star/star_bin_upmetr_der_xcts.C,v 1.6 2014/10/13 08:53:38 j_novak Exp $" ;
58#include "utilitaires.h"
75 for(
int i=1; i<=3; i++) {
78 dcov_Psi.set(i).set_spectral_va().set_base(temp(i).get_spectral_va().get_base()) ;
93 for(
int i=1; i<=3; i++) {
96 dcov_chi.set(i).set_spectral_va().set_base(temp(i).get_spectral_va().get_base()) ;
112 Tensor dbeta_comp(
mp, 2, CON,
mp.get_bvect_cart()) ;
116 for(
int i=1; i<=3; i++)
117 for(
int j=1; j<=3; j++) {
120 (dbeta_comp.
set(i,j)).import( (temp_beta)(i,j) );
122 (dbeta_comp.
set(i,j)).set_spectral_va().set_base(temp_beta(i,j).get_spectral_va().get_base()) ;
131 for (
int i=1; i<=3; i++)
132 for (
int j=1; j<=i; j++) {
136 haij_comp.set(i, j) = dbeta_comp(i, j) + dbeta_comp(j, i)
137 - double(2) /double(3) * divbeta_comp * (
flat.con())(i,j) ;
Tensor field of valence 0 (or component of a tensorial field).
Scalar Psi
Total conformal factor .
Sym_tensor haij_auto
Part of the extrinsic curvature tensor generated by beta_auto.
Metric_flat flat
Flat metric defined on the mapping (Spherical components with respect to the mapping of the star) .
Star_bin_xcts(Map &mp_i, int nzet_i, const Eos &eos_i, bool irrot)
Standard constructor.
Vector dcov_Psi
Covariant derivative of the conformal factor .
Vector beta_comp
Part of the shift vector generated principally by the star (Spherical components with respect to the ...
Vector beta_auto
Part of the shift vector generated principally by the star (Spherical components with respect to the ...
Scalar Psi_auto
Scalar field generated principally by the star.
Scalar hacar_comp
Part of the scalar generated by beta_auto and beta_comp, i.e.
Scalar chi
Total function .
void update_metric_der_comp(const Star_bin_xcts &comp)
Computes the derivative of metric functions related to the companion star.
Sym_tensor haij_comp
Part of the extrinsic curvature tensor generated by beta_comp.
Vector dcov_chi
Covariant derivative of the function .
Scalar chi_auto
Scalar field generated principally by the star.
virtual void del_deriv() const
Deletes all the derived quantities.
Map & mp
Mapping associated with the star.
Class intended to describe valence-2 symmetric tensors.
Tensor field of valence 1.
virtual void change_triad(const Base_vect &)
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
Cmp pow(const Cmp &, int)
Power .
virtual void dec_dzpuis(int dec=1)
Decreases by dec units the value of dzpuis and changes accordingly the values in the compactified ext...
virtual void change_triad(const Base_vect &new_triad)
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
virtual void inc_dzpuis(int inc=1)
Increases by inc units the value of dzpuis and changes accordingly the values in the compactified ext...
const Base_vect * get_triad() const
Returns the vectorial basis (triad) on which the components are defined.
Scalar & set(const Itbl &ind)
Returns the value of a component (read/write version).
Tenseur contract(const Tenseur &, int id1, int id2)
Self contraction of two indices of a Tenseur .