My Project
|
Module for the modular fluid state which stores the densities explicitly. More...
#include <FluidStateDensityModules.hpp>
Public Member Functions | |
const Scalar & | density (unsigned phaseIdx) const |
The density of a fluid phase [kg/m^3]. | |
Scalar | molarDensity (unsigned phaseIdx) const |
The molar density of a fluid phase [mol/m^3]. | |
Scalar | molarVolume (unsigned phaseIdx) const |
The molar volume of a fluid phase [m^3/mol]. | |
void | setDensity (unsigned phaseIdx, const Scalar &value) |
Set the density of a phase [kg/m^3]. | |
template<class FluidState > | |
void | assign (const FluidState &fs) |
Retrieve all parameters from an arbitrary fluid state. | |
void | checkDefined () const |
Make sure that all attributes are defined. More... | |
Protected Member Functions | |
const Implementation & | asImp_ () const |
Protected Attributes | |
Scalar | density_ [numPhases] |
Module for the modular fluid state which stores the densities explicitly.
|
inline |
Make sure that all attributes are defined.
This method does not do anything if the program is not run under valgrind. If it is, then valgrind will print an error message if some attributes of the object have not been properly defined.