classical_deriv.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 #ifndef O2SCL_SN_CLASSICAL_H
24 #define O2SCL_SN_CLASSICAL_H
25 
26 /** \file classical_deriv.h
27  \brief File defining \ref o2scl::classical_deriv
28 */
29 
30 #include <string>
31 #include <iostream>
32 #include <fstream>
33 #include <cmath>
34 
35 #include <o2scl/constants.h>
36 #include <o2scl/part_deriv.h>
37 #include <o2scl/classical.h>
38 
39 #ifndef DOXYGEN_NO_O2NS
40 namespace o2scl {
41 #endif
42 
43  /** \brief Equation of state for a classical particle with derivatives
44  */
46 
47  protected:
48 
49  /// For computing non-derivative properties
51 
52  public:
53 
55 
56  virtual ~classical_deriv();
57 
58  /** \brief Compute the properties of particle \c p at temperature
59  \c temper from its chemical potential
60  */
61  virtual void calc_mu(part_deriv &p, double temper);
62 
63  /** \brief Compute the properties of particle \c p at temperature
64  \c temper from its density
65  */
66  virtual void calc_density(part_deriv &p, double temper);
67 
68  /// Return string denoting type ("classical_deriv")
69  virtual const char *type() { return "classical_deriv"; };
70 
71  };
72 
73 #ifndef DOXYGEN_NO_O2NS
74 }
75 #endif
76 
77 #endif
virtual const char * type()
Return string denoting type ("classical_deriv")
A particle data class with derivatives.
Definition: part_deriv.h:285
virtual void calc_mu(part_deriv &p, double temper)
Compute the properties of particle p at temperature temper from its chemical potential.
Equation of state for a classical particle with derivatives.
classical cl
For computing non-derivative properties.
Classical particle class.
Definition: classical.h:48
virtual void calc_density(part_deriv &p, double temper)
Compute the properties of particle p at temperature temper from its density.

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