25#ifndef DUMUX_SAGD_SPATIAL_PARAMS_HH
26#define DUMUX_SAGD_SPATIAL_PARAMS_HH
43template<
class Gr
idGeometry,
class Scalar>
46 SagdSpatialParams<GridGeometry, Scalar>>
48 using GridView =
typename GridGeometry::GridView;
49 using FVElementGeometry =
typename GridGeometry::LocalView;
50 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
52 enum { dimWorld=GridView::dimensionworld };
54 using GlobalPosition =
typename SubControlVolume::GlobalPosition;
56 using Element =
typename GridView::template Codim<0>::Entity;
78 coarsePorosity_ = 0.1;
81 fineMaterialParams_.setSwr(0.1);
82 fineMaterialParams_.setSnr(0.09);
83 fineMaterialParams_.setSgr(0.01);
84 coarseMaterialParams_.setSwr(0.1);
85 coarseMaterialParams_.setSnr(0.09);
86 coarseMaterialParams_.setSgr(0.01);
89 fineMaterialParams_.setVgn(4.0);
90 coarseMaterialParams_.setVgn(4.0);
91 fineMaterialParams_.setVgAlpha(1.);
92 coarseMaterialParams_.setVgAlpha(1.);
94 coarseMaterialParams_.setKrRegardsSnr(
false);
95 fineMaterialParams_.setKrRegardsSnr(
false);
107 template<
class ElementSolution>
109 const SubControlVolume& scv,
110 const ElementSolution& elemSol)
const
120 if (isFineMaterial_(globalPos))
132 if (isFineMaterial_(globalPos))
133 return finePorosity_;
135 return coarsePorosity_;
146 template<
class ElementSolution>
148 const SubControlVolume& scv,
149 const ElementSolution& elemSol)
const
162 if (isFineMaterial_(globalPos))
163 return fineMaterialParams_;
165 return coarseMaterialParams_;
170 bool isFineMaterial_(
const GlobalPosition &pos)
const
172 return pos[dimWorld-1] > layerBottom_ - eps_;
180 Scalar finePorosity_;
181 Scalar coarsePorosity_;
Implementation of a regularized version of van Genuchten's capillary pressure-saturation relation for...
Parameters that are necessary for the regularization of the Parker - Van Genuchten capillary pressure...
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 <-> saturation relation....
Definition: regularizedparkervangen3p.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 SAGD problem.
Definition: porousmediumflow/3pwateroil/implicit/spatialparams.hh:47
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/3pwateroil/implicit/spatialparams.hh:64
Scalar PermeabilityType
Definition: porousmediumflow/3pwateroil/implicit/spatialparams.hh:65
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Returns the porosity .
Definition: porousmediumflow/3pwateroil/implicit/spatialparams.hh:130
PermeabilityType permeability(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Function for defining the (intrinsic) permeability .
Definition: porousmediumflow/3pwateroil/implicit/spatialparams.hh:108
const MaterialLawParams & materialLawParams(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Function for defining the parameters needed by constitutive relationships (kr-sw, pc-sw,...
Definition: porousmediumflow/3pwateroil/implicit/spatialparams.hh:147
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameter object for the capillary-pressure/ saturation material law.
Definition: porousmediumflow/3pwateroil/implicit/spatialparams.hh:160
SagdSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/3pwateroil/implicit/spatialparams.hh:67
PermeabilityType permeabilityAtPos(const GlobalPosition &globalPos) const
Returns the intrinsic permeability tensor .
Definition: porousmediumflow/3pwateroil/implicit/spatialparams.hh:118
Defines a type tag and some properties for models using the box scheme.
Defines the indices required for the 3p2cni model.
This material law takes a material law defined for effective saturations and converts it to a materia...