ESTER
Evolution STEllaire en Rotation
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
star1d Class Reference

#include <star.h>

Inheritance diagram for star1d:
Inheritance graph
[legend]
Collaboration diagram for star1d:
Collaboration graph
[legend]

Public Member Functions

 star1d ()
 
 ~star1d ()
 
 star1d (const star1d &)
 
star1doperator= (const star1d &)
 
virtual int init (const char *input_file, const char *param_file, int argc, char *argv[])
 
virtual int check_arg (char *arg, char *val, int *change_grid)
 
virtual int read_old (const char *input_file)
 
virtual int read (const char *input_file, int dim=1)
 
virtual void dump_info ()
 
virtual solverinit_solver (int nvar_add=0)
 
virtual void register_variables (solver *op)
 
virtual double solve (solver *)
 Performs one step of the Newton algorithm to compute the star's internal structure. More...
 
virtual void solve_poisson (solver *)
 Writes Poisson equation and interface conditions into the solver. More...
 
virtual void solve_pressure (solver *)
 
virtual void solve_temp (solver *)
 Writes temperature and luminosity equations and interface conditions into the solver. More...
 
virtual void solve_dim (solver *)
 Writes the equations for the dimensional quantities (T_c, rho_c, R, etc.) More...
 
virtual void solve_map (solver *)
 Part of the Jacobian associated with the mapping There are geometrical relations and physical relations placing the physical interfaces on surfaces zeta=cst. Option also to define the stellar surface as a tau=cst or P=cst. More...
 
virtual void solve_definitions (solver *)
 insert the definitions depending on opacity and eos tables into the solver, and the definitions used by the mapping (eta,deta,Ri,dRi,...), and the entropy More...
 
virtual void solve_Teff (solver *)
 Equation setting the surface effective temperature Derived from sigma T_e^4 = -xi. More...
 
virtual void solve_gsup (solver *)
 Equation giving the effective surface gravity gsup gsup=(- P)/rho. More...
 
virtual void update_map (matrix dR)
 
virtual matrix N2 () const
 
virtual double luminosity () const
 
virtual matrix Teff () const
 
virtual matrix gsup () const
 
virtual void fill ()
 Initialize star's chemical composition, equation of state, opacity, nuclear reaction, mass definition, pi_c, Lambda, velocity, units, atmosphere, flatness, scaled keplerian angular velocity. More...
 
void spectrum (figure *, const matrix &, const char *line="") const
 
virtual void check_jacobian (solver *op, const char *eqn)
 Routine to check the Jacobian matrix. More...
 
- Public Member Functions inherited from star2d
void calc_units ()
 
 star2d ()
 
virtual ~star2d ()
 
 star2d (const star2d &)
 
star2doperator= (const star2d &)
 
virtual void opacity ()
 
virtual void nuclear ()
 
virtual void eq_state ()
 
virtual void atmosphere ()
 
virtual void write (const char *output_file, char output_mode='b') const
 
virtual void interp (remapper *red)
 
virtual void init_comp ()
 
virtual void solve_mov (solver *)
 Writes movement and vorticity equations into the solver. More...
 
virtual void solve_Omega (solver *)
 Equation setting the equatorial angular velocity. More...
 
virtual void solve_atm (solver *)
 Equation setting the 'simple' atmosphere model equations To be checked. More...
 
virtual void calc_veloc ()
 
virtual matrix entropy () const
 
virtual double virial_3P () const
 
virtual double virial_L () const
 
virtual double virial_W () const
 
virtual double virial_ps () const
 
virtual double virial () const
 
virtual double energy_test () const
 
virtual matrix stream () const
 
virtual double apparent_luminosity (double i) const
 
virtual double Lz () const
 
virtual double Mcore () const
 
virtual double Lzcore () const
 
virtual matrix Rcore () const
 
virtual void remap (int ndomains, int *npts, int nth, int nex)
 
virtual bool remap_domains (int ndom, remapper &red)
 
virtual matrix find_boundaries (const matrix &logTi) const
 
virtual std::vector< int > distribute_domains (int ndom, matrix &zif, bool check_only=false) const
 
virtual matrix distribute_domains (int ndomains, int &conv_new, double p_cc=0) const
 
virtual matrix find_boundaries_old (matrix pif) const
 
virtual void check_map ()
 
virtual int check_convec (double &p_cc, matrix &Rcc)
 
void draw (figure *, const matrix &, int parity=0) const
 
void drawi (figure *, const matrix &, int sr, int st, int parity=0) const
 
void drawc (figure *, const matrix &, int ncontours, int parity=0) const
 
void drawci (figure *, const matrix &, int sr, int st, int ncontours, int parity=0) const
 
void spectrum (figure *, const matrix &, int parity=0) const
 
matrix kconv () const
 
void add_kconv (solver *op, const char *eqn, const matrix &d)
 
void add_dkconv_dz (solver *op, const char *eqn, const matrix &d)
 
void kconv_common (matrix &kc, matrix &Ja, matrix &Jb, symbolic &S, sym &a_, sym &b_) const
 
void hdf5_write (const char *filename) const
 
