26#ifndef DUMUX_TWOPNC_DIFFUSION_SPATIAL_PARAMS_HH
27#define DUMUX_TWOPNC_DIFFUSION_SPATIAL_PARAMS_HH
42template<
class Gr
idGeometry,
class Scalar>
45 TwoPNCDiffusionSpatialParams<GridGeometry, Scalar>>
47 using GridView =
typename GridGeometry::GridView;
51 static constexpr int dimWorld = GridView::dimensionworld;
53 using Element =
typename GridView::template Codim<0>::Entity;
54 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
56 using DimWorldMatrix = Dune::FieldMatrix<Scalar, dimWorld, dimWorld>;
77 materialParams_.setSwr(0.02);
78 materialParams_.setSnr(0.0);
81 materialParams_.setPe(1e2);
82 materialParams_.setLambda(1.3);
108 {
return materialParams_; }
116 template<
class Flu
idSystem>
118 {
return FluidSystem::H2OIdx; }
123 static constexpr Scalar eps_ = 1e-6;
Linear capillary pressure and relative permeability <-> saturation relations.
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...
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
Implementation of the regularized Brooks-Corey capillary pressure / relative permeability <-> saturat...
Definition: regularizedbrookscorey.hh:62
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
Definition of the spatial parameters for the TwoPNCDiffusion problem which uses the isothermal 2p2c b...
Definition: porousmediumflow/2pnc/implicit/diffusion/spatialparams.hh:46
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameter object for the Brooks-Corey material law which depends on the position.
Definition: porousmediumflow/2pnc/implicit/diffusion/spatialparams.hh:107
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Defines the porosity of the spatial parameters.
Definition: porousmediumflow/2pnc/implicit/diffusion/spatialparams.hh:98
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/2pnc/implicit/diffusion/spatialparams.hh:64
TwoPNCDiffusionSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/2pnc/implicit/diffusion/spatialparams.hh:66
DimWorldMatrix PermeabilityType
Definition: porousmediumflow/2pnc/implicit/diffusion/spatialparams.hh:61
DimWorldMatrix permeabilityAtPos(const GlobalPosition &globalPos) const
Returns the hydraulic conductivity .
Definition: porousmediumflow/2pnc/implicit/diffusion/spatialparams.hh:90
int wettingPhaseAtPos(const GlobalPosition &globalPos) const
Function for defining which phase is to be considered as the wetting phase.
Definition: porousmediumflow/2pnc/implicit/diffusion/spatialparams.hh:117
Defines a type tag and some properties for models using the box scheme.
This material law takes a material law defined for effective saturations and converts it to a materia...