26#ifndef DUMUX_1P_VOLUME_VARIABLES_HH
27#define DUMUX_1P_VOLUME_VARIABLES_HH
52 using Scalar =
typename Traits::PrimaryVariables::value_type;
53 using PermeabilityType =
typename Traits::PermeabilityType;
61 using Indices =
typename Traits::ModelTraits::Indices;
76 template<
class ElemSol,
class Problem,
class Element,
class Scv>
78 const Problem& problem,
79 const Element& element,
89 EnergyVolVars::updateSolidEnergyParams(elemSol, problem, element, scv,
solidState_);
90 permeability_ = problem.spatialParams().permeability(element, scv, elemSol);
91 EnergyVolVars::updateEffectiveThermalConductivity();
105 template<
class ElemSol,
class Problem,
class Element,
class Scv>
107 const Problem& problem,
108 const Element& element,
116 const auto&
priVars = elemSol[scv.localDofIndex()];
124 typename FluidSystem::ParameterCache paramCache;
127 Scalar value = FluidSystem::density(
fluidState, paramCache, 0);
130 value = FluidSystem::viscosity(
fluidState, paramCache, 0);
134 value = EnergyVolVars::enthalpy(
fluidState, paramCache, 0);
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
Update the solid volume fractions (inert and reacitve) and set them in the solidstate.
EnergyVolumeVariablesImplementation< IsothermalTraits, Impl, IsothermalTraits::ModelTraits::enableEnergyBalance()> EnergyVolumeVariables
Base class for the model specific class which provides access to all volume averaged quantities.
Definition porousmediumflow/nonisothermal/volumevariables.hh:85
void updateSolidVolumeFractions(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv, SolidState &solidState, const int solidVolFracOffset)
update the solid volume fractions (inert and reacitve) and set them in the solidstate
Definition updatesolidvolumefractions.hh:36
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition adapt.hh:29
Contains the quantities which are constant within a sub-control volume in the one-phase model.
Definition porousmediumflow/1p/volumevariables.hh:47
typename NITraits< BaseTraits, ETCM >::FluidSystem FluidSystem
Definition porousmediumflow/1p/volumevariables.hh:57
typename NITraits< BaseTraits, ETCM >::SolidSystem SolidSystem
Definition porousmediumflow/1p/volumevariables.hh:65
typename NITraits< BaseTraits, ETCM >::FluidState FluidState
Definition porousmediumflow/1p/volumevariables.hh:59
typename NITraits< BaseTraits, ETCM >::SolidState SolidState
Definition porousmediumflow/1p/volumevariables.hh:63
Scalar density(int phaseIdx=0) const
Returns the mass density of a given phase within the control volume.
Definition porousmediumflow/1p/volumevariables.hh:171
PermeabilityType permeability_
Definition porousmediumflow/1p/volumevariables.hh:214
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Updates all quantities for a given control volume.
Definition porousmediumflow/1p/volumevariables.hh:77
Scalar pressure(int phaseIdx=0) const
Returns the effective pressure of a given phase within the control volume.
Definition porousmediumflow/1p/volumevariables.hh:158
void completeFluidState(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv, FluidState &fluidState, SolidState &solidState)
Sets complete fluid state.
Definition porousmediumflow/1p/volumevariables.hh:106
const SolidState & solidState() const
Definition porousmediumflow/1p/volumevariables.hh:151
Scalar saturation(int phaseIdx=0) const
Returns the saturation.
Definition porousmediumflow/1p/volumevariables.hh:164
Scalar porosity() const
Returns the average porosity within the control volume.
Definition porousmediumflow/1p/volumevariables.hh:196
Scalar temperature() const
Returns the temperature inside the sub-control volume.
Definition porousmediumflow/1p/volumevariables.hh:145
FluidState fluidState_
Definition porousmediumflow/1p/volumevariables.hh:212
const PermeabilityType & permeability() const
Returns the permeability within the control volume in .
Definition porousmediumflow/1p/volumevariables.hh:202
const FluidState & fluidState() const
Definition porousmediumflow/1p/volumevariables.hh:208
typename NITraits< BaseTraits, ETCM >::ModelTraits::Indices Indices
Definition porousmediumflow/1p/volumevariables.hh:61
SolidState solidState_
Definition porousmediumflow/1p/volumevariables.hh:213
Scalar viscosity(int phaseIdx=0) const
Returns the dynamic viscosity of the fluid within the control volume.
Definition porousmediumflow/1p/volumevariables.hh:178
Scalar mobility(int phaseIdx=0) const
Returns the mobility .
Definition porousmediumflow/1p/volumevariables.hh:190
The isothermal base class.
Definition porousmediumflow/volumevariables.hh:40
static constexpr int numFluidComponents()
Return number of components considered by the model.
Definition porousmediumflow/volumevariables.hh:52
const PrimaryVariables & priVars() const
Definition porousmediumflow/volumevariables.hh:76
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Updates all quantities for a given control volume.
Definition porousmediumflow/volumevariables.hh:64
Base class for the model specific class which provides access to all volume averaged quantities.
Base class for the model specific class which provides access to all volume averaged quantities.