78 ifstream file(file_name) ;
80 cerr <<
"Problem in opening the file " << file_name << endl ;
95 file.ignore(1000,
'\n') ;
96 file.ignore(1000,
'\n') ;
98 cout <<
"nz : " << nz << endl ;
104 for (
int l=1; l<nz; l++) {
105 cout <<
"l = " << l << endl ;
109 double* r_iso =
new double[nr] ;
110 double* r_areal =
new double[nr] ;
111 double* psi4 =
new double[nr] ;
112 double* alpha =
new double[nr] ;
113 double* Krphi =
new double[nr] ;
114 double* beta_phi =
new double[nr] ;
118 r_areal[nr-1] = __infinity ;
119 r_iso[nr-1] = __infinity ;
125 for (
int i=0; i<nr_max; i++) {
133 file >> beta_phi[i] ;
134 cout <<
"r_iso, psi4, beta_phi : " << r_iso[i] <<
" " << psi4[i] <<
" " << beta_phi[i] << endl ;
137 if (l==1) r_inner = r_iso[0] ;
139 for (
int k=0; k<np; k++) {
140 for (
int j=0; j<nt; j++) {
141 for (
int i=0; i<nr; i++) {
257 ost << endl <<
"Alternative black hole spacetime in quasi-isotropic coordinates (class AltBH_QI) " << endl ;
276 if ( (
mp.
get_mg())->get_np(0) == 1) {
279 assert( dynamic_cast<const Map_radial*>(&
mp) != 0x0 ) ;
Base class for axisymmetric stationary compact objects in Quasi-Isotropic coordinates (under developm...
AltBH_QI(Map &mp_i, const char *file_name, double a_spin_i)
Standard constructor.
virtual void extrinsic_curvature()
Computation of the extrinsic curvature.
int get_np(int l) const
Returns the number of points in the azimuthal direction ( ) in domain no. l.
virtual void del_deriv() const
Deletes all the derived quantities.
Cmp sqrt(const Cmp &)
Square root.
virtual void annule(int l_min, int l_max)
Sets the Scalar to zero in several domains.
double a_spin
Spin parameter of the model.
Standard units of space, time and mass.
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).
Base class for coordinate mappings.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
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 allocate_all()
Sets the logical state to ETATQCQ (ordinary state) and performs the memory allocation of all the elem...
virtual void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
Sym_tensor kk
Extrinsic curvature tensor .
virtual void extrinsic_curvature()
Computation of the extrinsic curvature.
Scalar a_car
Square of the metric factor A.
Scalar nphi
Metric coefficient .
Scalar b_car
Square of the metric factor B.
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.
virtual ~AltBH_QI()
Destructor.
Scalar bbb
Metric factor B.
virtual void sauve(FILE *) const
Save in a file.
virtual void homothetie(double lambda)=0
Sets a new radial scale.
void operator=(const AltBH_QI &)
Assignment to another AltBH_QI.
void operator=(const Compobj_QI &)
Assignment to another Compobj_QI.
int get_nzone() const
Returns the number of domains.
virtual void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
int get_nr(int l) const
Returns the number of points in the radial direction ( ) in domain no. l.
double & set_grid_point(int l, int k, int j, int i)
Setting the value of the field at a given grid point.
Alternative black hole spacetime in Quasi-Isotropic coordinates (under development).
Scalar & set(const Itbl &ind)
Returns the value of a component (read/write version).
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Scalar krphi
K_{(r)(phi)} read in the file.
Scalar nn
Lapse function N .
int get_nt(int l) const
Returns the number of points in the co-latitude direction ( ) in domain no. l.
char description1[256]
String describing the model.
char description2[256]
String describing the model.
virtual void del_deriv() const
Deletes all the derived quantities.
Map & mp
Mapping describing the coordinate system (r,theta,phi)