My Project
|
Computes all quantities of a generic fluid state if a reference phase has been specified. More...
#include <ComputeFromReferencePhase.hpp>
Static Public Member Functions | |
template<class FluidState > | |
static void | solve (FluidState &fluidState, typename FluidSystem::template ParameterCache< typename FluidState::Scalar > ¶mCache, unsigned refPhaseIdx, bool setViscosity, bool setEnthalpy) |
Computes all quantities of a generic fluid state if a reference phase has been specified. | |
Computes all quantities of a generic fluid state if a reference phase has been specified.
This makes it is possible to specify just one phase and let the remaining ones be calculated by the constraint solver. This constraint solver assumes thermodynamic equilibrium. It assumes the following quantities to be set:
after calling the solve() method the following quantities are calculated in addition:
|
inlinestatic |
Computes all quantities of a generic fluid state if a reference phase has been specified.
This makes it is possible to specify just one phase and let the remaining ones be calculated by the constraint solver. This constraint solver assumes thermodynamic equilibrium. It assumes the following quantities to be set:
after calling the solve() method the following quantities are calculated in addition:
fluidState | Thermodynamic state of the fluids |
paramCache | Container for cache parameters |
refPhaseIdx | The phase index of the reference phase |
setViscosity | Specify whether the dynamic viscosity of each phase should also be set. |
setEnthalpy | Specify whether the specific enthalpy/internal energy of each phase should also be set. |