28char star_bhns_kinema_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Star_bhns/star_bhns_kinema.C,v 1.4 2014/10/13 08:53:41 j_novak Exp $" ;
62 const double& sepa,
double omega,
63 double x_rot,
double y_rot) {
69 int nz =
mp.get_mg()->get_nzone() ;
83 if (fabs(
mp.get_rot_phi()) < 1.e-10) {
85 bsn.set(1) = - omega * (
ya - y_rot) ;
86 bsn.set(2) = omega * (
xa - x_rot) ;
92 bsn.set(1) = omega * (
ya - y_rot) ;
93 bsn.set(2) = - omega * (
xa - x_rot) ;
98 bsn.std_spectral_base() ;
99 bsn.annule_domain(nzm1) ;
103 for (
int i=1; i<=3; i++) {
106 bsn.std_spectral_base() ;
107 bsn.annule_domain(nzm1) ;
121 double mass = ggrav * mass_bh ;
133 double yns =
mp.get_ori_y() ;
136 rbh =
sqrt( (xx+sepa)*(xx+sepa) + (yy+yns)*(yy+yns) + zz*zz ) ;
141 ll.
set(1) = (xx+sepa) / rbh ;
142 ll.
set(2) = (yy+yns) / rbh ;
143 ll.
set(3) = zz / rbh ;
151 llbsn = ll(1)%
bsn(1) + ll(2)%
bsn(2) + ll(3)%
bsn(3) ;
155 tmp1 = 2. * msr % llbsn % llbsn ;
159 gam0.std_spectral_base() ;
165 gam0.std_spectral_base() ;
Active physical coordinates and mapping derivatives.
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 shift_tot
Total shift vector.
Vector bsn
3-vector shift, divided by N , of the rotating coordinates, .
virtual void del_deriv() const
Deletes all the derived quantities.
void kinema_bhns(bool kerrschild, const double &mass_bh, const double &sepa, double omega, double x_rot, double y_rot)
Computes the quantities bsn and pot_centri .
Scalar confo_tot
Total conformal factor.
Scalar psi4
Fourth power of the total conformal factor.
Scalar gam0
Lorentz factor between the co-orbiting observer and the Eulerian one.
Scalar lapconf_tot
Total lapconf function.
Scalar pot_centri
Centrifugal potential.
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 log(const Cmp &)
Neperian logarithm.
virtual void set_etat_qcq()
Sets the logical state of all components to ETATQCQ (ordinary state).
Coord xa
Absolute x coordinate.
Coord ya
Absolute y coordinate.
Standard units of space, time and mass.