Contains the quantities which are constant within a finite volume (the pore body) in the one-phase model. More...
#include <dumux/porenetwork/1p/volumevariables.hh>
Contains the quantities which are constant within a finite volume (the pore body) in the one-phase model.
Traits | Class encapsulating types to be used by the volVars |
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 | Indices = typename Traits::ModelTraits::Indices |
Export the indices. More... | |
using | SolidState = typename Traits::SolidState |
Export type of solid state. More... | |
using | SolidSystem = typename Traits::SolidSystem |
Export type of solid system. 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... | |
Scalar | poreInscribedRadius () const |
Returns the pore's inscribed radius. More... | |
Scalar | poreVolume () const |
Returns the pore volume. // TODO should this be a fraction only? 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... | |
Scalar | temperature () const |
Returns the temperature \(\mathrm{[K]}\) inside the sub-control volume. More... | |
const SolidState & | solidState () const |
Returns the phase state for the control volume. More... | |
Scalar | pressure (int phaseIdx=0) const |
Returns the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume. More... | |
Scalar | saturation (int phaseIdx=0) const |
Returns the saturation. More... | |
Scalar | density (int phaseIdx=0) const |
Returns the mass density \(\mathrm{[kg/m^3]}\) of a given phase within the control volume. More... | |
Scalar | viscosity (int phaseIdx=0) const |
Returns the dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume. More... | |
Scalar | mobility (int phaseIdx=0) const |
Returns the mobility \(\mathrm{[1/(Pa s)]}\). More... | |
Scalar | porosity () const |
Returns the average porosity \(\mathrm{[-]}\) within the control volume. More... | |
const PermeabilityType & | permeability () const |
Returns the permeability within the control volume in \([m^2]\). More... | |
const FluidState & | fluidState () const |
Returns the fluid state of the control volume. 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... | |
Protected Attributes | |
Scalar | inscribedPoreRadius_ |
Scalar | poreVolume_ |
FluidState | fluidState_ |
SolidState | solidState_ |
PermeabilityType | permeability_ |
|
inherited |
Export the fluid state type.
|
inherited |
Export the underlying fluid system.
|
inherited |
Export the indices.
|
inherited |
Export the type used for the primary variables.
|
inherited |
Export type of solid state.
|
inherited |
Export type of solid system.
|
inlineinherited |
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 |
|
inlineinherited |
Returns the mass density \(\mathrm{[kg/m^3]}\) of a given phase within the control volume.
|
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.
|
inlineinherited |
Returns the fluid state of the control volume.
|
inlineinherited |
Returns the mobility \(\mathrm{[1/(Pa s)]}\).
This function enables the use of ImplicitDarcyFluxVariables with the 1p fully implicit model, ALTHOUGH the term mobility is usually not employed in the one phase context.
phaseIdx | The phase index |
|
inlinestaticconstexprinherited |
Return number of components considered by the model.
|
inlinestaticconstexprinherited |
Return number of phases considered by the model.
|
inlineinherited |
Returns the permeability within the control volume in \([m^2]\).
|
inline |
Returns the pore's inscribed radius.
|
inline |
Returns the pore volume. // TODO should this be a fraction only?
|
inlineinherited |
Returns the average porosity \(\mathrm{[-]}\) within the control volume.
|
inlineinherited |
Returns the effective pressure \(\mathrm{[Pa]}\) of a given phase within the control volume.
|
inlineinherited |
Returns a component of primary variable vector.
pvIdx | The index of the primary variable of interest |
|
inlineinherited |
Returns the vector of primary variables.
|
inlineinherited |
Returns the saturation.
|
inlineinherited |
Returns the phase state for the control volume.
|
inlineinherited |
Returns the temperature \(\mathrm{[K]}\) inside the sub-control volume.
Note that we assume thermodynamic equilibrium, i.e. the temperatures 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 |
|
inlineinherited |
Returns the dynamic viscosity \(\mathrm{[Pa s]}\) of the fluid within the control volume.
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
|
protectedinherited |