Reaktoro
A unified framework for modeling chemically reactive systems
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 >:
[legend]

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

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.
 

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]

ThermoScalarBase ( double  val)
inlineexplicit

Construct a custom ThermoScalarBase instance with given value only.

Parameters
valThe value of the thermodynamic property

◆ ThermoScalarBase() [2/2]

ThermoScalarBase ( const V &  val,
const V &  ddT,
const V &  ddP 
)
inline

Construct a custom ThermoScalarBase instance with given value and derivatives.

Parameters
valThe value of the thermodynamic property
ddTThe partial temperature derivative of the thermodynamic property
ddPThe partial pressure derivative of the thermodynamic property

The documentation for this class was generated from the following files: