#include <dumux/porousmediumflow/mpnc/volumevariables.hh>
Public Types | |
| using | FluidSystem = typename Traits::FluidSystem |
| Export the underlying fluid system. More... | |
| using | FluidState = typename Traits::FluidState |
| Export the fluid state type. More... | |
| using | SolidState = typename Traits::SolidState |
| Export type of solid state. More... | |
| using | SolidSystem = typename Traits::SolidSystem |
| Export type of solid system. More... | |
| using | ConstraintSolver = MiscibleMultiPhaseComposition< Scalar, FluidSystem > |
| using | PrimaryVariables = typename Traits::PrimaryVariables |
| Export the type used for the primary variables. More... | |
Public Member Functions | |
| template<class ElemSol , class Problem , class Element , class Scv > | |
| void | update (const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv) |
| Updates all quantities for a given control volume. More... | |
| template<class ElemSol , class Problem , class Element , class Scv > | |
| void | completeFluidState (const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv, FluidState &fluidState, SolidState &solidState) |
| Sets complete fluid state. More... | |
| void | updateMoleFraction (FluidState &actualFluidState, ParameterCache ¶mCache, const typename Traits::PrimaryVariables &priVars) |
| Updates composition of all phases in the mutable parameters from the primary variables. More... | |
| const Scalar | xEquil (const unsigned int phaseIdx, const unsigned int compIdx) const |
| The mole fraction we would have in the case of chemical equilibrium / on the interface. More... | |
| const FluidState & | fluidState () const |
| Returns the fluid configuration at the given primary variables. More... | |
| const SolidState & | solidState () const |
| Returns the phase state for the control-volume. More... | |
| Scalar | saturation (int phaseIdx) const |
| Returns the saturation of a given phase within the control volume in \([-]\). More... | |
| Scalar | massFraction (const int phaseIdx, const int compIdx) const |
| Returns the mass fraction of a given component in a given phase within the control volume in \([-]\). More... | |
| Scalar | moleFraction (const int phaseIdx, const int compIdx) const |
| Returns the mole fraction of a given component in a given phase within the control volume in \([-]\). More... | |
| Scalar | molarity (const int phaseIdx, int compIdx) const |
| Returns the concentration \(\mathrm{[mol/m^3]}\) of a component in the phase. More... | |
| Scalar | molarDensity (const int phaseIdx) const |
| Returns the molar density \(\mathrm{[mol/m^3]}\) the of the fluid phase. More... | |
| Scalar | pressure (const int phaseIdx) const |
| Returns the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume. More... | |
| Scalar | density (const int phaseIdx) const |
| Returns the density \(\mathrm{[kg/m^3]}\) the of the fluid phase. More... | |
| Scalar | temperature () const |
| Returns the temperature inside the sub-control volume. More... | |
| Scalar | enthalpy (const int phaseIdx) const |
| Returns the enthalpy \(\mathrm{[kg/m^3]}\) the of the fluid phase. More... | |
| Scalar | internalEnergy (const int phaseIdx) const |
| Returns the internal energy \(\mathrm{[kg/m^3]}\) the of the fluid phase. More... | |
| Scalar | fluidThermalConductivity (const int phaseIdx) const |
| Returns the thermal conductivity \(\mathrm{[W/(m*K)]}\) of a fluid phase in the sub-control volume. More... | |
| Scalar | fugacity (const int compIdx) const |
| Returns the fugacity \(\mathrm{[kg/m^3]}\) the of the component. More... | |
| Scalar | averageMolarMass (const int phaseIdx) const |
| Returns the average molar mass \(\mathrm{[kg/m^3]}\) the of the phase. More... | |
| Scalar | mobility (const unsigned int phaseIdx) const |
| Returns the effective mobility of a given phase within the control volume. More... | |
| Scalar | viscosity (const unsigned int phaseIdx) const |
| Returns the viscosity of a given phase within the control volume. More... | |
| Scalar | relativePermeability (const unsigned int phaseIdx) const |
| Returns the relative permeability of a given phase within the control volume. More... | |
| Scalar | porosity () const |
| Returns the average porosity within the control volume. More... | |
| const PermeabilityType & | permeability () const |
| Returns the permeability within the control volume in \([m^2]\). More... | |
| bool | isPhaseActive (const unsigned int phaseIdx) const |
| Returns true if the fluid state is in the active set for a phase,. More... | |
| Scalar | diffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const |
| Returns the binary diffusion coefficients for a phase in \([m^2/s]\). More... | |
| Scalar | effectiveDiffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const |
| Returns the effective diffusion coefficients for a phase in \([m^2/s]\). More... | |
| Scalar | phaseNcp (const unsigned int phaseIdx) const |
| Returns the value of the NCP-function for a phase. More... | |
| Scalar | phasePresentIneq (const FluidState &fluidState, const unsigned int phaseIdx) const |
| Returns the value of the inequality where a phase is present. More... | |
| Scalar | phaseNotPresentIneq (const FluidState &fluidState, const unsigned int phaseIdx) const |
| Returns the value of the inequality where a phase is not present. More... | |
| const PrimaryVariables & | priVars () const |
| Returns the vector of primary variables. More... | |
| Scalar | priVar (const int pvIdx) const |
| Returns a component of primary variable vector. More... | |
| Scalar | extrusionFactor () const |
| Returns how much the sub-control volume is extruded. More... | |
Static Public Member Functions | |
| static constexpr int | numFluidPhases () |
| Return number of phases considered by the model. More... | |
| static constexpr int | numFluidComponents () |
| Return number of components considered by the model. More... | |
Static Public Attributes | |
| static constexpr int | numFluidComps = ParentType::numFluidComponents() |
| Return number of components considered by the model. More... | |
Protected Attributes | |
| std::array< Scalar, ModelTraits::numFluidPhases()> | relativePermeability_ |
| Effective relative permeability within the control volume. More... | |
| PermeabilityType | permeability_ |
| std::array< std::array< Scalar, numFluidComps >, numFluidPhases()> | xEquil_ |
| FluidState | fluidState_ |
| Mass fractions of each component within each phase. More... | |
| SolidState | solidState_ |
| DiffusionCoefficients | effectiveDiffCoeff_ |
| using Dumux::MPNCVolumeVariablesImplementation< Traits, true >::ConstraintSolver = MiscibleMultiPhaseComposition<Scalar, FluidSystem> |
| using Dumux::MPNCVolumeVariablesImplementation< Traits, true >::FluidState = typename Traits::FluidState |
Export the fluid state type.
| using Dumux::MPNCVolumeVariablesImplementation< Traits, true >::FluidSystem = typename Traits::FluidSystem |
Export the underlying fluid system.
|
inherited |
Export the type used for the primary variables.
| using Dumux::MPNCVolumeVariablesImplementation< Traits, true >::SolidState = typename Traits::SolidState |
Export type of solid state.
| using Dumux::MPNCVolumeVariablesImplementation< Traits, true >::SolidSystem = typename Traits::SolidSystem |
Export type of solid system.
|
inline |
Returns the average molar mass \(\mathrm{[kg/m^3]}\) the of the phase.
|
inline |
Sets complete fluid state.
| elemSol | A vector containing all primary variables connected to the element |
| problem | The object specifying the problem which ought to be simulated |
| element | An element which contains part of the control volume |
| scv | The sub-control volume |
| fluidState | A container with the current (physical) state of the fluid |
| solidState | A container with the current (physical) state of the solid |
|
inline |
Returns the density \(\mathrm{[kg/m^3]}\) the of the fluid phase.
| phaseIdx | The phase index |
|
inline |
Returns the binary diffusion coefficients for a phase in \([m^2/s]\).
|
inline |
Returns the effective diffusion coefficients for a phase in \([m^2/s]\).
|
inline |
Returns the enthalpy \(\mathrm{[kg/m^3]}\) the of the fluid phase.
|
inlineinherited |
Returns how much the sub-control volume is extruded.
This means the factor by which a lower-dimensional (1D or 2D) entity needs to be expanded to get a full dimensional cell. The default is 1.0 which means that 1D problems are actually thought as pipes with a cross section of 1 m^2 and 2D problems are assumed to extend 1 m to the back.
|
inline |
Returns the fluid configuration at the given primary variables.
|
inline |
Returns the thermal conductivity \(\mathrm{[W/(m*K)]}\) of a fluid phase in the sub-control volume.
|
inline |
Returns the fugacity \(\mathrm{[kg/m^3]}\) the of the component.
|
inline |
Returns the internal energy \(\mathrm{[kg/m^3]}\) the of the fluid phase.
|
inline |
Returns true if the fluid state is in the active set for a phase,.
| phaseIdx | The local index of the phases |
|
inline |
Returns the mass fraction of a given component in a given phase within the control volume in \([-]\).
| phaseIdx | The phase index |
| compIdx | The component index |
|
inline |
Returns the effective mobility of a given phase within the control volume.
| phaseIdx | The local index of the phases |
|
inline |
Returns the molar density \(\mathrm{[mol/m^3]}\) the of the fluid phase.
| phaseIdx | The phase index |
|
inline |
Returns the concentration \(\mathrm{[mol/m^3]}\) of a component in the phase.
| phaseIdx | The phase index |
| compIdx | The index of the component |
|
inline |
Returns the mole fraction of a given component in a given phase within the control volume in \([-]\).
| phaseIdx | The phase index |
| compIdx | The component index |
|
inlinestaticconstexprinherited |
Return number of components considered by the model.
|
inlinestaticconstexpr |
Return number of phases considered by the model.
|
inline |
Returns the permeability within the control volume in \([m^2]\).
|
inline |
Returns the value of the NCP-function for a phase.
\param phaseIdx The local index of the phases
|
inline |
Returns the value of the inequality where a phase is not present.
| phaseIdx | The local index of the phases |
| fluidState | Container for all the secondary variables concerning the fluids |
|
inline |
Returns the value of the inequality where a phase is present.
| phaseIdx | The local index of the phases |
| fluidState | Container for all the secondary variables concerning the fluids |
|
inline |
Returns the average porosity within the control volume.
|
inline |
Returns the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume.
| phaseIdx | The phase index |
|
inlineinherited |
Returns a component of primary variable vector.
| pvIdx | The index of the primary variable of interest |
|
inlineinherited |
Returns the vector of primary variables.
|
inline |
Returns the relative permeability of a given phase within the control volume.
| phaseIdx | The local index of the phases |
|
inline |
Returns the saturation of a given phase within the control volume in \([-]\).
| phaseIdx | The phase index |
|
inline |
Returns the phase state for the control-volume.
|
inline |
Returns the temperature inside the sub-control volume.
Note that we assume thermodynamic equilibrium, i.e. the temperature of the rock matrix and of all fluid phases are identical.
|
inline |
Updates all quantities for a given control volume.
| elemSol | A vector containing all primary variables connected to the element |
| problem | The object specifying the problem which ought to be simulated |
| element | An element which contains part of the control volume |
| scv | The sub-control volume |
|
inline |
Updates composition of all phases in the mutable parameters from the primary variables.
| actualFluidState | Container for all the secondary variables concerning the fluids |
| paramCache | Container for cache parameters |
| priVars | The primary Variables |
|
inline |
Returns the viscosity of a given phase within the control volume.
|
inline |
The mole fraction we would have in the case of chemical equilibrium / on the interface.
| phaseIdx | The index of the fluid phase |
| compIdx | The local index of the component |
|
protected |
|
protected |
Mass fractions of each component within each phase.
|
staticconstexpr |
Return number of components considered by the model.
|
protected |
|
protected |
Effective relative permeability within the control volume.
|
protected |
|
protected |