25#ifndef DUMUX_STEAMINJECTION_SPATIAL_PARAMS_HH
26#define DUMUX_STEAMINJECTION_SPATIAL_PARAMS_HH
38template<
class Gr
idGeometry,
class Scalar>
41 InjectionProblemSpatialParams<GridGeometry, Scalar>>
43 using GridView =
typename GridGeometry::GridView;
44 using FVElementGeometry =
typename GridGeometry::LocalView;
45 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
46 using Element =
typename GridView::template Codim<0>::Entity;
50 static constexpr int dimWorld = GridView::dimensionworld;
52 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
54 using DimWorldMatrix = Dune::FieldMatrix<Scalar, dimWorld, dimWorld>;
66 gasWetting_ = getParam<bool>(
"SpatialParams.GasWetting",
false);
69 materialParams_.setSwr(0.1);
70 materialParams_.setSnr(0.0);
71 materialParams_.setVgAlpha(0.0028);
72 materialParams_.setVgn(2.0);
82 DimWorldMatrix permMatrix(0.0);
85 permMatrix[0][0] = 1e-9;
86 permMatrix[1][1] = 1e-9;
109 return materialParams_;
118 template<
class Flu
idSystem>
122 return FluidSystem::gasPhaseIdx;
124 return FluidSystem::liquidPhaseIdx;
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 van Genuchten's capillary pressure / relative permeability <-> satu...
Definition: regularizedvangenuchten.hh:71
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 various steam injection problems.
Definition: porousmediumflow/2p1c/implicit/spatialparams.hh:42
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameter object for the capillary-pressure/ saturation material law.
Definition: porousmediumflow/2p1c/implicit/spatialparams.hh:107
InjectionProblemSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/2p1c/implicit/spatialparams.hh:63
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/2p1c/implicit/spatialparams.hh:60
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Defines the porosity of the spatial parameters.
Definition: porousmediumflow/2p1c/implicit/spatialparams.hh:96
DimWorldMatrix PermeabilityType
Definition: porousmediumflow/2p1c/implicit/spatialparams.hh:61
int wettingPhaseAtPos(const GlobalPosition &globalPos) const
Function for defining which phase is to be considered as the wetting phase.
Definition: porousmediumflow/2p1c/implicit/spatialparams.hh:119
DimWorldMatrix permeabilityAtPos(const GlobalPosition &globalPos) const
Returns the hydraulic conductivity .
Definition: porousmediumflow/2p1c/implicit/spatialparams.hh:80
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...