30char star_bin_upmetr_der_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Star/star_bin_upmetr_der.C,v 1.17 2014/10/13 08:53:38 j_novak Exp $" ;
97#include "utilitaires.h"
111 Base_val sauve_base1 (temp(1).get_spectral_va().get_base()) ;
112 Base_val sauve_base2 (temp(2).get_spectral_va().get_base()) ;
113 Base_val sauve_base3 (temp(3).get_spectral_va().get_base()) ;
120 dcov_logn.set(1).set_spectral_va().set_base(sauve_base1) ;
121 dcov_logn.set(2).set_spectral_va().set_base(sauve_base2) ;
122 dcov_logn.set(3).set_spectral_va().set_base(sauve_base3) ;
132 sauve_base1 = temp_con(1).get_spectral_va().get_base() ;
133 sauve_base2 = temp_con(2).get_spectral_va().get_base() ;
134 sauve_base3 = temp_con(3).get_spectral_va().get_base() ;
141 dcon_logn.set(1).set_spectral_va().set_base(sauve_base1) ;
142 dcon_logn.set(2).set_spectral_va().set_base(sauve_base2) ;
143 dcon_logn.set(3).set_spectral_va().set_base(sauve_base3) ;
153 sauve_base1 = temp(1).get_spectral_va().get_base() ;
154 sauve_base2 = temp(2).get_spectral_va().get_base() ;
155 sauve_base3 = temp(3).get_spectral_va().get_base() ;
162 dcov_phi.set(1).set_spectral_va().set_base(sauve_base1) ;
163 dcov_phi.set(2).set_spectral_va().set_base(sauve_base2) ;
164 dcov_phi.set(3).set_spectral_va().set_base(sauve_base3) ;
175 sauve_base1 = temp_con(1).get_spectral_va().get_base() ;
176 sauve_base2 = temp_con(2).get_spectral_va().get_base() ;
177 sauve_base3 = temp_con(3).get_spectral_va().get_base() ;
180 dcon_phi.set(1).import(temp_con(1)) ;
181 dcon_phi.set(2).import(temp_con(2)) ;
182 dcon_phi.set(3).import(temp_con(3)) ;
184 dcon_phi.set(1).set_spectral_va().set_base(sauve_base1) ;
185 dcon_phi.set(2).set_spectral_va().set_base(sauve_base2) ;
186 dcon_phi.set(3).set_spectral_va().set_base(sauve_base3) ;
195 const Mg3d* mg =
mp.get_mg() ;
197 Vector omdsdp (
mp, CON,
mp.get_bvect_cart()) ;
203 if (fabs(
mp.get_rot_phi()) < 1e-10){
204 omdsdp.
set(1) = - om * yya ;
205 omdsdp.
set(2) = om * xxa ;
209 omdsdp.
set(1) = om * yya ;
210 omdsdp.
set(2) = - om * xxa ;
215 .
set_base(*(
mp.get_mg()->std_base_vect_cart()[0])) ;
217 .
set_base(*(
mp.get_mg()->std_base_vect_cart()[1])) ;
219 .
set_base(*(
mp.get_mg()->std_base_vect_cart()[2])) ;
238 for (
int i=1; i<=3; i++)
239 for (
int j=i; j<=3; j++) {
241 tkij_comp.set(i, j) = dbeta_comp(i, j) + dbeta_comp(j, i) -
242 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 .