24#ifndef DUMUX_INCOMPRESSIBLE_TWOPBOXDFM_TEST_SPATIAL_PARAMS_HH
25#define DUMUX_INCOMPRESSIBLE_TWOPBOXDFM_TEST_SPATIAL_PARAMS_HH
42template<
class Gr
idGeometry,
class Scalar>
48 using GridView =
typename GridGeometry::GridView;
49 using Element =
typename GridView::template Codim<0>::Entity;
50 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
52 using FVElementGeometry =
typename GridGeometry::LocalView;
53 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
55 static constexpr int dimWorld = GridView::dimensionworld;
65 matrixMaterialParams_.setSwr(0.18);
66 matrixMaterialParams_.setSnr(0.0);
67 fractureMaterialParams_.setSwr(0.05);
68 fractureMaterialParams_.setSnr(0.0);
71 matrixMaterialParams_.setPe(1e4);
72 matrixMaterialParams_.setLambda(2);
73 fractureMaterialParams_.setPe(1e3);
74 fractureMaterialParams_.setLambda(2);
86 template<
class ElementSolution>
88 const SubControlVolume& scv,
89 const ElementSolution& elemSol)
const
91 if (scv.isOnFracture())
105 template<
class ElementSolution>
107 const SubControlVolume& scv,
108 const ElementSolution& elemSol)
const
110 if (scv.isOnFracture())
126 template<
class ElementSolution>
128 const SubControlVolume& scv,
129 const ElementSolution& elemSol)
const
131 if (scv.isOnFracture())
132 return fractureMaterialParams_;
134 return matrixMaterialParams_;
143 template<
class Flu
idSystem>
145 {
return FluidSystem::phase0Idx; }
148 template<
class SolutionVector>
151 materialInterfaceParams_.update(this->
gridGeometry(), *
this, x);
156 {
return materialInterfaceParams_; }
165 static constexpr Scalar eps_ = 1.5e-7;
The available discretization methods in Dumux.
Implementation of a regularized version of the Brooks-Corey capillary pressure / relative permeabilit...
Implementation of the regularized version of the van Genuchten's capillary pressure / relative permea...
The base class for spatial parameters of multi-phase problems using a fully implicit discretization m...
copydoc Dumux::BoxMaterialInterfaceParams
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
This material law takes a material law defined for effective saturations and converts it to a materia...
Definition: 2p/efftoabslaw.hh:60
AbsParamsT Params
Definition: 2p/efftoabslaw.hh:64
The base class for spatial parameters of multi-phase problems using a fully implicit discretization m...
Definition: fv.hh:57
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: fv1p.hh:334
Class that determines the material with the lowest capillary pressure (under fully water-saturated co...
Definition: boxmaterialinterfaceparams.hh:47
The spatial params for the incompressible 2p test.
Definition: porousmediumflow/2p/implicit/boxdfm/spatialparams.hh:44
const BoxMaterialInterfaceParams< ThisType > & materialInterfaceParams() const
Returns the material parameters associated with a nodal dof.
Definition: porousmediumflow/2p/implicit/boxdfm/spatialparams.hh:155
Scalar porosity(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Returns the porosity .
Definition: porousmediumflow/2p/implicit/boxdfm/spatialparams.hh:106
Scalar PermeabilityType
Definition: porousmediumflow/2p/implicit/boxdfm/spatialparams.hh:60
const MaterialLawParams & materialLawParams(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Returns the parameter object for the Brooks-Corey material law.
Definition: porousmediumflow/2p/implicit/boxdfm/spatialparams.hh:127
PermeabilityType permeability(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Function for defining the (intrinsic) permeability . In this test, we use element-wise distributed pe...
Definition: porousmediumflow/2p/implicit/boxdfm/spatialparams.hh:87
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/2p/implicit/boxdfm/spatialparams.hh:59
int wettingPhaseAtPos(const GlobalPosition &globalPos) const
Function for defining which phase is to be considered as the wetting phase.
Definition: porousmediumflow/2p/implicit/boxdfm/spatialparams.hh:144
TwoPTestSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/2p/implicit/boxdfm/spatialparams.hh:62
void updateMaterialInterfaceParams(const SolutionVector &x)
Updates the map of which material parameters are associated with a nodal dof.
Definition: porousmediumflow/2p/implicit/boxdfm/spatialparams.hh:149
This material law takes a material law defined for effective saturations and converts it to a materia...