star_bhns.C
/*
* Methods of class Star_bhns
*
* (see file star_bhns.h for documentation).
*
*/
/*
* Copyright (c) 2005-2007 Keisuke Taniguchi
*
* This file is part of LORENE.
*
* LORENE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* LORENE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LORENE; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
char star_bhns_C[] = "$Header: /cvsroot/Lorene/C++/Source/Star_bhns/star_bhns.C,v 1.4 2014/10/13 08:53:40 j_novak Exp $" ;
/*
* $Id: star_bhns.C,v 1.4 2014/10/13 08:53:40 j_novak Exp $
* $Log: star_bhns.C,v $
* Revision 1.4 2014/10/13 08:53:40 j_novak
* Lorene classes and functions now belong to the namespace Lorene.
*
* Revision 1.3 2014/10/06 15:13:16 j_novak
* Modified #include directives to use c++ syntax.
*
* Revision 1.2 2008/05/15 19:12:38 k_taniguchi
* Change of some parameters.
*
* Revision 1.1 2007/06/22 01:30:10 k_taniguchi
* *** empty log message ***
*
*
* $Header: /cvsroot/Lorene/C++/Source/Star_bhns/star_bhns.C,v 1.4 2014/10/13 08:53:40 j_novak Exp $
*
*/
// C++ headers
//#include <>
// C headers
#include <cmath>
// Lorene headers
#include "etoile.h"
#include "star.h"
#include "star_bhns.h"
#include "eos.h"
#include "unites.h"
// Local prototype
namespace Lorene {
Cmp raccord_c1(const Cmp& uu, int l1) ;
//---------------------//
// Constructor //
//---------------------//
// Standard constructor
// --------------------
Star_bhns::Star_bhns(Map& mp_i, int nzet_i, const Eos& eos_i, bool irrot_i)
: Star(mp_i, nzet_i, eos_i),
mp_aff(mp_i),
irrotational(irrot_i),
psi0(mp_i),
d_psi(mp_i, COV, mp_i.get_bvect_cart()),
wit_w(mp_i, CON, mp_i.get_bvect_cart()),
loggam(mp_i),
bsn(mp_i, CON, mp_i.get_bvect_cart()),
gam(mp_i),
gam0(mp_i),
pot_centri(mp_i),
lapconf_auto(mp_i),
lapconf_comp(mp_i),
lapconf_tot(mp_i),
lapse_auto(mp_i),
lapse_tot(mp_i),
d_lapconf_auto(mp_i, COV, mp_i.get_bvect_cart()),
d_lapconf_comp(mp_i, COV, mp_i.get_bvect_cart()),
shift_auto(mp_i, CON, mp_i.get_bvect_cart()),
shift_comp(mp_i, CON, mp_i.get_bvect_cart()),
shift_tot(mp_i, CON, mp_i.get_bvect_cart()),
d_shift_auto(mp_i, 2, CON, mp_i.get_bvect_cart()),
d_shift_comp(mp_i, 2, CON, mp_i.get_bvect_cart()),
confo_auto(mp_i),
confo_comp(mp_i),
confo_tot(mp_i),
d_confo_auto(mp_i, COV, mp_i.get_bvect_cart()),
d_confo_comp(mp_i, COV, mp_i.get_bvect_cart()),
psi4(mp_i),
taij_auto(mp_i, CON, mp_i.get_bvect_cart()),
taij_quad_auto(mp_i),
flat(mp_i, mp_i.get_bvect_cart()),
ssjm1_lapconf(mp_i),
ssjm1_confo(mp_i),
ssjm1_khi(mp_i),
ssjm1_wshift(mp_i, CON, mp_i.get_bvect_cart())
{
// Pointers of derived quantities initialized to zero :
set_der_0x0() ;
// Quantities defined on a spherical triad in star.C are put on
// a cartesian one
u_euler.change_triad(mp_i.get_bvect_cart()) ;
// All quantities are initialized to zero
psi0 = 0. ;
psi0.std_spectral_base() ;
d_psi.set_etat_zero() ;
wit_w.set_etat_zero() ;
loggam = 0. ;
loggam.std_spectral_base() ;
bsn.set_etat_zero() ;
gam = 0. ;
gam.std_spectral_base() ;
gam0 = 0. ;
gam0.std_spectral_base() ;
pot_centri = 0. ;
pot_centri.std_spectral_base() ;
lapconf_auto = 1. ;
lapconf_auto.std_spectral_base() ;
lapconf_comp = 0. ;
lapconf_comp.std_spectral_base() ;
lapconf_tot = 1. ;
lapconf_tot.std_spectral_base() ;
lapse_auto = 1. ;
lapse_auto.std_spectral_base() ;
lapse_tot = 1. ;
lapse_tot.std_spectral_base() ;
d_lapconf_auto.set_etat_zero() ;
d_lapconf_comp.set_etat_zero() ;
shift_auto.set_etat_zero() ;
shift_comp.set_etat_zero() ;
shift_tot.set_etat_zero() ;
d_shift_auto.set_etat_zero() ;
d_shift_comp.set_etat_zero() ;
confo_auto = 1. ;
confo_auto.std_spectral_base() ;
confo_comp = 0. ;
confo_comp.std_spectral_base() ;
confo_tot = 1. ;
confo_tot.std_spectral_base() ;
d_confo_auto.set_etat_zero() ;
d_confo_comp.set_etat_zero() ;
psi4 = 1. ;
psi4.std_spectral_base() ;
taij_auto.set_etat_zero() ;
taij_quad_auto = 0. ;
taij_quad_auto.std_spectral_base() ;
ssjm1_lapconf = 0. ;
ssjm1_lapconf.std_spectral_base() ;
ssjm1_confo = 0. ;
ssjm1_confo.std_spectral_base() ;
ssjm1_khi = 0. ;
ssjm1_khi.std_spectral_base() ;
ssjm1_wshift.set_etat_zero() ;
}
// Copy constructor
// ----------------
Star_bhns::Star_bhns(const Star_bhns& star)
: Star(star),
mp_aff(star.mp_aff),
irrotational(star.irrotational),
psi0(star.psi0),
d_psi(star.d_psi),
wit_w(star.wit_w),
loggam(star.loggam),
bsn(star.bsn),
gam(star.gam),
gam0(star.gam0),
pot_centri(star.pot_centri),
lapconf_auto(star.lapconf_auto),
lapconf_comp(star.lapconf_comp),
lapconf_tot(star.lapconf_tot),
lapse_auto(star.lapse_auto),
lapse_tot(star.lapse_tot),
d_lapconf_auto(star.d_lapconf_auto),
d_lapconf_comp(star.d_lapconf_comp),
shift_auto(star.shift_auto),
shift_comp(star.shift_comp),
shift_tot(star.shift_tot),
d_shift_auto(star.d_shift_auto),
d_shift_comp(star.d_shift_comp),
confo_auto(star.confo_auto),
confo_comp(star.confo_comp),
confo_tot(star.confo_tot),
d_confo_auto(star.d_confo_auto),
d_confo_comp(star.d_confo_comp),
psi4(star.psi4),
taij_auto(star.taij_auto),
taij_quad_auto(star.taij_quad_auto),
flat(star.flat),
ssjm1_lapconf(star.ssjm1_lapconf),
ssjm1_confo(star.ssjm1_confo),
ssjm1_khi(star.ssjm1_khi),
ssjm1_wshift(star.ssjm1_wshift)
{
set_der_0x0() ;
}
// Constructor from a file
// -----------------------
Star_bhns::Star_bhns(Map& mp_i, const Eos& eos_i, FILE* fich)
: Star(mp_i, eos_i, fich),
mp_aff(mp_i),
psi0(mp_i),
d_psi(mp_i, COV, mp_i.get_bvect_cart()),
wit_w(mp_i, CON, mp_i.get_bvect_cart()),
loggam(mp_i),
bsn(mp_i, CON, mp_i.get_bvect_cart()),
gam(mp_i),
gam0(mp_i),
pot_centri(mp_i),
lapconf_auto(mp_i, *(mp_i.get_mg()), fich),
lapconf_comp(mp_i),
lapconf_tot(mp_i),
lapse_auto(mp_i),
lapse_tot(mp_i),
d_lapconf_auto(mp_i, COV, mp_i.get_bvect_cart()),
d_lapconf_comp(mp_i, COV, mp_i.get_bvect_cart()),
shift_auto(mp_i, mp_i.get_bvect_cart(), fich),
shift_comp(mp_i, CON, mp_i.get_bvect_cart()),
shift_tot(mp_i, CON, mp_i.get_bvect_cart()),
d_shift_auto(mp_i, 2, CON, mp_i.get_bvect_cart()),
d_shift_comp(mp_i, 2, CON, mp_i.get_bvect_cart()),
confo_auto(mp_i, *(mp_i.get_mg()), fich),
confo_comp(mp_i),
confo_tot(mp_i),
d_confo_auto(mp_i, COV, mp_i.get_bvect_cart()),
d_confo_comp(mp_i, COV, mp_i.get_bvect_cart()),
psi4(mp_i),
taij_auto(mp_i, CON, mp_i.get_bvect_cart()),
taij_quad_auto(mp_i),
flat(mp_i, mp_i.get_bvect_cart()),
ssjm1_lapconf(mp_i, *(mp_i.get_mg()), fich),
ssjm1_confo(mp_i, *(mp_i.get_mg()), fich),
ssjm1_khi(mp_i, *(mp_i.get_mg()), fich),
ssjm1_wshift(mp_i, mp_i.get_bvect_cart(), fich)
{
// Star parameter
fread(&irrotational, sizeof(bool), 1, fich) ;
// Read of the saved fields
// ------------------------
if (irrotational) {
Scalar gam_euler_file(mp, *(mp.get_mg()), fich) ;
gam_euler = gam_euler_file ;
Scalar psi0_file(mp, *(mp.get_mg()), fich) ;
psi0 = psi0_file ;
}
// Quantities defined on a spherical triad in star.C are put on
// a cartesian one
u_euler.change_triad(mp_i.get_bvect_cart()) ;
// All other quantities are initialized to zero
// --------------------------------------------
d_psi.set_etat_zero() ;
wit_w.set_etat_zero() ;
loggam = 0. ;
loggam.std_spectral_base() ;
bsn.set_etat_zero() ;
gam = 0. ;
gam.std_spectral_base() ;
gam0 = 0. ;
gam0.std_spectral_base() ;
pot_centri = 0. ;
pot_centri.std_spectral_base() ;
lapconf_comp = 0. ;
lapconf_comp.std_spectral_base() ;
lapconf_tot = 1. ;
lapconf_tot.std_spectral_base() ;
lapse_auto = 1. ;
lapse_auto.std_spectral_base() ;
lapse_tot = 1. ;
lapse_tot.std_spectral_base() ;
d_lapconf_auto.set_etat_zero() ;
d_lapconf_comp.set_etat_zero() ;
shift_comp.set_etat_zero() ;
shift_tot.set_etat_zero() ;
d_shift_auto.set_etat_zero() ;
d_shift_comp.set_etat_zero() ;
confo_comp = 0. ;
confo_comp.std_spectral_base() ;
confo_tot = 1. ;
confo_tot.std_spectral_base() ;
d_confo_auto.set_etat_zero() ;
d_confo_comp.set_etat_zero() ;
psi4 = 1. ;
psi4.std_spectral_base() ;
taij_auto.set_etat_zero() ;
taij_quad_auto = 0. ;
taij_quad_auto.std_spectral_base() ;
// Pointers of derived quantities initialized to zero
// --------------------------------------------------
set_der_0x0() ;
}
//--------------------//
// Destructor //
//--------------------//
Star_bhns::~Star_bhns()
{
del_deriv() ;
}
//------------------------------------------//
// Management of derived quantities //
//------------------------------------------//
void Star_bhns::del_deriv() const {
Star::del_deriv() ;
if (p_mass_b_bhns != 0x0) delete p_mass_b_bhns ;
if (p_mass_g_bhns != 0x0) delete p_mass_g_bhns ;
set_der_0x0() ;
}
void Star_bhns::set_der_0x0() const {
Star::set_der_0x0() ;
p_mass_b_bhns = 0x0 ;
p_mass_g_bhns = 0x0 ;
}
//--------------------//
// Assignment //
//--------------------//
// Assignment to another Star_bhns
// -------------------------------
void Star_bhns::operator=(const Star_bhns& star) {
// Assignment of quantities common to the derived classes of Star
Star::operator=(star) ;
// Assignment of proper quantities of class Star_bhns
mp_aff = star.mp_aff ;
irrotational = star.irrotational ;
psi0 = star.psi0 ;
d_psi = star.d_psi ;
wit_w = star.wit_w ;
loggam = star.loggam ;
bsn = star.bsn ;
gam = star.gam ;
gam0 = star.gam0 ;
pot_centri = star.pot_centri ;
lapconf_auto = star.lapconf_auto ;
lapconf_comp = star.lapconf_comp ;
lapconf_tot = star.lapconf_tot ;
lapse_auto = star.lapse_auto ;
lapse_tot = star.lapse_tot ;
d_lapconf_auto = star.d_lapconf_auto ;
d_lapconf_comp = star.d_lapconf_comp ;
shift_auto = star.shift_auto ;
shift_comp = star.shift_comp ;
shift_tot = star.shift_tot ;
d_shift_auto = star.d_shift_auto ;
d_shift_comp = star.d_shift_comp ;
confo_auto = star.confo_auto ;
confo_comp = star.confo_comp ;
confo_tot = star.confo_tot ;
d_confo_auto = star.d_confo_auto ;
d_confo_comp = star.d_confo_comp ;
psi4 = star.psi4 ;
taij_auto = star.taij_auto ;
taij_quad_auto = star.taij_quad_auto ;
flat = star.flat ;
ssjm1_lapconf = star.ssjm1_lapconf ;
ssjm1_confo = star.ssjm1_confo ;
ssjm1_khi = star.ssjm1_khi ;
ssjm1_wshift = star.ssjm1_wshift ;
del_deriv() ;
}
Scalar& Star_bhns::set_pot_centri() {
del_deriv() ;
return pot_centri ;
}
Scalar& Star_bhns::set_lapconf_auto() {
del_deriv() ;
return lapconf_auto ;
}
Scalar& Star_bhns::set_lapconf_comp() {
del_deriv() ;
return lapconf_comp ;
}
Vector& Star_bhns::set_shift_auto() {
del_deriv() ;
return shift_auto ;
}
Vector& Star_bhns::set_shift_comp() {
del_deriv() ;
return shift_comp ;
}
Scalar& Star_bhns::set_confo_auto() {
del_deriv() ;
return confo_auto ;
}
Scalar& Star_bhns::set_confo_comp() {
del_deriv() ;
return confo_comp ;
}
//-----------------//
// Outputs //
//-----------------//
// Save in a file
// --------------
void Star_bhns::sauve(FILE* fich) const {
Star::sauve(fich) ;
lapconf_auto.sauve(fich) ;
shift_auto.sauve(fich) ;
confo_auto.sauve(fich) ;
ssjm1_lapconf.sauve(fich) ;
ssjm1_confo.sauve(fich) ;
ssjm1_khi.sauve(fich) ;
ssjm1_wshift.sauve(fich) ;
fwrite(&irrotational, sizeof(bool), 1, fich) ;
if (irrotational) {
gam_euler.sauve(fich) ; // required to construct d_psi from psi0
psi0.sauve(fich) ;
}
}
// Printing
// --------
ostream& Star_bhns::operator>>(ostream& ost) const {
using namespace Unites ;
// Star::operator>>(ost) ;
ost << endl ;
ost << "Neutron star in a BHNS binary" << endl ;
ost << "-----------------------------" << endl ;
ost << "Coordinate radius R_eq_tow : "
<< ray_eq_pi() / km << " [km]" << endl ;
ost << "Coordinate radius R_eq_opp : "
<< ray_eq() / km << " [km]" << endl ;
ost << "Coordinate radius R_eq_orb : "
<< ray_eq_pis2() / km << " [km]" << endl ;
ost << "Coordinate radius R_pole : "
<< ray_pole() / km << " [km]" << endl ;
ost << "Central enthalph H_ent : "
<< ent.val_grid_point(0,0,0,0) << endl ;
ost << "Lapse function at the center of NS : "
<< lapse_tot.val_grid_point(0,0,0,0) << endl ;
ost << "Conformal factor at the center of NS : "
<< confo_tot.val_grid_point(0,0,0,0) << endl ;
ost << "shift(1) at the center of NS : "
<< shift_tot(1).val_grid_point(0,0,0,0) << endl ;
ost << "shift(2) at the center of NS : "
<< shift_tot(2).val_grid_point(0,0,0,0) << endl ;
ost << "shift(3) at the center of NS : "
<< shift_tot(3).val_grid_point(0,0,0,0) << endl ;
return ost ;
}
//--------------------------------//
// Computational routines //
//--------------------------------//
void Star_bhns::fait_d_psi_bhns() {
if (!irrotational) {
d_psi.set_etat_nondef() ;
return ;
}
// Specific relativistic enthalpy ---> hhh
// ------------------------------
Scalar hhh = exp(ent) ; // = 1 at the Newtonian limit
// Computation of W^i = h Gamma_n B^i / N
// --------------------------------------
Vector www = hhh * gam_euler * bsn * psi4 ;
// Constant value of W^i at the center of the star
// -----------------------------------------------
Vector v_orb(mp, COV, mp.get_bvect_cart()) ;
for (int i=1; i<=3; i++) {
v_orb.set(i) = www(i).val_grid_point(0,0,0,0) ;
}
// Gradient of psi
// ---------------
Vector d_psi0(mp, COV, mp.get_bvect_cart()) ;
d_psi0.set_etat_qcq() ;
for (int i=1; i<=3; i++)
d_psi0.set(i) = psi0.deriv(i) ;
d_psi0.std_spectral_base() ;
d_psi = d_psi0 + v_orb ;
for (int i=1; i<=3; i++) {
if (d_psi(i).get_etat() == ETATZERO)
d_psi.set(i).annule_hard() ;
}
// C^1 continuation of d_psi outside the star
// (to ensure a smooth enthalpy field accross the stellar surface)
// ---------------------------------------------------------------
int nzm1 = mp.get_mg()->get_nzone() - 1 ;
d_psi.annule(nzet, nzm1) ;
for (int i=1; i<=3; i++) {
Cmp d_psi_i (d_psi(i)) ;
d_psi_i.va.set_base( d_psi0(i).get_spectral_va().base ) ;
d_psi_i = raccord_c1(d_psi_i, nzet) ;
d_psi.set(i) = d_psi_i ;
}
}
void Star_bhns::relax_bhns(const Star_bhns& star_prev, double relax_ent,
double relax_met, int mer, int fmer_met) {
double relax_ent_jm1 = 1. - relax_ent ;
double relax_met_jm1 = 1. - relax_met ;
ent = relax_ent * ent + relax_ent_jm1 * star_prev.ent ;
if ( (mer != 0) && (mer % fmer_met == 0)) {
lapconf_auto = relax_met * lapconf_auto
+ relax_met_jm1 * star_prev.lapconf_auto ;
shift_auto = relax_met * shift_auto
+ relax_met_jm1 * star_prev.shift_auto ;
confo_auto = relax_met * confo_auto
+ relax_met_jm1 * star_prev.confo_auto ;
}
del_deriv() ;
equation_of_state() ;
}
}
Lorene::Cmp
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
Definition cmp.h:446
Lorene::Cmp::va
Valeur va
The numerical value of the Cmp.
Definition cmp.h:464
Lorene::Eos
Equation of state base class.
Definition eos.h:190
Lorene::Scalar
Tensor field of valence 0 (or component of a tensorial field).
Definition scalar.h:387
Lorene::Star_bhns::flat
Metric_flat flat
Flat metric defined on the mapping (Spherical components with respect to the mapping of the star ).
Definition star_bhns.h:192
Lorene::Star_bhns::set_confo_comp
Scalar & set_confo_comp()
Read/write of the conformal factor generated by the companion black hole.
Definition star_bhns.C:456
Lorene::Star_bhns::sauve
virtual void sauve(FILE *) const
Save in a file.
Definition star_bhns.C:470
Lorene::Star_bhns::shift_tot
Vector shift_tot
Total shift vector.
Definition star_bhns.h:144
Lorene::Star_bhns::taij_auto
Sym_tensor taij_auto
Part of the extrinsic curvature tensor generated by shift_auto , lapse_auto , and confo_auto .
Definition star_bhns.h:182
Lorene::Star_bhns::lapconf_auto
Scalar lapconf_auto
Lapconf function generated by the star.
Definition star_bhns.h:113
Lorene::Star_bhns::confo_comp
Scalar confo_comp
Conformal factor generated by the companion black hole.
Definition star_bhns.h:160
Lorene::Star_bhns::wit_w
Vector wit_w
Spatial projection of the fluid 3-velocity with respect to the co-orbiting observer.
Definition star_bhns.h:88
Lorene::Star_bhns::d_shift_auto
Tensor d_shift_auto
Derivative of the shift vector generated by the star .
Definition star_bhns.h:149
Lorene::Star_bhns::bsn
Vector bsn
3-vector shift, divided by N , of the rotating coordinates, .
Definition star_bhns.h:99
Lorene::Star_bhns::set_confo_auto
Scalar & set_confo_auto()
Read/write of the conformal factor generated by the neutron star.
Definition star_bhns.C:449
Lorene::Star_bhns::set_shift_auto
Vector & set_shift_auto()
Read/write of the shift vector generated by the neutron star.
Definition star_bhns.C:435
Lorene::Star_bhns::set_lapconf_auto
Scalar & set_lapconf_auto()
Read/write of the lapconf function generated by the neutron star.
Definition star_bhns.C:421
Lorene::Star_bhns::set_pot_centri
Scalar & set_pot_centri()
Read/write the centrifugal potential.
Definition star_bhns.C:414
Lorene::Star_bhns::fait_d_psi_bhns
void fait_d_psi_bhns()
Computes the gradient of the total velocity potential .
Definition star_bhns.C:535
Lorene::Star_bhns::lapse_tot
Scalar lapse_tot
Total lapse function.
Definition star_bhns.h:125
Lorene::Star_bhns::ssjm1_wshift
Vector ssjm1_wshift
Effective source at the previous step for the resolution of the vector Poisson equation for by means...
Definition star_bhns.h:220
Lorene::Star_bhns::del_deriv
virtual void del_deriv() const
Deletes all the derived quantities.
Definition star_bhns.C:341
Lorene::Star_bhns::d_confo_comp
Vector d_confo_comp
Derivative of the conformal factor generated by the companion black hole.
Definition star_bhns.h:173
Lorene::Star_bhns::operator=
void operator=(const Star_bhns &)
Assignment to another Star_bhns.
Definition star_bhns.C:368
Lorene::Star_bhns::confo_tot
Scalar confo_tot
Total conformal factor.
Definition star_bhns.h:163
Lorene::Star_bhns::psi4
Scalar psi4
Fourth power of the total conformal factor.
Definition star_bhns.h:176
Lorene::Star_bhns::d_lapconf_auto
Vector d_lapconf_auto
Derivative of the lapconf function generated by the star .
Definition star_bhns.h:130
Lorene::Star_bhns::d_psi
Vector d_psi
Gradient of (in the irrotational case) (Spherical components with respect to the mapping of the star...
Definition star_bhns.h:82
Lorene::Star_bhns::d_confo_auto
Vector d_confo_auto
Derivative of the conformal factor generated by the star .
Definition star_bhns.h:168
Lorene::Star_bhns::set_lapconf_comp
Scalar & set_lapconf_comp()
Read/write of the lapconf function generated by the companion black hole.
Definition star_bhns.C:428
Lorene::Star_bhns::gam0
Scalar gam0
Lorentz factor between the co-orbiting observer and the Eulerian one.
Definition star_bhns.h:107
Lorene::Star_bhns::shift_comp
Vector shift_comp
Shift vector generated by the companion black hole.
Definition star_bhns.h:141
Lorene::Star_bhns::lapconf_tot
Scalar lapconf_tot
Total lapconf function.
Definition star_bhns.h:119
Lorene::Star_bhns::Star_bhns
Star_bhns(Map &mp_i, int nzet_i, const Eos &eos_i, bool irrot_i)
Standard constructor.
Definition star_bhns.C:73
Lorene::Star_bhns::d_lapconf_comp
Vector d_lapconf_comp
Derivative of the lapconf function generated by the companion black hole.
Definition star_bhns.h:135
Lorene::Star_bhns::set_shift_comp
Vector & set_shift_comp()
Read/write of the shift vector generated by the companion black hole.
Definition star_bhns.C:442
Lorene::Star_bhns::gam
Scalar gam
Lorentz factor between the fluid and the co-orbiting observer.
Definition star_bhns.h:102
Lorene::Star_bhns::ssjm1_lapconf
Scalar ssjm1_lapconf
Effective source at the previous step for the resolution of the Poisson equation for lapconf_auto .
Definition star_bhns.h:197
Lorene::Star_bhns::irrotational
bool irrotational
true for an irrotational star, false for a corotating one
Definition star_bhns.h:72
Lorene::Star_bhns::pot_centri
Scalar pot_centri
Centrifugal potential.
Definition star_bhns.h:110
Lorene::Star_bhns::set_der_0x0
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
Definition star_bhns.C:352
Lorene::Star_bhns::p_mass_b_bhns
double * p_mass_b_bhns
Baryon mass.
Definition star_bhns.h:225
Lorene::Star_bhns::lapse_auto
Scalar lapse_auto
Lapse function generated by the "star".
Definition star_bhns.h:122
Lorene::Star_bhns::relax_bhns
void relax_bhns(const Star_bhns &star_prev, double relax_ent, double relax_met, int mer, int fmer_met)
Performs a relaxation on ent , lapse_auto , shift_auto , confo_auto .
Definition star_bhns.C:594
Lorene::Star_bhns::psi0
Scalar psi0
Scalar potential of the non-translational part of fluid 4-velocity (in the irrotational case).
Definition star_bhns.h:77
Lorene::Star_bhns::lapconf_comp
Scalar lapconf_comp
Lapconf function generated by the companion black hole.
Definition star_bhns.h:116
Lorene::Star_bhns::taij_quad_auto
Scalar taij_quad_auto
Part of the scalar generated by .
Definition star_bhns.h:187
Lorene::Star_bhns::operator>>
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Definition star_bhns.C:495
Lorene::Star_bhns::shift_auto
Vector shift_auto
Shift vector generated by the star.
Definition star_bhns.h:138
Lorene::Star_bhns::ssjm1_khi
Scalar ssjm1_khi
Effective source at the previous step for the resolution of the Poisson equation for the scalar by m...
Definition star_bhns.h:210
Lorene::Star_bhns::confo_auto
Scalar confo_auto
Conformal factor generated by the star.
Definition star_bhns.h:157
Lorene::Star_bhns::ssjm1_confo
Scalar ssjm1_confo
Effective source at the previous step for the resolution of the Poisson equation for confo_auto .
Definition star_bhns.h:202
Lorene::Star_bhns::mp_aff
Map_af mp_aff
Affine mapping for solving poisson's equations of metric quantities.
Definition star_bhns.h:67
Lorene::Star_bhns::d_shift_comp
Tensor d_shift_comp
Derivative of the shift vector generated by the companion black hole.
Definition star_bhns.h:154
Lorene::Star_bhns::loggam
Scalar loggam
Logarithm of the Lorentz factor between the fluid and the co-orbiting observer.
Definition star_bhns.h:93
Lorene::Star_bhns::~Star_bhns
virtual ~Star_bhns()
Destructor.
Definition star_bhns.C:329
Lorene::Star_bhns::p_mass_g_bhns
double * p_mass_g_bhns
Gravitational mass.
Definition star_bhns.h:226
Lorene::Star::Star
Star(Map &mp_i, int nzet_i, const Eos &eos_i)
Standard constructor.
Definition star.C:124
Lorene::Star::equation_of_state
void equation_of_state()
Computes the proper baryon and energy density, as well as pressure from the enthalpy.
Definition star.C:462
Lorene::Star::del_deriv
virtual void del_deriv() const
Deletes all the derived quantities.
Definition star.C:298
Lorene::Star::gam_euler
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
Definition star.h:204
Lorene::Star::set_der_0x0
virtual void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
Definition star.C:316
Lorene::Star::ray_eq
double ray_eq() const
Coordinate radius at , [r_unit].
Definition star_global.C:108
Lorene::Star::sauve
virtual void sauve(FILE *) const
Save in a file.
Definition star.C:397
Lorene::Star::ray_eq_pis2
double ray_eq_pis2() const
Coordinate radius at , [r_unit].
Definition star_global.C:138
Lorene::Star::ray_eq_pi
double ray_eq_pi() const
Coordinate radius at , [r_unit].
Definition star_global.C:186
Lorene::Star::ent
Scalar ent
Log-enthalpy.
Definition star.h:190
Lorene::Star::u_euler
Vector u_euler
Fluid 3-velocity with respect to the Eulerian observer.
Definition star.h:207
Lorene::Star::mp
Map & mp
Mapping associated with the star.
Definition star.h:180
Lorene::Star::operator=
void operator=(const Star &)
Assignment to another Star.
Definition star.C:351
Lorene::Star::nzet
int nzet
Number of domains of *mp occupied by the star.
Definition star.h:183
Lorene::Star::ray_pole
double ray_pole() const
Coordinate radius at [r_unit].
Definition star_global.C:278
Lorene::Valeur::set_base
void set_base(const Base_val &)
Sets the bases for spectral expansions (member base ).
Definition valeur.C:810
Lorene::Vector
Tensor field of valence 1.
Definition vector.h:188
Lorene::Vector::std_spectral_base
virtual void std_spectral_base()
Sets the standard spectal bases of decomposition for each component.
Definition vector.C:316
Lorene::Vector::set
Scalar & set(int)
Read/write access to a component.
Definition vector.C:296
Lorene::exp
Cmp exp(const Cmp &)
Exponential.
Definition cmp_math.C:270
Lorene::Tensor::set_etat_qcq
virtual void set_etat_qcq()
Sets the logical state of all components to ETATQCQ (ordinary state).
Definition tensor.C:481
Lorene
Lorene prototypes.
Definition app_hor.h:64
Lorene::get_bvect_cart
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping,...
Definition map.h:791
Lorene::get_mg
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
Definition map.h:765
Lorene::Map
Map(const Mg3d &)
Constructor from a multi-domain 3D grid.
Definition map.C:139
Unites
Standard units of space, time and mass.