25#ifndef DUMUX_PNM_2P_VOLUME_VARIABLES_HH
26#define DUMUX_PNM_2P_VOLUME_VARIABLES_HH
38template <
class Traits>
43 using ModelTraits =
typename Traits::ModelTraits;
44 using Scalar =
typename Traits::PrimaryVariables::value_type;
45 using FS =
typename Traits::FluidSystem;
47 static constexpr auto formulation = ModelTraits::priVarFormulation();
59 using Indices =
typename ModelTraits::Indices;
70 template<
class ElemSol,
class Problem,
class Element,
class Scv>
72 const Problem& problem,
73 const Element& element,
79 surfaceTension_ = problem.spatialParams().surfaceTension(element, scv, elemSol);
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
Definition: discretization/porenetwork/fvelementgeometry.hh:34
Contains the quantities which are are constant within a finite volume (the pore body) in the two-phas...
Definition: porenetwork/2p/volumevariables.hh:41
typename ModelTraits::Indices Indices
Export the indices.
Definition: porenetwork/2p/volumevariables.hh:59
typename Traits::FluidSystem FluidSystem
Export type of fluid system.
Definition: porenetwork/2p/volumevariables.hh:51
typename Traits::SolidState SolidState
Export type of solid state.
Definition: porenetwork/2p/volumevariables.hh:55
Scalar surfaceTension_
Definition: porenetwork/2p/volumevariables.hh:103
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Updates all quantities for a given control volume.
Definition: porenetwork/2p/volumevariables.hh:71
Scalar poreVolume_
Definition: porenetwork/2p/volumevariables.hh:102
Scalar poreVolume() const
Returns the pore volume. // TODO should this be a fraction only?
Definition: porenetwork/2p/volumevariables.hh:91
Scalar poreInscribedRadius() const
Returns the pore's inscribed radius.
Definition: porenetwork/2p/volumevariables.hh:85
Scalar surfaceTension() const
Returns the surface tension.
Definition: porenetwork/2p/volumevariables.hh:97
typename Traits::SolidSystem SolidSystem
Export type of solid system.
Definition: porenetwork/2p/volumevariables.hh:57
typename Traits::FluidState FluidState
Export type of fluid state.
Definition: porenetwork/2p/volumevariables.hh:53
Scalar poreInscribedRadius_
Definition: porenetwork/2p/volumevariables.hh:101
Contains the quantities which are are constant within a finite volume in the two-phase model.
Definition: porousmediumflow/2p/volumevariables.hh:45
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Updates all quantities for a given control volume.
Definition: porousmediumflow/2p/volumevariables.hh:87
Scalar porosity() const
Returns the average porosity within the control volume in .
Definition: porousmediumflow/2p/volumevariables.hh:283
static constexpr int numFluidComponents()
Return number of components considered by the model.
Definition: porousmediumflow/volumevariables.hh:54
Contains the quantities which are constant within a finite volume in the two-phase model.