eos_quark_bag.h
Go to the documentation of this file.
1 /*
2  -------------------------------------------------------------------
3 
4  Copyright (C) 2006-2017, Andrew W. Steiner
5 
6  This file is part of O2scl.
7 
8  O2scl is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 3 of the License, or
11  (at your option) any later version.
12 
13  O2scl is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with O2scl. If not, see <http://www.gnu.org/licenses/>.
20 
21  -------------------------------------------------------------------
22 */
23 /** \file eos_quark_bag.h
24  \brief File defining \ref o2scl::eos_quark_bag
25 */
26 #ifndef O2SCL_BAG_EOS_H
27 #define O2SCL_BAG_EOS_H
28 
29 #include <o2scl/constants.h>
30 #include <o2scl/part.h>
31 #include <o2scl/eos_quark.h>
32 
33 #ifndef DOXYGEN_NO_O2NS
34 namespace o2scl {
35 #endif
36 
37  /** \brief Simple bag model
38 
39  An equation of state with \f$ P=-B+P_{u,FG}+P_{d,FG}+P_{s,FG}
40  \f$ where \f$ P_{i,FG} \f$ is the Fermi gas contribution from
41  particle \f$ i \f$ and \f$ B \f$ is a density- and
42  temperature-independent bag constant.
43 
44  The finite temperature functions run the zero temperature code
45  if the temperature is less than or equal to 0.
46  */
47 
48  class eos_quark_bag : public eos_quark {
49 
50  public:
51 
52  eos_quark_bag();
53 
54  virtual ~eos_quark_bag() {};
55 
56  virtual int calc_p(quark &u, quark &d, quark &s, thermo &th);
57 
58  virtual int calc_e(quark &u, quark &d, quark &s, thermo &th);
59 
60  /** \brief Calculate equation of state as a function of
61  the chemical potentials
62 
63  This function returns zero (success) unless the
64  call to quark::pair_mu() fails.
65  */
66  virtual int calc_temp_p(quark &u, quark &d, quark &s,
67  double temper, thermo &th);
68 
69  /** \brief Calculate equation of state as a function of
70  the densities
71 
72  This function returns zero (success) unless the
73  call to quark::pair_density() fails.
74  */
75  virtual int calc_temp_e(quark &u, quark &d, quark &s,
76  double temper, thermo &th);
77 
78  /// The bag constant in \f$ fm^{-4}\f$ (default \f$200/(\hbar c) \f$).
79  double bag_constant;
80 
81  /// Return string denoting type ("eos_quark_bag")
82  virtual const char *type() { return "eos_quark_bag"; }
83  };
84 
85 #ifndef DOXYGEN_NO_O2NS
86 }
87 #endif
88 
89 #endif
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 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.
Quark matter equation of state base.
Definition: eos_quark.h:42
virtual int calc_p(quark &u, quark &d, quark &s, thermo &th)
Calculate equation of state as a function of chemical potentials.
double bag_constant
The bag constant in (default ).
Definition: eos_quark_bag.h:79
virtual int calc_e(quark &u, quark &d, quark &s, thermo &th)
Calculate equation of state as a function of density.
Simple bag model.
Definition: eos_quark_bag.h:48
virtual const char * type()
Return string denoting type ("eos_quark_bag")
Definition: eos_quark_bag.h:82

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