29char star_rot_global_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Star/star_rot_global.C,v 1.5 2015/05/19 09:30:56 j_novak Exp $" ;
81 double precis = 1.e-15 ;
134 source.std_spectral_base() ;
157 dens.set_spectral_va() = (
dens.get_spectral_va()).mult_st() ;
251 bet.std_spectral_base() ;
266 cout <<
"Star_rot::grv3: the mapping does not belong"
267 <<
" to the class Map_radial !" <<
endl ;
272 if (
daadt.get_etat() == ETATQCQ) {
280 temp.std_spectral_base() ;
293 temp.set_dzpuis(
temp.get_dzpuis() + 2 ) ;
302 source.std_spectral_base() ;
316 source.std_spectral_base() ;
323 *
ost <<
"Star_rot::grv3 : gravitational term : " <<
int_grav
325 *
ost <<
"Star_rot::grv3 : matter term : " <<
int_mat
381 for (
int k=0;
k<np;
k++) {
382 for (
int j=0;
j<nt;
j++) {
388 va_r.std_base_scal() ;
395 for (
int k=0;
k<np;
k++) {
396 for (
int j=0;
j<nt;
j++) {
401 integ.std_base_scal() ;
404 for (
int j=0;
j<nt;
j++) {
533 bet.std_spectral_base() ;
545 source.std_spectral_base() ;
555 if (
source.check_dzpuis(2)) {
566 if (
temp.get_etat() == ETATQCQ) {
Time evolution with partial storage (*** under development ***).
Basic integer array class.
Base class for pure radial mappings.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
const Metric_flat & flat_met_spher() const
Returns the flat metric associated with the spherical coordinates and with components expressed in th...
const Mg3d * get_angu() const
Returns the pointer on the associated angular grid.
int get_type_t() const
Returns the type of sampling in the direction: SYM : : symmetry with respect to the equatorial pl...
int get_np(int l) const
Returns the number of points in the azimuthal direction ( ) in domain no. l.
int get_nt(int l) const
Returns the number of points in the co-latitude direction ( ) in domain no. l.
int get_nr(int l) const
Returns the number of points in the radial direction ( ) in domain no. l.
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
double integrale() const
Computes the integral over all space of *this .
double val_grid_point(int l, int k, int j, int i) const
Returns the value of the field at a specified grid point.
const Valeur & get_spectral_va() const
Returns va (read only version)
int get_etat() const
Returns the logical state ETATNONDEF (undefined), ETATZERO (null) or ETATQCQ (ordinary).
double val_point(double r, double theta, double phi) const
Computes the value of the field at an arbitrary point , by means of the spectral expansion.
double * p_angu_mom
Angular momentum.
virtual double mean_radius() const
Mean star radius from the area .
double * p_aplat
Flatening r_pole/r_eq.
double * p_mom_quad
Quadrupole moment.
virtual double mom_quad() const
Quadrupole moment.
double * p_z_eqf
Forward redshift factor at equator.
Scalar tnphi
Component of the shift vector.
virtual double z_pole() const
Redshift factor at North pole.
virtual double z_eqb() const
Backward redshift factor at equator.
Scalar b_car
Square of the metric factor B.
Scalar bbb
Metric factor B.
virtual double mass_b() const
Baryon mass.
double omega
Rotation angular velocity ([f_unit] )
virtual double r_circ() const
Circumferential radius.
Scalar uuu
Norm of u_euler.
virtual double z_eqf() const
Forward redshift factor at equator.
Scalar nphi
Metric coefficient .
virtual double mass_g() const
Gravitational mass.
double * p_area
Integrated surface area.
virtual double aplat() const
Flatening r_pole/r_eq.
double * p_grv3
Error on the virial identity GRV3.
const Scalar & get_a_car() const
Returns the square of the metric factor A.
virtual const Itbl & l_surf() const
Description of the stellar surface: returns a 2-D Itbl containing the values of the domain index l on...
bool relativistic
Indicator of relativity: true for a relativistic star, false for a Newtonian one.
virtual double tsw() const
Ratio T/W.
virtual double grv3(ostream *ost=0x0) const
Error on the virial identity GRV3.
Scalar dzeta
Metric potential .
virtual double area() const
Integrated surface area in .
Scalar a_car
Square of the metric factor A.
double * p_grv2
Error on the virial identity GRV2.
const Scalar & get_bbb() const
Returns the metric factor B.
double * p_r_circ
Circumferential radius.
virtual double grv2() const
Error on the virial identity GRV2.
virtual double angu_mom() const
Angular momentum.
double * p_z_eqb
Backward redshift factor at equator.
double * p_z_pole
Redshift factor at North pole.
static double lambda_grv2(const Scalar &sou_m, const Scalar &sou_q)
Computes the coefficient which ensures that the GRV2 virial identity is satisfied.
Scalar ener
Total energy density in the fluid frame.
Scalar logn
Logarithm of the lapse N .
Scalar nn
Lapse function N .
double * p_mass_b
Baryon mass.
Scalar nbar
Baryon density in the fluid frame.
Scalar ener_euler
Total energy density in the Eulerian frame.
const Tbl & xi_surf() const
Description of the stellar surface: returns a 2-D Tbl containing the values of the radial coordinate ...
Itbl * p_l_surf
Description of the stellar surface: 2-D Itbl containing the values of the domain index l on the surfa...
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
double ray_eq() const
Coordinate radius at , [r_unit].
Scalar s_euler
Trace of the stress scalar in the Eulerian frame.
double * p_mass_g
Gravitational mass.
Tbl * p_xi_surf
Description of the stellar surface: 2-D Tbl containing the values of the radial coordinate on the su...
Scalar press
Fluid pressure.
Map & mp
Mapping associated with the star.
int nzet
Number of domains of *mp occupied by the star.
double ray_pole() const
Coordinate radius at [r_unit].
Values and coefficients of a (real-value) function.
double val_point_jk(int l, double x, int j, int k) const
Computes the value of the field represented by *this at an arbitrary point in , but collocation point...
void std_base_scal()
Sets the bases for spectral expansions (member base ) to the standard ones for a scalar.
Tensor field of valence 1.
Cmp sqrt(const Cmp &)
Square root.
Cmp log(const Cmp &)
Neperian logarithm.
Standard units of space, time and mass.