This fluid state ensures that only the allowed quantities are accessed. More...
#include <test/material/fluidsystems/checkfluidsystem.hh>
This fluid state ensures that only the allowed quantities are accessed.
Public Member Functions | |
HairSplittingFluidState () | |
void | allowTemperature (bool yesno) |
void | allowPressure (bool yesno) |
void | allowComposition (bool yesno) |
void | allowDensity (bool yesno) |
void | restrictToPhase (int phaseIdx) |
Scalar | temperature (int phaseIdx) const |
Scalar | wettingPhase () const |
Scalar | partialPressure (int phaseIdx, int compIdx) const |
Scalar | pressure (int phaseIdx) const |
Scalar | moleFraction (int phaseIdx, int compIdx) const |
Scalar | massFraction (int phaseIdx, int compIdx) const |
Scalar | averageMolarMass (int phaseIdx) const |
Scalar | molarity (int phaseIdx, int compIdx) const |
Scalar | molarDensity (int phaseIdx) const |
Scalar | molarVolume (int phaseIdx) const |
Scalar | density (int phaseIdx) const |
Scalar | saturation (int phaseIdx) const |
Scalar | fugacity (int phaseIdx, int compIdx) const |
Scalar | fugacityCoefficient (int phaseIdx, int compIdx) const |
Scalar | enthalpy (int phaseIdx) const |
Scalar | internalEnergy (int phaseIdx) const |
Scalar | viscosity (int phaseIdx) const |
Static Public Attributes | |
static constexpr int | numPhases = FluidSystem::numPhases |
static constexpr int | numComponents = FluidSystem::numComponents |
Protected Types | |
using | Scalar = ScalarType |
export the scalar type More... | |
Protected Member Functions | |
Scalar | phaseMassFraction (int phaseIdx) const |
Returns the phase mass fraction, i.e. phase mass per total mass \(\mathrm{[kg/kg]}\). More... | |
Scalar | fugacity (int compIdx) const |
The fugacity of a component \(\mathrm{[Pa]}\). More... | |
Scalar | temperature () const |
The temperature within the domain \(\mathrm{[K]}\). More... | |
template<class FluidState > | |
void | assign (const FluidState &fs) |
Retrieve all parameters from an arbitrary fluid state. More... | |
void | setTemperature (Scalar value) |
Set the temperature \(\mathrm{[K]}\) of all phases. More... | |
void | setTemperature (const int phaseIdx, const Scalar value) |
Set the temperature \(\mathrm{[K]}\) of a specific phase. This is not implemented in this fluidstate. More... | |
void | setPressure (int phaseIdx, Scalar value) |
Set the fluid pressure of a phase \(\mathrm{[Pa]}\). More... | |
void | setSaturation (int phaseIdx, Scalar value) |
Set the saturation of a phase \(\mathrm{[-]}\). More... | |
void | setMoleFraction (int phaseIdx, int compIdx, Scalar value) |
Set the mole fraction of a component in a phase \(\mathrm{[-]}\) and update the average molar mass \(\mathrm{[kg/mol]}\) according to the current composition of the phase. More... | |
void | setMassFraction (int phaseIdx, int compIdx, Scalar value) |
Set the mass fraction of a component in a phase \(\mathrm{[-]}\) and update the average molar mass \(\mathrm{[kg/mol]}\) according to the current composition of the phase. More... | |
template<class FluidState > | |
void | setRelativeHumidity (FluidState &fluidState, int phaseIdx, int compIdx, Scalar value) |
Set the relative humidity of a component in a phase \(\mathrm{[-]}\) and update the average molar mass \(\mathrm{[kg/mol]}\) according to the current composition of the phase. More... | |
void | setFugacityCoefficient (int phaseIdx, int compIdx, Scalar value) |
Set the fugacity coefficient \(\Phi^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\). More... | |
void | setDensity (int phaseIdx, Scalar value) |
Set the density of a phase \(\mathrm{[kg / m^3]}\). More... | |
void | setMolarDensity (int phaseIdx, Scalar value) |
Set the molar density of a phase \(\mathrm{[mol / m^3]}\). More... | |
void | setEnthalpy (int phaseIdx, Scalar value) |
Set the specific enthalpy of a phase \(\mathrm{[J/kg]}\). More... | |
void | setViscosity (int phaseIdx, Scalar value) |
Set the dynamic viscosity of a phase \(\mathrm{[Pa s]}\). More... | |
void | setWettingPhase (int phaseIdx) |
Set the index of the wetting phase. More... | |
Protected Attributes | |
std::array< std::array< Scalar, numComponents >, numPhases > | moleFraction_ = {} |
zero-initialize all data members with braces syntax More... | |
std::array< std::array< Scalar, numComponents >, numPhases > | fugacityCoefficient_ = {} |
std::array< Scalar, numPhases > | averageMolarMass_ = {} |
std::array< Scalar, numPhases > | sumMoleFractions_ = {} |
std::array< Scalar, numPhases > | pressure_ = {} |
std::array< Scalar, numPhases > | saturation_ = {} |
std::array< Scalar, numPhases > | density_ = {} |
std::array< Scalar, numPhases > | molarDensity_ = {} |
std::array< Scalar, numPhases > | enthalpy_ = {} |
std::array< Scalar, numPhases > | viscosity_ = {} |
std::array< Scalar, numPhases > | temperature_ = {} |
int | wPhaseIdx_ {0} |
|
inherited |
export the scalar type
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Retrieve all parameters from an arbitrary fluid state.
|
inline |
|
inline |
|
inline |
|
inlineinherited |
The fugacity of a component \(\mathrm{[Pa]}\).
This assumes chemical equilibrium.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Returns the phase mass fraction, i.e. phase mass per total mass \(\mathrm{[kg/kg]}\).
phaseIdx | the index of the phase |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Set the density of a phase \(\mathrm{[kg / m^3]}\).
|
inlineinherited |
Set the specific enthalpy of a phase \(\mathrm{[J/kg]}\).
|
inlineinherited |
Set the fugacity coefficient \(\Phi^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\).
|
inlineinherited |
Set the mass fraction of a component in a phase \(\mathrm{[-]}\) and update the average molar mass \(\mathrm{[kg/mol]}\) according to the current composition of the phase.
|
inlineinherited |
Set the molar density of a phase \(\mathrm{[mol / m^3]}\).
|
inlineinherited |
Set the mole fraction of a component in a phase \(\mathrm{[-]}\) and update the average molar mass \(\mathrm{[kg/mol]}\) according to the current composition of the phase.
|
inlineinherited |
Set the fluid pressure of a phase \(\mathrm{[Pa]}\).
|
inlineinherited |
Set the relative humidity of a component in a phase \(\mathrm{[-]}\) and update the average molar mass \(\mathrm{[kg/mol]}\) according to the current composition of the phase.
|
inlineinherited |
Set the saturation of a phase \(\mathrm{[-]}\).
|
inlineinherited |
Set the temperature \(\mathrm{[K]}\) of a specific phase. This is not implemented in this fluidstate.
|
inlineinherited |
Set the temperature \(\mathrm{[K]}\) of all phases.
|
inlineinherited |
Set the dynamic viscosity of a phase \(\mathrm{[Pa s]}\).
|
inlineinherited |
Set the index of the wetting phase.
|
inlineinherited |
The temperature within the domain \(\mathrm{[K]}\).
|
inline |
|
inline |
|
inline |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
zero-initialize all data members with braces syntax
|
staticconstexpr |
|
staticconstexpr |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |