Public Member Functions | Public Attributes | List of all members
o2scl::eos_quark_bag Class Reference

Simple bag model. More...

#include <eos_quark_bag.h>

Inheritance diagram for o2scl::eos_quark_bag:
o2scl::eos_quark o2scl::eos_base

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. More...
 
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. More...
 
virtual const char * type ()
 Return string denoting type ("eos_quark_bag")
 
- Public Member Functions inherited from o2scl::eos_base
virtual void set_thermo (thermo &th)
 Set class thermo object.
 
virtual const thermoget_thermo ()
 Get class thermo object.
 

Public Attributes

double bag_constant
 The bag constant in $ fm^{-4}$ (default $200/(\hbar c) $).
 
- Public Attributes inherited from o2scl::eos_quark
fermion_eval_thermofet
 Object for computing fermion thermodynamics.
 
fermion_eff def_fet
 Default fermion thermodynamics.
 
- Public Attributes inherited from o2scl::eos_base
thermo def_thermo
 The default thermo object.
 

Additional Inherited Members

- Protected Attributes inherited from o2scl::eos_base
thermoeos_thermo
 A pointer to the thermo object.
 

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 48 of file eos_quark_bag.h.

Member Function Documentation

◆ calc_temp_e()

virtual int o2scl::eos_quark_bag::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 o2scl::eos_quark.

◆ calc_temp_p()

virtual int o2scl::eos_quark_bag::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 o2scl::eos_quark.


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

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