22#ifndef TEST_3D2P_SPATIALPARAMETERS_HH
23#define TEST_3D2P_SPATIALPARAMETERS_HH
38template<
class TypeTag>
50template<
class TypeTag>
67template<
class TypeTag>
75 using CoordScalar =
typename Grid::ctype;
78 {dim=Grid::dimension, dimWorld=Grid::dimensionworld, numEq=1};
79 using Element =
typename Grid::Traits::template Codim<0>::Entity;
81 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
82 using LocalPosition = Dune::FieldVector<CoordScalar, dim>;
83 using FieldMatrix = Dune::FieldMatrix<Scalar, dim, dim>;
89 void update (Scalar saturationW,
const Element& element)
95 return constPermeability_;
111 return materialLawParams_;
124 materialLawParams_.setSwr(0.);
125 materialLawParams_.setSnr(0.);
128 materialLawParams_.setPe(5000);
131 materialLawParams_.setSwr(0.2);
132 materialLawParams_.setSnr(0.2);
135 materialLawParams_.setPe(0);
139 materialLawParams_.setLambda(2);
142 for(
int i = 0; i < dim; i++)
144 constPermeability_[i][i] = 1e-10;
147 for(
int i = 0; i < dim; i++)
149 constPermeability_[i][i] = 1e-7;
156 FieldMatrix constPermeability_;
#define GET_PROP_TYPE(TypeTag, PropTagName)
Definition: propertysystemmacros.hh:283
#define NEW_TYPE_TAG(...)
Definition: propertysystemmacros.hh:130
Linear capillary pressure and relative permeability <-> saturation relations.
Implementation of a regularized version of the Brooks-Corey capillary pressure / relative permeabilit...
The base class for spatial parameters of problems using the fv method.
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
SET_TYPE_PROP(FVPressureOneP, Velocity, FVVelocity1P< TypeTag >)
Set velocity reconstruction implementation standard cell centered finite volume schemes as default.
Type tag Test3d2pSpatialParams
Definition: test_3d2pspatialparams.hh:44
The type of the spatial parameters object.
Definition: common/properties.hh:221
This material law takes a material law defined for effective saturations and converts it to a materia...
Definition: 2p/efftoabslaw.hh:60
Implementation of the regularized Brooks-Corey capillary pressure / relative permeability <-> saturat...
Definition: regularizedbrookscorey.hh:62
Definition: sequentialfv.hh:34
The base class for spatial parameters of a multi-phase problem using the fv method.
Definition: sequentialfv.hh:43
spatial parameters for the 2p 3d test
Definition: test_3d2pspatialparams.hh:69
const MaterialLawParams & materialLawParams(const Element &element) const
Definition: test_3d2pspatialparams.hh:109
typename MaterialLaw::Params MaterialLawParams
Definition: test_3d2pspatialparams.hh:87
double porosity(const Element &element) const
Definition: test_3d2pspatialparams.hh:98
const FieldMatrix & intrinsicPermeabilityAtPos(const GlobalPosition &globalPos) const
Definition: test_3d2pspatialparams.hh:93
Test3d2pSpatialParams(const Problem &problem)
Definition: test_3d2pspatialparams.hh:115
typename GET_PROP_TYPE(TypeTag, MaterialLaw) MaterialLaw
Definition: test_3d2pspatialparams.hh:86
void update(Scalar saturationW, const Element &element)
Definition: test_3d2pspatialparams.hh:89
This material law takes a material law defined for effective saturations and converts it to a materia...