Reaktoro 
A unified framework for modeling chemically reactive systems
Reaktoro::ThermoScalarBase< V > Class Template Reference

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

#include <ThermoScalar.hpp>

Inheritance diagram for Reaktoro::ThermoScalarBase< V >:
Collaboration diagram for Reaktoro::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

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.
 

Constructor & Destructor Documentation

template<typename V>
Reaktoro::ThermoScalarBase< V >::ThermoScalarBase ( double  val)
inlineexplicit

Construct a custom ThermoScalarBase instance with given value only.

Parameters
valThe value of the thermodynamic property
template<typename V>
Reaktoro::ThermoScalarBase< V >::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: