30 #ifndef __ET_ROT_MAG_H_ 31 #define __ET_ROT_MAG_H_ 132 Cmp prolonge_c1(
const Cmp& uu,
const int nzet) ;
289 virtual void sauve(FILE* )
const ;
292 virtual ostream&
operator>>(ostream& )
const ;
303 virtual double mass_g()
const ;
305 virtual double grv2()
const ;
306 virtual double tsw()
const ;
314 double Q_int()
const;
330 virtual double grv3(ostream* ost = 0x0)
const ;
366 Cmp (*f_j)(
const Cmp& x,
const double),
367 Param& par_poisson_At,
Param& par_poisson_Avect) ;
402 Param& par_poisson_At,
Param& par_poisson_Avect) ;
498 int nzadapt,
const Tbl& ent_limit,
const Itbl& icontrol,
499 const Tbl& control,
double mbar_wanted,
double aexp_mass,
500 Tbl& diff,
const double Q0,
const double a_j0,
501 Cmp (*f_j)(
const Cmp& x,
const double),
502 Cmp (*M_j)(
const Cmp& x,
const double));
607 const double relax_mag);
638 bool include_mag=
true,
bool use_B =
true);
691 virtual void sauve(FILE* )
const ;
694 virtual ostream&
operator>>(ostream& )
const ;
699 virtual double mass_g()
const ;
701 virtual double grv2()
const ;
714 virtual double grv3(ostream* ost = 0x0)
const ;
758 Cmp (*f_j)(
const Cmp& x,
const double),
759 Param& par_poisson_At,
Param& par_poisson_Avect) ;
855 int nzadapt,
const Tbl& ent_limit,
const Itbl& icontrol,
856 const Tbl& control,
double mbar_wanted,
857 double magmom_wanted,
double aexp_mass,
858 Tbl& diff,
double Q0,
double a_j0,
859 Cmp (*f_j)(
const Cmp& x,
const double),
860 Cmp (*M_j)(
const Cmp& x,
const double));
const Cmp & get_Aphi() const
Returns the component of the electromagnetic potential divided by .
virtual double mom_quad_Bo() const
Part of the quadrupole moment.
virtual double grv3(ostream *ost=0x0) const
Error on the virial identity GRV3.
Tenseur E_em
electromagnetic energy density in the Eulerian frame
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
bool B_in_eos() const
Public accessor to the use_B_in_eos flag.
double GyroMag() const
Gyromagnetic ratio .
virtual double angu_mom() const
Angular momentum.
Et_magnetisation(Map &mp_i, int nzet_i, bool relat, const Eos &eos_i, bool include_mag=true, bool use_B=true)
Standard constructor.
const Scalar & get_E_I() const
Accessor to the interaction energy density.
double Q
In the case of a perfect conductor, the requated baryonic charge.
virtual void magnet_comput_plus(const int adapt_flag, const int initial_j, const Tbl an_j, Cmp(*f_j)(const Cmp &x, const Tbl), const Tbl bn_j, Cmp(*g_j)(const Cmp &x, const Tbl), Cmp(*N_j)(const Cmp &x, const Tbl), Param &par_poisson_At, Param &par_poisson_Avect)
Computes the electromagnetic quantities solving the Maxwell equations (6) and (7) of [Bocquet...
const Tenseur & get_Eem() const
Returns the electromagnetic energy density in the Eulerian frame.
Scalar E_I
Interaction (magnetisation) energy density.
Equation of state base class.
Tensor field of valence 0 (or component of a tensorial field).
Base class for coordinate mappings.
Class for isolated rotating stars *** DEPRECATED : use class Star_rot instead ***.
virtual double mass_g() const
Gravitational mass.
Tenseur Magn() const
Computes the magnetic field spherical components in Lorene's units.
const Scalar & get_magnetisation() const
Accessor to the magnetisation scalar field.
Basic integer array class.
virtual ~Et_rot_mag()
Destructor.
virtual void del_hydro_euler()
Sets to ETATNONDEF (undefined state) the hydrodynamical quantities relative to the Eulerian observer...
Tensor field of valence 1.
Cmp A_phi
-component of the electromagnetic potential 1-form divided by .
void equilibrium_mag(double ent_c, double omega0, double fact_omega, int nzadapt, const Tbl &ent_limit, const Itbl &icontrol, const Tbl &control, double mbar_wanted, double aexp_mass, Tbl &diff, const double Q0, const double a_j0, Cmp(*f_j)(const Cmp &x, const double), Cmp(*M_j)(const Cmp &x, const double))
Computes an equilibrium configuration.
const Cmp & get_jphi() const
Returns the component of the current 4-vector.
const Cmp & get_Bphi() const
Returns the component of the magnetic field.
const Cmp & get_At() const
Returns the t component of the electromagnetic potential, divided by .
virtual double angu_mom() const
Angular momentum.
const Tenseur & get_Srrem() const
Returns the rr-component of the electromagnetic stress 3-tensor, as measured in the Eulerian frame...
virtual double grv2() const
Error on the virial identity GRV2.
const Tenseur & get_Sppem() const
Returns the component of the electromagnetic stress 3-tensor, as measured in the Eulerian frame...
const Vector & get_J_I() const
Accessor to the interaction momentum vector.
Tenseur Srr_em
rr component of the electromagnetic stress 3-tensor, as measured in the Eulerian frame. (not used and set to 0, should be supressed)
void magnet_comput(const int adapt_flag, Cmp(*f_j)(const Cmp &x, const double), Param &par_poisson_At, Param &par_poisson_Avect)
Computes the electromagnetic quantities solving the Maxwell equations (6) and (7) of [Bocquet...
void operator=(const Et_rot_mag &)
Assignment to another Et_rot_mag.
double a_j
Amplitude of the curent/charge function.
void equilibrium_mag_plus(const Itbl &icontrol, const Tbl &control, Tbl &diff, const int initial_j, const Tbl an_j, Cmp(*f_j)(const Cmp &x, const Tbl), Cmp(*M_j)(const Cmp &x, const Tbl), const Tbl bn_j, Cmp(*g_j)(const Cmp &x, const Tbl), Cmp(*N_j)(const Cmp &x, const Tbl), const double relax_mag)
Computes an equilibrium configuration.
bool is_conduct() const
Tells if the star is made of conducting or isolating material.
Vector J_I
Interaction momentum density 3-vector.
double get_Q() const
Returns the requested electric charge in the case of a perfect conductor and the charge/baryon for an...
Scalar xmag
The magnetisation scalar.
bool use_B_in_eos
Flag : true if the value of the magnetic field is used in the Eos.
Class for magnetized (isolator or perfect conductor), rigidly rotating stars.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
bool include_magnetisation
Flag : true if magnetisation terms are included in the equations.
bool use_magnetisation() const
Public accessor to the include_magnetisation flag.
Et_rot_mag(Map &mp_i, int nzet_i, bool relat, const Eos &eos_i, const int cond)
Standard constructor.
virtual void sauve(FILE *) const
Save in a file.
virtual void del_deriv() const
Deletes all the derived quantities.
void operator=(const Et_magnetisation &)
Assignment to another Et_rot_mag.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Cmp j_phi
-component of the current 4-vector
double get_a_j() const
Returns the amplitude of the current/charge function.
virtual double mom_quad_old() const
Part of the quadrupole moment.
virtual double grv2() const
Error on the virial identity GRV2.
Cmp j_t
t-component of the current 4-vector
virtual double tsw() const
Ratio T/W.
void equilibrium_mag(double ent_c, double omega0, double fact_omega, int nzadapt, const Tbl &ent_limit, const Itbl &icontrol, const Tbl &control, double mbar_wanted, double magmom_wanted, double aexp_mass, Tbl &diff, double Q0, double a_j0, Cmp(*f_j)(const Cmp &x, const double), Cmp(*M_j)(const Cmp &x, const double))
Computes an equilibrium configuration.
double Q_int() const
Computed charge from the integration of charge density over the star (i.e.
virtual void sauve(FILE *) const
Save in a file.
virtual void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
virtual void magnet_comput(const int adapt_flag, Cmp(*f_j)(const Cmp &x, const double), Param &par_poisson_At, Param &par_poisson_Avect)
Computes the electromagnetic quantities solving the Maxwell equations (6) and (7) of [Bocquet...
Sym_tensor Sij_I
Interaction stress 3-tensor.
Tenseur Elec() const
Computes the electric field spherical components in Lorene's units.
virtual double mass_g() const
Gravitational mass.
Cmp A_t
t-component of the elecctromagnetic potential 1-form, divided by .
virtual void MHD_comput()
Computes the electromagnetic part of the stress-energy tensor.
virtual double grv3(ostream *ost=0x0) const
Error on the virial identity GRV3.
const Cmp & get_jt() const
Returns the t component of the current 4-vector.
const Tenseur & get_Jpem() const
Returns the -component of the electromagnetic momentum density 3-vector, as measured in the Eulerian ...
virtual void equation_of_state()
Computes the proper baryon and energy density, as well as pressure from the enthalpy.
int conduc
Flag: conduc=0->isolator, 1->perfect conductor.
double Q_comput() const
Computed charge deduced from the asymptotic behaviour of At [SI units].
virtual ~Et_magnetisation()
Destructor.
double MagMom() const
Magnetic Momentum in SI units.
Cmp B_phi
-component of the magnetic field
virtual double mom_quad_old() const
Part of the quadrupole moment.
Class intended to describe valence-2 symmetric tensors.
Tensor handling *** DEPRECATED : use class Tensor instead ***.
Tenseur Jp_em
component of the electromagnetic momentum density 3-vector, as measured in the Eulerian frame...
Tenseur Spp_em
component of the electromagnetic stress 3-tensor, as measured in the Eulerian frame.
const Sym_tensor & get_Sij_I() const
Accessor to the interaction stress tensor.
virtual void MHD_comput()
Computes the electromagnetic part of the stress-energy tensor.