![]() |
Equation of State Sub-Library: Version 0.910
|
00001 /* 00002 ------------------------------------------------------------------- 00003 00004 Copyright (C) 2006-2012, Andrew W. Steiner 00005 00006 This file is part of O2scl. 00007 00008 O2scl is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 3 of the License, or 00011 (at your option) any later version. 00012 00013 O2scl is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with O2scl. If not, see <http://www.gnu.org/licenses/>. 00020 00021 ------------------------------------------------------------------- 00022 */ 00023 #ifndef O2SCL_QUARK_EOS_H 00024 #define O2SCL_QUARK_EOS_H 00025 00026 #include <iostream> 00027 #include <o2scl/eos.h> 00028 #include <o2scl/quark.h> 00029 #include <o2scl/eff_fermion.h> 00030 #include <o2scl/deriv.h> 00031 #include <o2scl/mroot.h> 00032 00033 #ifndef DOXYGENP 00034 namespace o2scl { 00035 #endif 00036 00037 /** \brief Quark matter equation of state base 00038 */ 00039 class quark_eos : public eos { 00040 public: 00041 00042 quark_eos(); 00043 00044 virtual ~quark_eos() {}; 00045 00046 /// Calculate equation of state as a function of chemical potentials 00047 virtual int calc_p(quark &u, quark &d, quark &s, thermo &th); 00048 00049 /// Calculate equation of state as a function of density 00050 virtual int calc_e(quark &u, quark &d, quark &s, thermo &th); 00051 00052 /// Calculate equation of state as a function of chemical potentials 00053 virtual int calc_temp_p(quark &u, quark &d, quark &s, 00054 double temper, thermo &th); 00055 00056 /// Calculate equation of state as a function of density 00057 virtual int calc_temp_e(quark &u, quark &d, quark &s, 00058 double temper, thermo &th); 00059 00060 /// Return string denoting type ("quark_eos") 00061 virtual const char *type() { return "quark_eos"; } 00062 00063 /// Desc 00064 fermion_eval_thermo *fet; 00065 00066 /// Desc 00067 eff_fermion def_fet; 00068 }; 00069 00070 #ifndef DOXYGENP 00071 } 00072 #endif 00073 00074 #endif 00075 00076 00077
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).