ThermoScalarBase< V > Class Template Reference
A template base class to represent a thermodynamic scalar and its partial derivatives. More...
#include <ThermoScalar.hpp>
Inheritance diagram for ThermoScalarBase< V >:
Public Member Functions | |
ThermoScalarBase () | |
Construct a default ThermoScalar instance. | |
ThermoScalarBase (double val) | |
Construct a custom ThermoScalarBase instance with given value only. More... | |
ThermoScalarBase (const V &val, const V &ddT, const V &ddP) | |
Construct a custom ThermoScalarBase instance with given value and derivatives. More... | |
template<typename VR > | |
ThermoScalarBase (const ThermoScalarBase< VR > &other) | |
Construct a copy of a ThermoScalar instance. | |
template<typename VR > | |
auto | operator= (const ThermoScalarBase< VR > &other) -> ThermoScalarBase & |
Assign another ThermoScalarBase instance to this ThermoScalarBase instance. | |
auto | operator= (double other) -> ThermoScalarBase & |
Assign a scalar to this ThermoScalarBase instance. | |
template<typename VR > | |
auto | operator+= (const ThermoScalarBase< VR > &other) -> ThermoScalarBase & |
Assign-addition of a ThermoScalar instance. | |
template<typename VR > | |
auto | operator-= (const ThermoScalarBase< VR > &other) -> ThermoScalarBase & |
Assign-subtraction of a ThermoScalar instance. | |
template<typename VR > | |
auto | operator*= (const ThermoScalarBase< VR > &other) -> ThermoScalarBase & |
Assign-multiplication of a ThermoScalar instance. | |
template<typename VR > | |
auto | operator/= (const ThermoScalarBase< VR > &other) -> ThermoScalarBase & |
Assign-division of a ThermoScalar instance. | |
auto | operator+= (double other) -> ThermoScalarBase & |
Assign-addition of a scalar. | |
auto | operator-= (double other) -> ThermoScalarBase & |
Assign-subtraction of a scalar. | |
auto | operator*= (double other) -> ThermoScalarBase & |
Assign-multiplication of a ThermoScalar instance. | |
auto | operator/= (double other) -> ThermoScalarBase & |
Assign-division of a ThermoScalar instance. | |
operator double () const | |
Explicitly converts this ThermoScalar instance into a double. | |
Public Attributes | |
V | val |
The value of the thermodynamic property. | |
V | ddT |
The partial temperature derivative of the thermodynamic property. | |
V | ddP |
The partial pressure derivative of the thermodynamic property. | |
Detailed Description
template<typename V>
class Reaktoro::ThermoScalarBase< V >
A template base class to represent a thermodynamic scalar and its partial derivatives.
A thermodynamic property is a quantity that depends on temperature and pressure.
- See also
- ThermoScalar, ChemicalScalar, ThermoVector
Constructor & Destructor Documentation
◆ ThermoScalarBase() [1/2]
|
inlineexplicit |
Construct a custom ThermoScalarBase instance with given value only.
- Parameters
-
val The value of the thermodynamic property
◆ ThermoScalarBase() [2/2]
|
inline |
Construct a custom ThermoScalarBase instance with given value and derivatives.
- Parameters
-
val The value of the thermodynamic property ddT The partial temperature derivative of the thermodynamic property ddP The partial pressure derivative of the thermodynamic property
The documentation for this class was generated from the following files:
- Reaktoro/Common/ScalarTypes.hpp
- Reaktoro/Common/ThermoScalar.hpp