83 cout <<
"Etoile_rot::f_eccentric not ready yet !" << endl ;
120 Cmp ucor_plus = (r2 * bsn * dnphi +
121 sqrt ( r2 * r2 * bsn *bsn * dnphi * dnphi +
122 4 * r2 * bdlog * ndlog + 4 * r * ndlog) ) /
123 2 / (1 + r * bdlog ) ;
125 Cmp factor_u2 = r2 * (2 * ddbbb /
bbb() - 2 * bdlog * bdlog +
126 4 * bdlog * ndlog ) +
127 2 * r2 * r2 * bsn * bsn * dnphi * dnphi +
128 4 * r * ( ndlog - bdlog ) - 6 ;
130 Cmp factor_u1 = 2 * r * r2 * bsn * ( 2 * ( ndlog - bdlog ) *
133 Cmp factor_u0 = - r2 * ( 2 * ddnnn /
nnn() - 2 * ndlog * ndlog +
134 4 * bdlog * ndlog ) ;
137 Cmp orbit = factor_u2 * ucor_plus * ucor_plus +
138 factor_u1 * ucor_plus + factor_u0 ;
153 double theta_ms = M_PI / 2. ;
156 double xi_min = -1. ;
160 double xi_f = xi_min;
162 orbit.std_base_scal() ;
163 const Valeur& vorbit = orbit.va ;
165 double resloc = vorbit.
val_point(l_ms, xi_min, theta_ms, phi_ms) ;
167 for (
int iloc=0; iloc<200; iloc++) {
169 resloc_old = resloc ;
170 resloc = vorbit.
val_point(l_ms, xi_f, theta_ms, phi_ms) ;
171 if ((resloc * resloc_old) <
double(0) ) {
172 xi_min = xi_f - 0.01 ;
181 "Etoile_rot::isco : preliminary location of zero of MS function :" 183 *ost <<
" xi_min = " << xi_min <<
" f(xi_min) = " <<
184 vorbit.
val_point(l_ms, xi_min, theta_ms, phi_ms) << endl ;
185 *ost <<
" xi_max = " << xi_max <<
" f(xi_max) = " <<
186 vorbit.
val_point(l_ms, xi_max, theta_ms, phi_ms) << endl ;
192 if ( vorbit.
val_point(l_ms, xi_min, theta_ms, phi_ms) *
193 vorbit.
val_point(l_ms, xi_max, theta_ms, phi_ms) < double(0) ) {
202 " number of iterations used in zerosec to locate the ISCO : " 204 *ost <<
" zero found at xi = " << xi_ms << endl ;
207 r_ms =
mp.
val_r(l_ms, xi_ms, theta_ms, phi_ms) ;
216 (
bbb().va).val_point(l_ms, xi_ms, theta_ms, phi_ms) * r_ms
223 double ucor_msplus = (ucor_plus.
va).val_point(l_ms, xi_ms, theta_ms,
225 double nobrs = (bsn.va).val_point(l_ms, xi_ms, theta_ms, phi_ms) ;
226 double nphirs = (
nphi().va).val_point(l_ms, xi_ms, theta_ms, phi_ms) ;
228 p_f_isco =
new double ( ( ucor_msplus / nobrs / r_ms + nphirs ) /
229 (
double(2) * M_PI) ) ;
const Cmp & dsdr() const
Returns of *this .
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
double * p_r_isco
Circumferential radius of the ISCO.
void add_int(const int &n, int position=0)
Adds the address of a new int to the list.
Cmp sqrt(const Cmp &)
Square root.
void annule(int l)
Sets the Cmp to zero in a given domain.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
Tenseur nnn
Total lapse function.
Tenseur nphi
Metric coefficient .
double ray_eq() const
Coordinate radius at , [r_unit].
Values and coefficients of a (real-value) function.
virtual double val_r(int l, double xi, double theta, double pphi) const =0
Returns the value of the radial coordinate r for a given in a given domain.
void add_cmp(const Cmp &ti, int position=0)
Adds the address of a new Cmp to the list.
double val_point(int l, double x, double theta, double phi) const
Computes the value of the field represented by *this at an arbitrary point, by means of the spectral ...
Map & mp
Mapping associated with the star.
int get_nzone() const
Returns the number of domains.
double * p_f_isco
Orbital frequency of the ISCO.
Tenseur bbb
Metric factor B.
void std_base_scal()
Sets the spectral bases of the Valeur va to the standard ones for a scalar.
int nzet
Number of domains of *mp occupied by the star.
virtual double f_eccentric(double ecc, double periast, ostream *ost=0x0) const
Computation of frequency of eccentric orbits.
Valeur va
The numerical value of the Cmp.
Coord r
r coordinate centered on the grid