gravastar.h
/*
* Definition of Lorene class Gravastar
*
*/
/*
* Copyright (c) 2010 Frederic Vincent
*
* 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 as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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
*
*/
#ifndef __GRAVASTAR_H_
#define __GRAVASTAR_H_
// Headers Lorene
#include "star_rot.h"
namespace Lorene {
class Eos ;
//--------------------------//
// class Gravastar //
//--------------------------//
class Gravastar : public Star_rot {
// Data :
// -----
protected:
double rho_core;
// Derived data :
// ------------
protected:
// Constructors - Destructor
// -------------------------
public:
Gravastar(Map& mp_i, int nzet_i, const Eos& eos_i, const double rho_core_i) ;
Gravastar(const Gravastar& ) ;
Gravastar(Map& mp_i, const Eos& eos_i, FILE* fich) ;
~Gravastar() ;
// Mutators / assignment
// ---------------------
public:
void operator=(const Gravastar& ) ;
void equation_of_state() ;
// Computational routines
// ----------------------
public:
void equilibrium(double omega0, double fact_omega,
int nzadapt, const Tbl& ent_limit,
const Itbl& icontrol, const Tbl& control,
Tbl& diff, Param* = 0x0) ;
// Outputs
// -------
public:
protected:
virtual ostream& operator>>(ostream& ) const ;
};
}
#endif
Lorene::Eos
Equation of state base class.
Definition eos.h:190
Lorene::Gravastar::operator>>
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Definition gravastar.C:185
Lorene::Gravastar::~Gravastar
~Gravastar()
Destructor.
Definition gravastar.C:59
Lorene::Gravastar::Gravastar
Gravastar(Map &mp_i, const Eos &eos_i, FILE *fich)
Constructor from a file (see sauve(FILE*) ).
Lorene::Gravastar::rho_core
double rho_core
Energy density in gravastar's core.
Definition gravastar.h:57
Lorene::Gravastar::Gravastar
Gravastar(Map &mp_i, int nzet_i, const Eos &eos_i, const double rho_core_i)
Standard constructor.
Definition gravastar.C:51
Lorene::Gravastar::Gravastar
Gravastar(const Gravastar &)
Copy constructor.
Lorene::Gravastar::equilibrium
void equilibrium(double omega0, double fact_omega, int nzadapt, const Tbl &ent_limit, const Itbl &icontrol, const Tbl &control, Tbl &diff, Param *=0x0)
Computes an equilibrium configuration.
Definition gravastar_equil.C:47
Lorene::Gravastar::operator=
void operator=(const Gravastar &)
Assignment to another Gravastar.
Lorene::Gravastar::equation_of_state
void equation_of_state()
Allows to computes the proper baryon and energy density, as well as pressure from the enthalpy,...
Definition gravastar.C:67
Lorene::Itbl
Basic integer array class.
Definition itbl.h:122
Lorene::Param
Parameter storage.
Definition param.h:125
Lorene::Star_rot::Star_rot
Star_rot(Map &mp_i, int nzet_i, bool relat, const Eos &eos_i)
Standard constructor.
Definition star_rot.C:86
Lorene::Tbl
Basic array class.
Definition tbl.h:161
Lorene
Lorene prototypes.
Definition app_hor.h:64
Lorene::Map
Map(const Mg3d &)
Constructor from a multi-domain 3D grid.
Definition map.C:139