100#include "utilitaires.h"
101#include "graphique.h"
114 Base_val sauve_base1 (temp(1).get_spectral_va().get_base()) ;
115 Base_val sauve_base2 (temp(2).get_spectral_va().get_base()) ;
116 Base_val sauve_base3 (temp(3).get_spectral_va().get_base()) ;
123 dcov_logn.set(1).set_spectral_va().set_base(sauve_base1) ;
124 dcov_logn.set(2).set_spectral_va().set_base(sauve_base2) ;
125 dcov_logn.set(3).set_spectral_va().set_base(sauve_base3) ;
135 sauve_base1 = temp_con(1).get_spectral_va().get_base() ;
136 sauve_base2 = temp_con(2).get_spectral_va().get_base() ;
137 sauve_base3 = temp_con(3).get_spectral_va().get_base() ;
144 dcon_logn.set(1).set_spectral_va().set_base(sauve_base1) ;
145 dcon_logn.set(2).set_spectral_va().set_base(sauve_base2) ;
146 dcon_logn.set(3).set_spectral_va().set_base(sauve_base3) ;
156 sauve_base1 = temp(1).get_spectral_va().get_base() ;
157 sauve_base2 = temp(2).get_spectral_va().get_base() ;
158 sauve_base3 = temp(3).get_spectral_va().get_base() ;
165 dcov_phi.set(1).set_spectral_va().set_base(sauve_base1) ;
166 dcov_phi.set(2).set_spectral_va().set_base(sauve_base2) ;
167 dcov_phi.set(3).set_spectral_va().set_base(sauve_base3) ;
178 sauve_base1 = temp_con(1).get_spectral_va().get_base() ;
179 sauve_base2 = temp_con(2).get_spectral_va().get_base() ;
180 sauve_base3 = temp_con(3).get_spectral_va().get_base() ;
183 dcon_phi.set(1).import(temp_con(1)) ;
184 dcon_phi.set(2).import(temp_con(2)) ;
185 dcon_phi.set(3).import(temp_con(3)) ;
187 dcon_phi.set(1).set_spectral_va().set_base(sauve_base1) ;
188 dcon_phi.set(2).set_spectral_va().set_base(sauve_base2) ;
189 dcon_phi.set(3).set_spectral_va().set_base(sauve_base3) ;
198 const Mg3d* mg =
mp.get_mg() ;
200 Vector omdsdp (
mp, CON,
mp.get_bvect_cart()) ;
206 if (fabs(
mp.get_rot_phi()) < 1e-10){
207 omdsdp.
set(1) = - om * yya ;
208 omdsdp.
set(2) = om * xxa ;
212 omdsdp.
set(1) = om * yya ;
213 omdsdp.
set(2) = - om * xxa ;
218 .
set_base(*(
mp.get_mg()->std_base_vect_cart()[0])) ;
220 .
set_base(*(
mp.get_mg()->std_base_vect_cart()[1])) ;
222 .
set_base(*(
mp.get_mg()->std_base_vect_cart()[2])) ;
241 for (
int i=1; i<=3; i++)
242 for (
int j=i; j<=3; j++) {
244 tkij_comp.set(i, j) = dbeta_comp(i, j) + dbeta_comp(j, i) -
245 double(2) /double(3) * divbeta_comp * (
gtilde.con())(i,j) ;
Bases of the spectral expansions.
int get_nzone() const
Returns the number of domains.
Tensor field of valence 0 (or component of a tensorial field).
Valeur & set_spectral_va()
Returns va (read/write version).
void annule_hard()
Sets the Scalar to zero in a hard way.
Scalar lnq_auto
Scalar field generated principally by the star.
Vector dcon_logn
Contravariant derivative of the total logarithm of the lapse.
Vector dcon_phi
Contravariant derivative of the logarithm of the conformal factor.
Sym_tensor hij_comp
Deviation of the inverse conformal metric from the inverse flat metric generated principally by the ...
virtual void del_deriv() const
Deletes all the derived quantities.
Vector beta_comp
Part of the shift vector generated principally by the star (Spherical components with respect to the ...
Vector dcov_logn
Covariant derivative of the total logarithm of the lapse.
Scalar logn_auto
Part of the lapse logarithm (gravitational potential at the Newtonian limit) generated principally by...
const Metric & get_flat() const
Return the flat metric defined on the mapping (Spherical components with respect to the mapping of th...
Scalar kcar_comp
Part of the scalar generated by beta_auto and beta_comp, i.e.
Sym_tensor tkij_comp
Part of the extrinsic curvature tensor generated by beta_comp.
Star_bin(Map &mp_i, int nzet_i, const Eos &eos_i, bool irrot, bool conf_flat)
Standard constructor.
Sym_tensor tkij_auto
Part of the extrinsic curvature tensor generated by beta_auto.
Vector dcov_phi
Covariant derivative of the logarithm of the conformal factor.
Metric_flat flat
Flat metric defined on the mapping (Spherical components with respect to the mapping of the star) .
void update_metric_der_comp(const Star_bin &comp, double omega)
Computes the derivative of metric functions related to the companion star.
Metric gtilde
Conformal metric .
Scalar nn
Lapse function N .
Map & mp
Mapping associated with the star.
Class intended to describe valence-2 symmetric tensors.
void set_base(const Base_val &)
Sets the bases for spectral expansions (member base ).
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.
Scalar & set(int)
Read/write access to a component.
const Map & get_mp() const
Returns the mapping.
virtual void dec_dzpuis(int dec=1)
Decreases by dec 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.
void annule_domain(int l)
Sets the Tensor to zero in a given domain.
Tenseur contract(const Tenseur &, int id1, int id2)
Self contraction of two indices of a Tenseur .