Equation of State Sub-Library: Version 0.910
Public Member Functions | Data Fields
bag_eos Class Reference

Simple bag model. More...

#include <bag_eos.h>

Inheritance diagram for bag_eos:
quark_eos eos

Detailed Description

An equation of state with $ P=-B+P_{u,FG}+P_{d,FG}+P_{s,FG} $ where $ P_{i,FG} $ is the Fermi gas contribution from particle $ i $ and $ B $ is a density- and temperature-independent bag constant.

The finite temperature functions run the zero temperature code if the temperature is less than or equal to 0.

Definition at line 45 of file bag_eos.h.

Public Member Functions

virtual int calc_p (quark &u, quark &d, quark &s, thermo &th)
 Calculate equation of state as a function of chemical potentials.
virtual int calc_e (quark &u, quark &d, quark &s, thermo &th)
 Calculate equation of state as a function of density.
virtual int calc_temp_p (quark &u, quark &d, quark &s, double temper, thermo &th)
 Calculate equation of state as a function of the chemical potentials.
virtual int calc_temp_e (quark &u, quark &d, quark &s, double temper, thermo &th)
 Calculate equation of state as a function of the densities.
virtual const char * type ()
 Return string denoting type ("bag_eos")

Data Fields

double bag_constant
 The bag constant in $ fm^{-4}$ (default $200/(\hbar c) $).

Member Function Documentation

virtual int bag_eos::calc_temp_p ( quark u,
quark d,
quark s,
double  temper,
thermo th 
) [virtual]

This function returns zero (success) unless the call to quark::pair_mu() fails.

Reimplemented from quark_eos.

virtual int bag_eos::calc_temp_e ( quark u,
quark d,
quark s,
double  temper,
thermo th 
) [virtual]

This function returns zero (success) unless the call to quark::pair_density() fails.

Reimplemented from quark_eos.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Friends

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.