int hdf5_read (const char *input_file, int dim)
 

Protected Member Functions

virtual bool check_tag (const char *tag) const
 
virtual void write_tag (OUTFILE *fp) const
 
- Protected Member Functions inherited from star2d
virtual void copy (const star2d &)
 
void init1d (const star1d &A, int npts_th, int npts_ex)
 

Additional Inherited Members

- Public Attributes inherited from star2d
mapping map
 
const int & nr
 
const int & nth
 
const int & nex
 
const int & ndomains
 
const matrixr
 
const matrixz
 
const matrixth
 
const matrixDt
 
const matrixDt2
 
const matrixzex
 
const matrixDex
 
const matrixrex
 
const matrix_block_diagD
 
matrix rho
 
matrix phi
 
matrix p
 
matrix T
 
matrix phiex
 
matrix vr
 
matrix vt
 
matrix G
 
matrix w
 
composition_map comp
 
double X0
 
double Y0
 
double Z0
 
double R
 
double M
 
double rhoc
 
double Tc
 
double pc
 
double Omega
 
double Omega_bk
 
double Omegac
 
double Ekman
 
opa_struct opa
 
nuc_struct nuc
 
eos_struct eos
 
atm_struct atm
 
matrix ps
 
matrix Ts
 
double m
 
double pi_c
 
double Lambda
 
double surff
 
int conv
 
double Xc
 
int core_convec
 
int env_convec
 
int stratified_comp
 
double min_core_size
 
std::vector< int > domain_type
 
struct star2d::version_struct version
 
struct star2d::units_struct units
 
struct star2d::config_struct config
 

Constructor & Destructor Documentation

star1d::star1d ( )
star1d::~star1d ( )
star1d::star1d ( const star1d A)

Member Function Documentation

int star1d::check_arg ( char *  arg,
char *  val,
int *  change_grid 
)
virtual

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::check_jacobian ( solver op,
const char *  eqn 
)
virtual

Routine to check the Jacobian matrix.

Reimplemented from star2d.

Here is the call graph for this function:

bool star1d::check_tag ( const char *  tag) const
protectedvirtual

Reimplemented from star2d.

void star1d::dump_info ( )
virtual

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::fill ( )
virtual

Initialize star's chemical composition, equation of state, opacity, nuclear reaction, mass definition, pi_c, Lambda, velocity, units, atmosphere, flatness, scaled keplerian angular velocity.

Reimplemented from star2d.

Here is the call graph for this function:

matrix star1d::gsup ( ) const
virtual

Reimplemented from star2d.

Here is the call graph for this function:

int star1d::init ( const char *  input_file,
const char *  param_file,
int  argc,
char *  argv[] 
)
virtual

Reimplemented from star2d.

Here is the call graph for this function:

solver * star1d::init_solver ( int  nvar_add = 0)
virtual

Reimplemented from star2d.

Here is the call graph for this function:

double star1d::luminosity ( ) const
virtual

Reimplemented from star2d.

matrix star1d::N2 ( ) const
virtual

Reimplemented from star2d.

star1d & star1d::operator= ( const star1d A)

Here is the call graph for this function:

int star1d::read ( const char *  input_file,
int  dim = 1 
)
virtual

Reimplemented from star2d.

Here is the call graph for this function:

int star1d::read_old ( const char *  input_file)
virtual

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::register_variables ( solver op)
virtual

Reimplemented from star2d.

Here is the call graph for this function:

double star1d::solve ( solver op)
virtual

Performs one step of the Newton algorithm to compute the star's internal structure.

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::solve_definitions ( solver op)
virtual

insert the definitions depending on opacity and eos tables into the solver, and the definitions used by the mapping (eta,deta,Ri,dRi,...), and the entropy

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::solve_dim ( solver op)
virtual

Writes the equations for the dimensional quantities (T_c, rho_c, R, etc.)

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::solve_gsup ( solver op)
virtual

Equation giving the effective surface gravity gsup gsup=(- P)/rho.

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::solve_map ( solver op)
virtual

Part of the Jacobian associated with the mapping There are geometrical relations and physical relations placing the physical interfaces on surfaces zeta=cst. Option also to define the stellar surface as a tau=cst or P=cst.

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::solve_poisson ( solver op)
virtual

Writes Poisson equation and interface conditions into the solver.

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::solve_pressure ( solver op)
virtual

Here is the call graph for this function:

void star1d::solve_Teff ( solver op)
virtual

Equation setting the surface effective temperature Derived from sigma T_e^4 = -xi.

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::solve_temp ( solver op)
virtual

Writes temperature and luminosity equations and interface conditions into the solver.

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::spectrum ( figure pfig,
const matrix y,
const char *  line = "" 
) const

Here is the call graph for this function:

matrix star1d::Teff ( ) const
virtual

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::update_map ( matrix  dR)
virtual

Reimplemented from star2d.

Here is the call graph for this function:

void star1d::write_tag ( OUTFILE fp) const
protectedvirtual

Reimplemented from star2d.

Here is the call graph for this function:


The documentation for this class was generated from the following files: