Contains the quantities which are constant within a finite volume in the Richards, n-component model. More...
#include <dumux/porousmediumflow/richardsnc/volumevariables.hh>
Contains the quantities which are constant within a finite volume in the Richards, n-component model.
Public Types | |
using | FluidSystem = typename Traits::FluidSystem |
Export type of the fluid system. More... | |
using | FluidState = typename Traits::FluidState |
Export type of the fluid state. More... | |
using | SolidState = typename Traits::SolidState |
Export type of solid state. More... | |
using | SolidSystem = typename Traits::SolidSystem |
Export type of solid system. More... | |
using | Indices = typename Traits::ModelTraits::Indices |
Export indices. More... | |
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) |
Fills the fluid state according to the primary variables. 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 | averageMolarMass (const int phaseIdx=0) const |
Returns the average molar mass \(\mathrm{[kg/mol]}\) of the fluid phase. More... | |
Scalar | temperature () const |
Returns the temperature. 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... | |
Scalar | saturation (const int phaseIdx=0) const |
Returns the average absolute saturation [] of a given fluid phase within the finite volume. More... | |
Scalar | density (const int phaseIdx=0) const |
Returns the average mass density \(\mathrm{[kg/m^3]}\) of a given fluid phase within the control volume. More... | |
Scalar | pressure (const int phaseIdx=0) const |
Returns the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume. More... | |
Scalar | mobility (const int phaseIdx=0) const |
Returns the effective mobility \(\mathrm{[1/(Pa*s)]}\) of a given phase within the control volume. More... | |
Scalar | viscosity (const int phaseIdx=0) const |
Returns the dynamic viscosity \(\mathrm{[Pa*s]}\) of a given phase within the control volume. More... | |
Scalar | relativePermeability (const int phaseIdx=0) const |
Returns relative permeability [-] of a given phase within the control volume. More... | |
Scalar | capillaryPressure () const |
Returns the effective capillary pressure \(\mathrm{[Pa]}\) within the control volume. More... | |
Scalar | pressureHead (const int phaseIdx=0) const |
Returns the pressureHead \(\mathrm{[cm]}\) of a given phase within the control volume. More... | |
Scalar | waterContent (const int phaseIdx=0) const |
Returns the water content fluid phase within the finite volume. More... | |
Scalar | molarDensity (const int phaseIdx=0) const |
Returns the molar density \(\mathrm{[mol/m^3]}\) the of the fluid phase. More... | |
Scalar | moleFraction (const int phaseIdx, const int compIdx) const |
Returns the mole fraction \(\mathrm{[mol/mol]}\) of a component in the phase. More... | |
Scalar | massFraction (const int phaseIdx, const int compIdx) const |
Returns the mass fraction \(\mathrm{[kg/kg]}\) of a component in the phase. More... | |
Scalar | molarity (const int phaseIdx, const int compIdx) const |
Returns the concentration \(\mathrm{[mol/m^3]}\) of a component in the phase. More... | |
Scalar | diffusionCoefficient (const int phaseIdx, const int compIdx) const |
Returns the binary diffusion coefficient \(\mathrm{[m^2/s]}\) in the fluid. 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... | |
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 | liquidPhaseIdx = 0 |
Export phase acess indices. More... | |
static constexpr int | gasPhaseIdx = 1 |
Protected Attributes | |
FluidState | fluidState_ |
the fluid state More... | |
using Dumux::RichardsNCVolumeVariables< Traits >::FluidState = typename Traits::FluidState |
Export type of the fluid state.
using Dumux::RichardsNCVolumeVariables< Traits >::FluidSystem = typename Traits::FluidSystem |
Export type of the fluid system.
using Dumux::RichardsNCVolumeVariables< Traits >::Indices = typename Traits::ModelTraits::Indices |
Export indices.
|
inherited |
Export the type used for the primary variables.
using Dumux::RichardsNCVolumeVariables< Traits >::SolidState = typename Traits::SolidState |
Export type of solid state.
using Dumux::RichardsNCVolumeVariables< Traits >::SolidSystem = typename Traits::SolidSystem |
Export type of solid system.
|
inline |
Returns the average molar mass \(\mathrm{[kg/mol]}\) of the fluid phase.
phaseIdx | The phase index |
|
inline |
Returns the effective capillary pressure \(\mathrm{[Pa]}\) within the control volume.
The capillary pressure is defined as the difference in pressures of the non-wetting and the wetting phase, i.e.
\[ p_c = p_n - p_w \]
|
inline |
Fills the fluid state according to the primary variables.
Taking the information from the primary variables, the fluid state is filled with every information that is necessary to evaluate the model's local residual.
elemSol | A vector containing all primary variables connected to the element |
problem | The problem at hand. |
element | The current element. |
scv | The subcontrol volume. |
fluidState | The fluid state to fill. |
solidState | The solid state to fill. |
|
inline |
Returns the average mass density \(\mathrm{[kg/m^3]}\) of a given fluid phase within the control volume.
phaseIdx | The index of the fluid phase |
|
inline |
Returns the binary diffusion coefficient \(\mathrm{[m^2/s]}\) in the fluid.
phaseIdx | The index of the phase. |
compIdx | The index of the component |
|
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]\).
|
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 mass fraction \(\mathrm{[kg/kg]}\) of a component in the phase.
phaseIdx | The index of the phase. |
compIdx | The index of the component |
We always forward to the fluid state with the phaseIdx property (see class description).
|
inline |
Returns the effective mobility \(\mathrm{[1/(Pa*s)]}\) of a given phase within the control volume.
The mobility of a fluid phase is defined as the relative permeability of the phase (given by the chosen material law) divided by the dynamic viscosity of the fluid, i.e.
\[ \lambda_\alpha := \frac{k_{r\alpha}}{\mu_\alpha} \]
phaseIdx | The index of the fluid phase |
|
inline |
Returns the molar density \(\mathrm{[mol/m^3]}\) the of the fluid phase.
We always forward to the fluid state with the phaseIdx property (see class description).
|
inline |
Returns the concentration \(\mathrm{[mol/m^3]}\) of a component in the phase.
phaseIdx | The index of the phase. |
compIdx | The index of the component |
We always forward to the fluid state with the phaseIdx property (see class description).
|
inline |
Returns the mole fraction \(\mathrm{[mol/mol]}\) of a component in the phase.
phaseIdx | The index of the phase. |
compIdx | The index of the component. |
We always forward to the fluid state with the phaseIdx property (see class description).
|
inlinestaticconstexprinherited |
Return number of components considered by the model.
|
inlinestaticconstexprinherited |
Return number of phases considered by the model.
|
inline |
Returns the permeability within the control volume in \([m^2]\).
|
inline |
Returns the average porosity [] within the control volume.
The porosity is defined as the ratio of the pore space to the total volume, i.e.
\[ \Phi := \frac{V_{pore}}{V_{pore} + V_{rock}} \]
|
inline |
Returns the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume.
For the non-wetting phase (i.e. the gas phase), we assume infinite mobility, which implies that the non-wetting phase pressure is equal to the finite volume's reference pressure defined by the problem.
phaseIdx | The index of the fluid phase |
|
inline |
Returns the pressureHead \(\mathrm{[cm]}\) of a given phase within the control volume.
For the non-wetting phase (i.e. the gas phase), we assume infinite mobility, which implies that the non-wetting phase pressure is equal to the finite volume's reference pressure defined by the problem.
phaseIdx | The index of the fluid phase |
|
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 relative permeability [-] of a given phase within the control volume.
phaseIdx | The index of the fluid phase |
|
inline |
Returns the average absolute saturation [] of a given fluid phase within the finite volume.
The saturation of a fluid phase is defined as the fraction of the pore volume filled by it, i.e.
\[ S_\alpha := \frac{V_\alpha}{V_{pore}} = \phi \frac{V_\alpha}{V} \]
phaseIdx | The index of the fluid phase |
|
inline |
Returns the phase state for the control volume.
|
inline |
Returns the temperature.
|
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 |
Returns the dynamic viscosity \(\mathrm{[Pa*s]}\) of a given phase within the control volume.
phaseIdx | The index of the fluid phase |
|
inline |
Returns the water content fluid phase within the finite volume.
The water content is defined as the fraction of the saturation devided by the porosity
phaseIdx | The index of the fluid phase |
|
protected |
the fluid state
|
staticconstexpr |
|
staticconstexpr |
Export phase acess indices.