57 #include "star_bhns.h" 58 #include "utilitaires.h" 81 double mass = ggrav * mass_bh ;
96 rbh =
sqrt( (xx+sepa)*(xx+sepa) + (yy+yns)*(yy+yns) + zz*zz ) ;
101 ll.set(1) = (xx+sepa) / rbh ;
102 ll.
set(2) = (yy+yns) / rbh ;
103 ll.
set(3) = zz / rbh ;
129 lap_bh2 = 1. / (1.+2.*msr) ;
133 tmp1 = 2. * msr % lap_bh2 % lldpsi % lldpsi ;
142 for (
int i=1; i<=3; i++)
184 * (ueuler2 + 2.*msr%llueuler%llueuler) ;
201 llbsn = ll(1)%
bsn(1) + ll(2)%
bsn(2) + ll(3)%
bsn(3) ;
205 tmp2 = 1. -
psi4 * (bsnueuler + 2.*msr%llueuler%llbsn) ;
269 for (
int i=1; i<=3; i++)
323 tmp3 = 1. -
psi4 % bsnueuler ;
Scalar psi4
Fourth power of the total conformal factor.
void annule_domain(int l)
Sets the Tensor to zero in a given domain.
Cmp log(const Cmp &)
Neperian logarithm.
virtual void set_etat_qcq()
Sets the logical state of all components to ETATQCQ (ordinary state).
void hydro_euler_bhns(bool kerrschild, const double &mass_bh, const double &sepa)
Computes the hydrodynamical quantities relative to the Eulerian observer from those in the fluid fram...
Cmp exp(const Cmp &)
Exponential.
Map & mp
Mapping associated with the star.
virtual void del_deriv() const
Deletes all the derived quantities.
Cmp sqrt(const Cmp &)
Square root.
Vector bsn
3-vector shift, divided by N , of the rotating coordinates, .
double get_ori_y() const
Returns the y coordinate of the origin.
Standard units of space, time and mass.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
Tensor field of valence 0 (or component of a tensorial field).
Vector wit_w
Spatial projection of the fluid 3-velocity with respect to the co-orbiting observer.
Scalar loggam
Logarithm of the Lorentz factor between the fluid and the co-orbiting observer.
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field. ...
Scalar s_euler
Trace of the stress scalar in the Eulerian frame.
Tensor field of valence 1.
Scalar gam
Lorentz factor between the fluid and the co-orbiting observer.
void set_dzpuis(int)
Modifies the dzpuis flag.
Vector d_psi
Gradient of (in the irrotational case) (Spherical components with respect to the mapping of the star...
virtual void std_spectral_base()
Sets the standard spectal bases of decomposition for each component.
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
Scalar ener
Total energy density in the fluid frame.
const Base_vect * get_triad() const
Returns the vectorial basis (triad) on which the components are defined.
Scalar press
Fluid pressure.
int get_nzone() const
Returns the number of domains.
Vector u_euler
Fluid 3-velocity with respect to the Eulerian observer.
Scalar gam0
Lorentz factor between the co-orbiting observer and the Eulerian one.
bool irrotational
true for an irrotational star, false for a corotating one
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping, i.e.
Scalar & set(const Itbl &ind)
Returns the value of a component (read/write version).
Coord y
y coordinate centered on the grid
Coord x
x coordinate centered on the grid
virtual void set_etat_zero()
Sets the logical state of all components to ETATZERO (zero state).
Scalar & set(int)
Read/write access to a component.
Coord z
z coordinate centered on the grid
Scalar ener_euler
Total energy density in the Eulerian frame.