eos_quark.h
Go to the documentation of this file.
1 /*
2  -------------------------------------------------------------------
3 
4  Copyright (C) 2006-2020, 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.h
24  \brief File defining \ref o2scl::eos_quark
25 */
26 #ifndef O2SCL_QUARK_EOS_H
27 #define O2SCL_QUARK_EOS_H
28 
29 #include <iostream>
30 #include <o2scl/eos_base.h>
31 #include <o2scl/quark.h>
32 #include <o2scl/fermion_rel.h>
33 #include <o2scl/deriv.h>
34 #include <o2scl/mroot.h>
35 
36 #ifndef DOXYGEN_NO_O2NS
37 namespace o2scl {
38 #endif
39 
40  /** \brief Quark matter equation of state base
41  */
42  class eos_quark : public eos_base {
43 
44  public:
45 
46  eos_quark();
47 
48  virtual ~eos_quark() {};
49 
50  /// Calculate equation of state as a function of chemical potentials
51  virtual int calc_p(quark &u, quark &d, quark &s, thermo &th);
52 
53  /// Calculate equation of state as a function of density
54  virtual int calc_e(quark &u, quark &d, quark &s, thermo &th);
55 
56  /** \brief Calculate equation of state as a function of chemical
57  potentials at finite temperature
58  */
59  virtual int calc_temp_p(quark &u, quark &d, quark &s,
60  double temper, thermo &th);
61 
62  /** \brief Calculate equation of state as a function of density
63  at finite temperature
64  */
65  virtual int calc_temp_e(quark &u, quark &d, quark &s,
66  double temper, thermo &th);
67 
68  /// Return string denoting type ("eos_quark")
69  virtual const char *type() { return "eos_quark"; }
70 
71  /// Object for computing fermion thermodynamics
72  o2scl::fermion_rel fet;
73 
74  };
75 
76 #ifndef DOXYGEN_NO_O2NS
77 }
78 #endif
79 
80 #endif
81 
82 
o2scl::eos_quark::calc_temp_e
virtual int calc_temp_e(quark &u, quark &d, quark &s, double temper, thermo &th)
Calculate equation of state as a function of density at finite temperature.
o2scl::eos_quark::type
virtual const char * type()
Return string denoting type ("eos_quark")
Definition: eos_quark.h:69
thermo_tl< double >
o2scl::quark
o2scl::eos_quark::calc_e
virtual int calc_e(quark &u, quark &d, quark &s, thermo &th)
Calculate equation of state as a function of density.
o2scl::eos_quark::calc_temp_p
virtual int calc_temp_p(quark &u, quark &d, quark &s, double temper, thermo &th)
Calculate equation of state as a function of chemical potentials at finite temperature.
o2scl::eos_quark
Quark matter equation of state base.
Definition: eos_quark.h:42
o2scl::eos_quark::fet
o2scl::fermion_rel fet
Object for computing fermion thermodynamics.
Definition: eos_quark.h:72
o2scl::eos_base
Equation of state base class.
Definition: eos_base.h:39
o2scl::eos_quark::calc_p
virtual int calc_p(quark &u, quark &d, quark &s, thermo &th)
Calculate equation of state as a function of chemical potentials.

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