27 char star_bin_vel_pot_xcts_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Star/star_bin_vel_pot_xcts.C,v 1.7 2014/10/13 08:53:39 j_novak Exp $" ;
63 #include "graphique.h"
64 #include "utilitaires.h"
68 Cmp raccord_c1(
const Cmp& uu,
int l1) ;
99 for (
int i=1; i<=3; i++)
100 v_orb.
set(i) = www(i).val_grid_point(0, 0, 0, 0) ;
113 for (
int l=0; l<
nzet; l++) {
125 for (
int l=
nzet; l <= nzm1; l++)
182 Cmp source_cmp (source) ;
183 Cmp zeta_h_cmp (zeta_h) ;
188 Cmp bb_cmp1 (bb(1)) ;
189 Cmp bb_cmp2 (bb(2)) ;
190 Cmp bb_cmp3 (bb(3)) ;
191 bb_cmp.
set(0) = bb_cmp1 ;
192 bb_cmp.
set(1) = bb_cmp2 ;
193 bb_cmp.
set(2) = bb_cmp3 ;
195 source_cmp.
va.
ylm() ;
203 cout <<
"psiO apres" << endl <<
norme(
psi0) << endl ;
215 cout <<
"Check of the resolution of the continuity equation : " << endl ;
218 for (
int l=0; l<
nzet; l++) {
219 double err = terr(l) ;
220 cout <<
" domain " << l <<
" : norme(source) : " <<
norme(source)(l)
221 <<
" relative error : " << err << endl ;
222 if (err > erreur) erreur = err ;
231 for (
int i=1; i<=3; i++)
242 for (
int i=1; i<=3; i++)
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
Valeur va
The numerical value of the Cmp
Cmp der_nbar_ent(const Cmp &ent, int nzet, int l_min=0, const Param *par=0x0) const
Computes the logarithmic derivative from the log-enthalpy and extra parameters.
virtual void poisson_compact(const Cmp &source, const Cmp &aa, const Tenseur &bb, const Param &par, Cmp &psi) const =0
Resolution of the elliptic equation in the case where the stellar interior is covered by a single do...
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
const Base_vect_spher & get_bvect_spher() const
Returns the orthonormal vectorial basis associated with the coordinates of the mapping.
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping,...
const Metric_flat & flat_met_spher() const
Returns the flat metric associated with the spherical coordinates and with components expressed in th...
Flat metric for tensor calculation.
int get_nzone() const
Returns the number of domains.
void add_double(const double &x, int position=0)
Adds the the address of a new double to the list.
void add_int_mod(int &n, int position=0)
Adds the address of a new modifiable int to the list.
void add_int(const int &n, int position=0)
Adds the address of a new int to the list.
Tensor field of valence 0 (or component of a tensorial field).
const Vector & derive_cov(const Metric &gam) const
Returns the gradient (1-form = covariant vector) of *this
const Scalar & laplacian(int ced_mult_r=4) const
Returns the Laplacian of *this.
Tbl & set_domain(int l)
Read/write of the value in a given domain.
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field.
virtual void annule(int l_min, int l_max)
Sets the Scalar to zero in several domains.
int get_etat() const
Returns the logical state ETATNONDEF (undefined), ETATZERO (null) or ETATQCQ (ordinary).
Valeur & set_spectral_va()
Returns va (read/write version)
const Vector & derive_con(const Metric &gam) const
Returns the "contravariant" derivative of *this with respect to some metric , by raising the index of...
Scalar Psi
Total conformal factor .
Scalar psi0
Scalar potential of the non-translational part of fluid 4-velocity (in the irrotational case)
Scalar psi4
Conformal factor .
Metric_flat flat
Flat metric defined on the mapping (Spherical components with respect to the mapping of the star) .
Scalar chi
Total function .
Vector bsn
3-vector shift, divided by N, of the rotating coordinates, .
Vector d_psi
Gradient of (in the irrotational case) (Spherical components with respect to the mapping of the star...
double velocity_potential(int mermax, double precis, double relax)
Computes the non-translational part of the velocity scalar potential by solving the continuity equat...
const Eos & eos
Equation of state of the stellar matter.
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
Map & mp
Mapping associated with the star.
int nzet
Number of domains of *mp occupied by the star.
Tensor handling *** DEPRECATED : use class Tensor instead ***.
Cmp & set()
Read/write for a scalar (see also operator=(const Cmp&) ).
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
void ylm()
Computes the coefficients of *this.
void ylm_i()
Inverse of ylm()
Tensor field of valence 1.
virtual void std_spectral_base()
Sets the standard spectal bases of decomposition for each component.
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.
Cmp exp(const Cmp &)
Exponential.
Tbl diffrel(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (norme version).
Tbl norme(const Cmp &)
Sums of the absolute values of all the values of the Cmp in each domain.
Cmp log(const Cmp &)
Neperian logarithm.
void set_triad(const Base_vect &new_triad)
Assigns a new vectorial basis (triad) of decomposition.
virtual void annule(int l_min, int l_max)
Sets the Tensor to zero in several domains.
virtual void set_etat_qcq()
Sets the logical state of all components to ETATQCQ (ordinary state).
const Base_vect * get_triad() const
Returns the vectorial basis (triad) on which the components are defined.
Tenseur contract(const Tenseur &, int id1, int id2)
Self contraction of two indices of a Tenseur .