28char star_bhns_hydro_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Star_bhns/star_bhns_hydro.C,v 1.3 2014/10/13 08:53:41 j_novak Exp $" ;
55#include "utilitaires.h"
66 int nz =
mp.get_mg()->get_nzone() ;
78 double mass = ggrav * mass_bh ;
90 double yns =
mp.get_ori_y() ;
93 rbh =
sqrt( (xx+sepa)*(xx+sepa) + (yy+yns)*(yy+yns) + zz*zz ) ;
98 ll.
set(1) = (xx+sepa) / rbh ;
99 ll.
set(2) = (yy+yns) / rbh ;
100 ll.
set(3) = zz / rbh ;
114 d_psi.std_spectral_base() ;
126 lap_bh2 = 1. / (1.+2.*msr) ;
130 tmp1 = 2. * msr % lap_bh2 % lldpsi % lldpsi ;
137 assert(
u_euler.get_triad() ==
bsn.get_triad() ) ;
139 for (
int i=1; i<=3; i++)
181 * (ueuler2 + 2.*msr%llueuler%llueuler) ;
198 llbsn = ll(1)%
bsn(1) + ll(2)%
bsn(2) + ll(3)%
bsn(3) ;
202 tmp2 = 1. -
psi4 * (bsnueuler + 2.*msr%llueuler%llbsn) ;
206 gam.std_spectral_base() ;
214 wit_w.std_spectral_base() ;
215 wit_w.annule_domain(nzm1) ;
223 loggam.std_spectral_base() ;
229 loggam.annule_domain(nzm1) ;
230 wit_w.annule_domain(nzm1) ;
239 gam.std_spectral_base() ;
241 wit_w.set_etat_zero() ;
255 d_psi.std_spectral_base() ;
266 for (
int i=1; i<=3; i++)
320 tmp3 = 1. -
psi4 % bsnueuler ;
324 gam.std_spectral_base() ;
332 wit_w.std_spectral_base() ;
333 wit_w.annule_domain(nzm1) ;
341 loggam.std_spectral_base() ;
347 loggam.annule_domain(nzm1) ;
348 wit_w.annule_domain(nzm1) ;
357 gam.std_spectral_base() ;
359 wit_w.set_etat_zero() ;
Tensor field of valence 0 (or component of a tensorial field).
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field.
Vector wit_w
Spatial projection of the fluid 3-velocity with respect to the co-orbiting observer.
Vector bsn
3-vector shift, divided by N , of the rotating coordinates, .
virtual void del_deriv() const
Deletes all the derived quantities.
Scalar psi4
Fourth power of the total conformal factor.
Vector d_psi
Gradient of (in the irrotational case) (Spherical components with respect to the mapping of the star...
Scalar gam0
Lorentz factor between the co-orbiting observer and the Eulerian one.
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...
Scalar gam
Lorentz factor between the fluid and the co-orbiting observer.
bool irrotational
true for an irrotational star, false for a corotating one
Scalar loggam
Logarithm of the Lorentz factor between the fluid and the co-orbiting observer.
Scalar ener
Total energy density in the fluid frame.
Scalar ener_euler
Total energy density in the Eulerian frame.
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
Scalar s_euler
Trace of the stress scalar in the Eulerian frame.
Scalar press
Fluid pressure.
Vector u_euler
Fluid 3-velocity with respect to the Eulerian observer.
Map & mp
Mapping associated with the star.
Tensor field of valence 1.
virtual void std_spectral_base()
Sets the standard spectal bases of decomposition for each component.
Scalar & set(int)
Read/write access to a component.
Cmp sqrt(const Cmp &)
Square root.
Cmp exp(const Cmp &)
Exponential.
Cmp log(const Cmp &)
Neperian logarithm.
virtual void set_etat_qcq()
Sets the logical state of all components to ETATQCQ (ordinary state).
Standard units of space, time and mass.