58#include "et_bin_bhns_extr.h"
80 r_bh.
set() =
pow( (xx+sepa)*(xx+sepa) + yy*yy + zz*zz, 0.5) ;
85 xx_cov.
set(0) = xx + sepa ;
91 xsr_cov = xx_cov / r_bh ;
96 xx_con.
set(0) = xx + sepa ;
102 xsr_con = xx_con / r_bh ;
106 msr = ggrav * mass / r_bh ;
113 lapse_bh2 = 1. / (1.+2.*msr) ;
118 d_logn_comp.set(0) = lapse_bh2()%msr()%xsr_cov(0)/r_bh() ;
119 d_logn_comp.set(1) = lapse_bh2()%msr()%xsr_cov(1)/r_bh() ;
120 d_logn_comp.set(2) = lapse_bh2()%msr()%xsr_cov(2)/r_bh() ;
144 for (
int i=0; i<3; i++) {
145 for (
int j=i; j<3; j++) {
146 tkij_comp.set(i, j) = - 3.*xsr_con(i) % xsr_con(j)
147 - 2*msr() % xsr_con(i) % xsr_con(j) ;
152 tkij_comp = (double(2)/double(3)) *
pow(lapse_bh2, 3.) % msr
163 lapse_bh8 = 1. /
pow(1.+2.*msr, 4.) ;
170 *
pow(2.*msr()+3.*msr()*msr(), 2.) / 3.
171 /
nnn() /
nnn() / r_bh() / r_bh() ;
195 r_bh.
set() =
pow( (xx+sepa)*(xx+sepa) + yy*yy + zz*zz, 0.5) ;
200 xx_cov.
set(0) = xx + sepa ;
206 msr = ggrav * mass / r_bh ;
213 tmp = 1. / (1. - 0.25*msr*msr) ;
218 d_logn_comp.set(0) = tmp()%msr()%xx_cov(0)/r_bh()/r_bh() ;
219 d_logn_comp.set(1) = tmp()%msr()%xx_cov(1)/r_bh()/r_bh() ;
220 d_logn_comp.set(2) = tmp()%msr()%xx_cov(2)/r_bh()/r_bh() ;
230 d_beta_comp.set(0) = 0.5*tmp()%msr()%msr()%xx_cov(0)/r_bh()/r_bh() ;
231 d_beta_comp.set(1) = 0.5*tmp()%msr()%msr()%xx_cov(1)/r_bh()/r_bh() ;
232 d_beta_comp.set(2) = 0.5*tmp()%msr()%msr()%xx_cov(2)/r_bh()/r_bh() ;
244 for (
int i=0; i<3; i++) {
245 for (
int j=i; j<3; j++) {
Active physical coordinates and mapping derivatives.
bool kerrschild
Indicator of the background metric: true for the Kerr-Shild metric, false for the conformally flat on...
void update_metric_der_comp_extr(const double &mass, const double &sepa)
Computes the derivative of metric functions related to the companion black hole with the Kerr-Schild ...
Tenseur akcar_comp
Part of the scalar generated by shift_auto and shift_comp , i.e.
const Base_vect & ref_triad
Reference triad ("absolute frame"), with respect to which the components of all the member Tenseur 's...
Tenseur d_logn_comp
Gradient of logn_comp (Cartesian components with respect to ref_triad ).
virtual void del_deriv() const
Deletes all the derived quantities.
Tenseur_sym tkij_comp
Part of the extrinsic curvature tensor generated by shift_comp .
Tenseur d_beta_comp
Gradient of beta_comp (Cartesian components with respect to ref_triad ).
Tenseur nnn
Total lapse function.
Map & mp
Mapping associated with the star.
bool relativistic
Indicator of relativity: true for a relativistic star, false for a Newtonian one.
Tenseur a_car
Total conformal factor .
Tensor handling *** DEPRECATED : use class Tensor instead ***.
Cmp & set()
Read/write for a scalar (see also operator=(const Cmp&) ).
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
void set_std_base()
Set the standard spectal basis of decomposition for each component.
Cmp pow(const Cmp &, int)
Power .
Standard units of space, time and mass.