ThermoScalar.hpp
216 auto operator+(const ThermoScalarBase<VL>& l, const ThermoScalarBase<VR>& r) -> ThermoScalarBase<double>
240 auto operator-(const ThermoScalarBase<VL>& l, const ThermoScalarBase<VR>& r) -> ThermoScalarBase<double>
258 auto operator*(const ThermoScalarBase<VL>& l, const ThermoScalarBase<VR>& r) -> ThermoScalarBase<double>
276 auto operator/(const ThermoScalarBase<VL>& l, const ThermoScalarBase<VR>& r) -> ThermoScalarBase<double>
280 return {tmp1 * l.val, tmp2 * (l.ddT * r.val - l.val * r.ddT), tmp2 * (l.ddP * r.val - l.val * r.ddP)};
440 auto pow(const ThermoScalarBase<VL>& l, const ThermoScalarBase<VR>& power) -> ThermoScalarBase<double>
auto operator*=(const ThermoScalarBase< VR > &other) -> ThermoScalarBase &
Assign-multiplication of a ThermoScalar instance.
Definition: ThermoScalar.hpp:118
V ddT
The partial temperature derivative of the thermodynamic property.
Definition: ThermoScalar.hpp:51
auto operator/=(double other) -> ThermoScalarBase &
Assign-division of a ThermoScalar instance.
Definition: ThermoScalar.hpp:162
Pressure()
Construct a default Pressure instance.
Definition: ThermoScalar.hpp:197
auto operator*=(double other) -> ThermoScalarBase &
Assign-multiplication of a ThermoScalar instance.
Definition: ThermoScalar.hpp:153
Temperature(double val)
Construct a Temperature instance with given value.
Definition: ThermoScalar.hpp:183
ThermoScalarBase()
Construct a default ThermoScalar instance.
Definition: ThermoScalar.hpp:57
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
auto operator-=(double other) -> ThermoScalarBase &
Assign-subtraction of a scalar.
Definition: ThermoScalar.hpp:146
ThermoScalarBase(const V &val, const V &ddT, const V &ddP)
Construct a custom ThermoScalarBase instance with given value and derivatives.
Definition: ThermoScalar.hpp:69
A type that describes temperature in units of K.
Definition: ThermoScalar.hpp:177
Temperature()
Construct a default Temperature instance.
Definition: ThermoScalar.hpp:180
auto operator=(double other) -> ThermoScalarBase &
Assign a scalar to this ThermoScalarBase instance.
Definition: ThermoScalar.hpp:88
auto operator/=(const ThermoScalarBase< VR > &other) -> ThermoScalarBase &
Assign-division of a ThermoScalar instance.
Definition: ThermoScalar.hpp:128
auto operator=(const ThermoScalarBase< VR > &other) -> ThermoScalarBase &
Assign another ThermoScalarBase instance to this ThermoScalarBase instance.
Definition: ThermoScalar.hpp:79
ThermoScalarBase(const ThermoScalarBase< VR > &other)
Construct a copy of a ThermoScalar instance.
Definition: ThermoScalar.hpp:74
V ddP
The partial pressure derivative of the thermodynamic property.
Definition: ThermoScalar.hpp:54
auto operator-=(const ThermoScalarBase< VR > &other) -> ThermoScalarBase &
Assign-subtraction of a ThermoScalar instance.
Definition: ThermoScalar.hpp:108
auto operator+=(const ThermoScalarBase< VR > &other) -> ThermoScalarBase &
Assign-addition of a ThermoScalar instance.
Definition: ThermoScalar.hpp:98
auto operator+=(double other) -> ThermoScalarBase &
Assign-addition of a scalar.
Definition: ThermoScalar.hpp:139
ThermoScalarBase(double val)
Construct a custom ThermoScalarBase instance with given value only.
Definition: ThermoScalar.hpp:62
A template base class to represent a thermodynamic scalar and its partial derivatives.
Definition: ThermoScalar.hpp:45
V val
The value of the thermodynamic property.
Definition: ThermoScalar.hpp:48
ThermoScalarBase< double > ThermoScalar
A type that defines a scalar thermo property.
Definition: ScalarTypes.hpp:40
Pressure(double val)
Construct a Pressure instance with given value.
Definition: ThermoScalar.hpp:200