eos_quark.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.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_eff.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  /// Calculate equation of state as a function of chemical potentials
57  virtual int calc_temp_p(quark &u, quark &d, quark &s,
58  double temper, thermo &th);
59 
60  /// Calculate equation of state as a function of density
61  virtual int calc_temp_e(quark &u, quark &d, quark &s,
62  double temper, thermo &th);
63 
64  /// Return string denoting type ("eos_quark")
65  virtual const char *type() { return "eos_quark"; }
66 
67  /// Object for computing fermion thermodynamics
69 
70  /// Default fermion thermodynamics
72  };
73 
74 #ifndef DOXYGEN_NO_O2NS
75 }
76 #endif
77 
78 #endif
79 
80 
81 
Equation of state base class.
Definition: eos_base.h:39
Quark matter equation of state base.
Definition: eos_quark.h:42
virtual int calc_temp_e(quark &u, quark &d, quark &s, double temper, thermo &th)
Calculate equation of state as a function of density.
fermion_eval_thermo * fet
Object for computing fermion thermodynamics.
Definition: eos_quark.h:68
virtual const char * type()
Return string denoting type ("eos_quark")
Definition: eos_quark.h:65
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.
virtual int calc_e(quark &u, quark &d, quark &s, thermo &th)
Calculate equation of state as a function of density.
virtual int calc_p(quark &u, quark &d, quark &s, thermo &th)
Calculate equation of state as a function of chemical potentials.
fermion_eff def_fet
Default fermion thermodynamics.
Definition: eos_quark.h:71

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