24#ifndef DUMUX_INCOMPRESSIBLE_TWOPBOXDFM_TEST_PROBLEM_HH
25#define DUMUX_INCOMPRESSIBLE_TWOPBOXDFM_TEST_PROBLEM_HH
28#include <dune/alugrid/grid.hh>
31#include <dune/grid/uggrid.hh>
33#include <dune/grid/yaspgrid.hh>
48#define GRIDTYPE Dune::ALUGrid<2, 2, Dune::simplex, Dune::conforming>;
54template<
class TypeTag>
class TwoPTestProblem;
66template<
class TypeTag>
70template<
class TypeTag>
74template<
class TypeTag>
85template<
class TypeTag>
89template<
class TypeTag>
99template<
class TypeTag>
101template<
class TypeTag>
103template<
class TypeTag>
107template<
class TypeTag>
115template<
class TypeTag>
121 using Element =
typename GridView::template Codim<0>::Entity;
122 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
129 using SubControlVolume =
typename GridGeometry::SubControlVolume;
136 pressureH2OIdx = Indices::pressureIdx,
137 saturationDNAPLIdx = Indices::saturationIdx,
138 contiDNAPLEqIdx = Indices::conti0EqIdx + FluidSystem::comp1Idx,
139 waterPhaseIdx = FluidSystem::phase0Idx,
140 dnaplPhaseIdx = FluidSystem::phase1Idx
143 static constexpr Scalar eps_ = 1e-6;
144 static constexpr int dimWorld = GridView::dimensionworld;
156 template<
class ElementSolution>
158 const SubControlVolume& scv,
159 const ElementSolution& elemSol)
const
163 static const Scalar aHalf = getParam<Scalar>(
"SpatialParams.FractureAperture")/2.0;
165 if (scv.isOnFracture())
179 BoundaryTypes values;
180 values.setAllNeumann();
181 if (globalPos[0] > this->
gridGeometry().bBoxMax()[0] - eps_ || globalPos[0] < 1e-6)
182 values.setAllDirichlet();
194 if (globalPos[0] < 1e-6)
195 values[saturationDNAPLIdx] = 0.5;
208 {
return NumEqVector(0.0); }
217 PrimaryVariables values;
220 values[pressureH2OIdx] = 2e5 - 1e5*globalPos[0]/this->
gridGeometry().bBoxMax()[0];
221 values[saturationDNAPLIdx] = 0;
A much simpler (and thus potentially less buggy) version of pure water.
A simple implementation of Trichloroethene (TCE), a DNAPL.
A liquid phase consisting of a single component.
A fluid system for two-phase models assuming immiscibility and thermodynamic equilibrium.
#define GRIDTYPE
The properties for the incompressible 2p-boxdfm test.
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:48
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition: propertysystem.hh:149
Class to specify the type of a boundary.
Definition: common/boundarytypes.hh:38
Base class for all finite-volume problems.
Definition: common/fvproblem.hh:50
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: common/fvproblem.hh:588
The DUNE grid type.
Definition: common/properties.hh:57
Property to specify the type of a problem which has to be solved.
Definition: common/properties.hh:69
Definition: common/properties.hh:91
Definition: common/properties.hh:169
If disabled, the volume variables are not stored (reduces memory, but is slower)
Definition: common/properties.hh:178
specifies if data on flux vars should be saved (faster, but more memory consuming)
Definition: common/properties.hh:188
The type of the spatial parameters object.
Definition: common/properties.hh:221
The type of the fluid system to use.
Definition: common/properties.hh:223
Definition: common/properties.hh:244
A liquid phase consisting of a single component.
Definition: 1pliquid.hh:46
A fluid system for two-phase models assuming immiscibility and thermodynamic equilibrium.
Definition: 2pimmiscible.hh:59
Element-wise calculation of the residual and its derivatives for a two-phase, incompressible test pro...
Definition: 2p/incompressiblelocalresidual.hh:49
Base class for all fully implicit porous media problems.
Definition: dumux/porousmediumflow/problem.hh:39
The incompressible 2p-boxdfm test problem.
Definition: test/porousmediumflow/2p/implicit/incompressible/problem.hh:112
TwoPTestProblem(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:147
BoundaryTypes boundaryTypesAtPos(const GlobalPosition &globalPos) const
Specifies which kind of boundary condition should be used for which equation on a given boundary segm...
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:177
Scalar temperature() const
Returns the temperature for an isothermal problem.
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:226
NumEqVector neumannAtPos(const GlobalPosition &globalPos) const
Evaluates the boundary conditions for a Neumann boundary segment.
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:207
PrimaryVariables initialAtPos(const GlobalPosition &globalPos) const
Evaluates the initial values for a control volume.
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:215
Scalar extrusionFactor(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Returns how much the domain is extruded at a given sub-control volume.
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:157
PrimaryVariables dirichletAtPos(const GlobalPosition &globalPos) const
Evaluates the boundary conditions for a Dirichlet boundary segment.
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:191
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:62
std::tuple< BoxDfmModel, TwoP > InheritsFrom
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:62
GRIDTYPE type
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:67
GetPropType< TypeTag, Properties::Scalar > Scalar
Definition: test/porousmediumflow/2p/implicit/boxdfm/problem.hh:92
The spatial params for the incompressible 2p test.
Definition: porousmediumflow/2p/implicit/boxdfm/spatialparams.hh:44
Adaption of the fully implicit scheme to the two-phase flow model.
Defines a type tag and some properties for porous medium flow models using the box scheme extended to...
Base class for all porous media problems.
Element-wise calculation of the residual and its derivatives for a two-phase, incompressible test pro...
Definition of the spatial parameters for the MaxwellStefan problem.