78 #include "utilitaires.h" 130 a_car(map_i, *(map_i.get_mg()), fich) ,
131 bbb(map_i, *(map_i.get_mg()), fich) ,
133 nphi(map_i, *(map_i.get_mg()), fich) ,
237 FILE* file_out = fopen(file_name,
"w") ;
238 double total_time = 0. ;
242 fwrite_be(&total_time,
sizeof(
double), 1, file_out) ;
250 fwrite_be(&RISCO,
sizeof(
double), 1, file_out) ;
251 fwrite_be(&RMB,
sizeof(
double), 1, file_out) ;
254 cout <<
"WRITING RISCO TO GYOTO FILE : " << RISCO << endl ;
255 cout <<
"WRITING RMB TO GYOTO FILE : " << RMB << endl ;
256 cout <<
"WRITING TO GYOTO FILE - end of part " << endl ;
271 ost << endl <<
"Axisymmetric stationary compact object in quasi-isotropic coordinates (class Compobj_QI) " << endl ;
273 ost <<
"Central values of various fields : " << endl ;
274 ost <<
"-------------------------------- " << endl ;
281 double RISCO =
r_isco(0, &ost) ;
282 ost <<
"Coordinate r at the innermost stable circular orbit (ISCO) : " <<
291 double RMB =
r_mb(0, &ost) ;
292 ost <<
"Coordinate r at the marginally bound circular orbit (R_mb) : " << RMB << endl ;
346 if ( (
mp.
get_mg())->get_np(0) == 1) {
352 assert( dynamic_cast<const Map_radial*>(&
mp) != 0x0 ) ;
Base class for axisymmetric stationary compact objects in Quasi-Isotropic coordinates (under developm...
virtual void sauve(FILE *) const
Save in a binary file.
virtual const Sym_tensor & con() const
Read-only access to the contravariant representation.
virtual void sauve(FILE *) const
Save in a file.
Compobj_QI(Map &map_i)
Standard constructor.
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
const Base_vect_spher & get_bvect_spher() const
Returns the orthonormal vectorial basis associated with the coordinates of the mapping.
const Scalar & dsdt() const
Returns of *this .
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).
virtual void extrinsic_curvature()
Computes the extrinsic curvature and ak_car from nphi , nn and b_car .
Base class for coordinate mappings.
double * p_lspec_isco
Specific angular momentum of a particle at the ISCO.
void mult_sint()
Multiplication by .
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field. ...
virtual void sauve(FILE *) const
Save in a binary file.
void gyoto_data(const char *file_name) const
Save in a file for GYOTO.
Sym_tensor kk
Extrinsic curvature tensor .
virtual void extrinsic_curvature()
Computation of the extrinsic curvature.
Scalar a_car
Square of the metric factor A.
double val_grid_point(int l, int k, int j, int i) const
Returns the value of the field at a specified grid point.
Scalar nphi
Metric coefficient .
Scalar b_car
Square of the metric factor B.
Base class for stationary compact objects (under development).
double * p_angu_mom
Angular momentum.
virtual void sauve(FILE *) const
Save in a file.
void operator=(const Compobj &)
Assignment to another Compobj.
virtual double r_isco(int lmin, ostream *ost=0x0) const
Coordinate r of the innermost stable circular orbit (ISCO).
const Base_vect * get_triad() const
Returns the vectorial basis (triad) on which the components are defined.
void sauve(FILE *fd, bool save_base=false) const
Saves into a file.
Scalar bbb
Metric factor B.
virtual void inc_dzpuis(int inc=1)
Increases by inc units the value of dzpuis and changes accordingly the values of the Scalar in the co...
double * p_espec_isco
Specific energy of a particle at the ISCO.
Vector beta
Shift vector .
void operator=(const Compobj_QI &)
Assignment to another Compobj_QI.
virtual void del_deriv() const
Deletes all the derived quantities.
int fwrite_be(const int *aa, int size, int nb, FILE *fich)
Writes integer(s) into a binary file according to the big endian convention.
void mult_rsint()
Multiplication by everywhere; dzpuis is not changed.
virtual ~Compobj_QI()
Destructor.
double * p_r_isco
Coordinate r of the ISCO.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
double * p_r_mb
Coordinate r of the marginally bound orbit.
virtual const Sym_tensor & cov() const
Read-only access to the covariant representation.
double * p_f_isco
Orbital frequency of the ISCO.
Scalar & set(const Itbl &ind)
Returns the value of a component (read/write version).
virtual void update_metric()
Updates the 3-metric from A and B and the shift vector from .
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Scalar nn
Lapse function N .
const Scalar & dsdr() const
Returns of *this .
virtual double r_mb(int lmin, ostream *ost=0x0) const
Coordinate r of the marginally bound circular orbit (R_mb).
virtual void sauve(FILE *) const
Save in a file.
Scalar & set(int)
Read/write access to a component.
virtual void del_deriv() const
Deletes all the derived quantities.
Class intended to describe valence-2 symmetric tensors.
Map & mp
Mapping describing the coordinate system (r,theta,phi)