24#ifndef DUMUX_TEST_2P2C_PROBLEM_HH
25#define DUMUX_TEST_2P2C_PROBLEM_HH
27#include <dune/grid/yaspgrid.hh>
45template<
class TypeTag>
46class TestMultTwoPTwoCProblem;
69template<
class TypeTag>
97template<
class TypeTag>
102using Grid =
typename GridView::Grid;
103using TimeManager =
typename GET_PROP_TYPE(TypeTag, TimeManager);
104using Indices =
typename GET_PROP_TYPE(TypeTag, ModelTraits)::Indices;
106using FluidSystem =
typename GET_PROP_TYPE(TypeTag, FluidSystem);
108using BoundaryTypes =
typename GET_PROP_TYPE(TypeTag, BoundaryTypes);
109using PrimaryVariables =
typename GET_PROP_TYPE(TypeTag, PrimaryVariables);
113 dim = GridView::dimension, dimWorld = GridView::dimensionworld
118using Element =
typename GridView::Traits::template Codim<0>::Entity;
119using Intersection =
typename GridView::Intersection;
120using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
137 return "test_multiphysics2p2c";
169 if (globalPos[0] > 10 - eps_ || globalPos[0] < eps_)
170 bcTypes.setAllDirichlet();
173 bcTypes.setAllNeumann();
179void boundaryFormulation(
typename Indices::BoundaryFormulation &bcFormulation,
const Intersection& intersection)
const
181 bcFormulation = Indices::concentration;
186void dirichletAtPos(PrimaryVariables &bcValues ,
const GlobalPosition& globalPos)
const
192 bcValues[Indices::pressureEqIdx] = (globalPos[0] < eps_) ? (2.5e5 - FluidSystem::H2O::liquidDensity(temp, pRef) * this->
gravity()[dim-1])
193 : (2e5 - FluidSystem::H2O::liquidDensity(temp, pRef) * this->
gravity()[dim-1]);
196 bcValues[Indices::contiWEqIdx] = 1.;
197 bcValues[Indices::contiNEqIdx] = 1.- bcValues[Indices::contiWEqIdx];
203void neumannAtPos(PrimaryVariables &neumannValues,
const GlobalPosition& globalPos)
const
205 neumannValues[Indices::contiNEqIdx] = 0.;
206 neumannValues[Indices::contiWEqIdx] = 0.;
211void sourceAtPos(PrimaryVariables &sourceValues,
const GlobalPosition& globalPos)
const
215 if (abs(globalPos[0] - 4.8) < 0.5 + eps_ && abs(globalPos[1] - 4.8) < 0.5 + eps_)
216 sourceValues[Indices::contiNEqIdx] = 0.0001;
234GlobalPosition lowerLeft_;
235GlobalPosition upperRight_;
237static constexpr Scalar eps_ = 1e-6;
238const Scalar depthBOR_;
#define GET_PROP_TYPE(TypeTag, PropTagName)
Definition: propertysystemmacros.hh:283
#define NEW_TYPE_TAG(...)
Definition: propertysystemmacros.hh:130
A compositional two-phase fluid system with water and air as components in both, the liquid and the g...
Storage container for discretized data for multi-physics models.
Finite volume 2p2c pressure model with multi-physics.
Finite volume discretization of the component transport equation.
spatial parameters for the sequential 2p2c test
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Property tag EnableCapillarity
Returns whether capillarity is regarded.
Definition: porousmediumflow/2p2c/sequential/properties.hh:60
Property tag BoundaryMobility
Definition: porousmediumflow/2p2c/sequential/properties.hh:61
Type tag Test2P2CSpatialParams
Definition: test_dec2p2c_spatialparams.hh:41
SET_INT_PROP(SequentialOneP, NumEq, 1)
Set number of equations to 1 for isothermal one-phase models.
Property tag CellData
Defines data object to be stored.
Definition: porousmediumflow/sequential/properties.hh:72
SET_TYPE_PROP(FVPressureOneP, Velocity, FVVelocity1P< TypeTag >)
Set velocity reconstruction implementation standard cell centered finite volume schemes as default.
Property tag TransportModel
The type of the discretization of a transport model.
Definition: porousmediumflow/sequential/properties.hh:66
Type tag FVPressureOneP INHERITS_FROM(PressureOneP))
The type tag for the one-phase problems using a standard finite volume model.
Property tag Indices
Definition: porousmediumflow/sequential/properties.hh:59
SET_BOOL_PROP(FVPressureOneP, VisitFacesOnlyOnce, true)
Allow assembling algorithm for the pressure matrix to assemble only from one side of a cell-cell inte...
Property tag PressureModel
The type of the discretization of a pressure model.
Definition: porousmediumflow/sequential/properties.hh:65
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
The type of the fluid system to use.
Definition: common/properties.hh:223
Definition: common/properties.hh:312
A compositional two-phase fluid system with water and air as components in both, the liquid and the g...
Definition: h2oair.hh:75
const GravityVector & gravity() const
Returns the acceleration due to gravity.
Definition: dumux/porousmediumflow/2p/sequential/impes/problem.hh:167
Storage container for discretized data for multiphysics models.
Definition: celldatamultiphysics.hh:45
The finite volume model for the solution of the compositional pressure equation.
Definition: fvpressuremultiphysics.hh:70
Compositional transport step in a finite volume discretization.
Definition: fvtransportmultiphysics.hh:56
Base class for all compositional 2-phase problems which use an impet algorithm.
Definition: dumux/porousmediumflow/2p2c/sequential/problem.hh:43
void setZero(typename GET_PROP_TYPE(TypeTag, PrimaryVariables) &values, const int equation=-1) const
Sets entries of the primary variable vector to zero.
Definition: dumux/porousmediumflow/2p2c/sequential/problem.hh:199
base class for problems using a sequential implicit-explicit strategy
Definition: impetproblem.hh:46
TimeManager & timeManager()
Returns TimeManager object used by the simulation.
Definition: impetproblem.hh:663
Grid & grid()
Returns the current grid which used by the problem.
Definition: impetproblem.hh:581
test problem for the multiphysics 2p2c model
Definition: test_multiphysics2p2cproblem.hh:99
void neumannAtPos(PrimaryVariables &neumannValues, const GlobalPosition &globalPos) const
Value for neumann boundary condition .
Definition: test_multiphysics2p2cproblem.hh:203
Scalar initConcentrationAtPos(const GlobalPosition &globalPos) const
Concentration initial condition (dimensionless)
Definition: test_multiphysics2p2cproblem.hh:228
bool shouldWriteRestartFile() const
Returns true if a restart file should be written.
Definition: test_multiphysics2p2cproblem.hh:142
std::string name() const
The problem name.
Definition: test_multiphysics2p2cproblem.hh:135
void dirichletAtPos(PrimaryVariables &bcValues, const GlobalPosition &globalPos) const
Values for dirichlet boundary condition for pressure and or for transport.
Definition: test_multiphysics2p2cproblem.hh:186
void boundaryTypesAtPos(BoundaryTypes &bcTypes, const GlobalPosition &globalPos) const
Type of boundary condition.
Definition: test_multiphysics2p2cproblem.hh:167
Scalar temperatureAtPos(const GlobalPosition &globalPos) const
Returns the temperature within the domain.
Definition: test_multiphysics2p2cproblem.hh:151
TestMultTwoPTwoCProblem(TimeManager &timeManager, Grid &grid, const GlobalPosition &upperRight=0)
Definition: test_multiphysics2p2cproblem.hh:123
Scalar referencePressureAtPos(const GlobalPosition &globalPos) const
Returns the reference pressure.
Definition: test_multiphysics2p2cproblem.hh:160
void sourceAtPos(PrimaryVariables &sourceValues, const GlobalPosition &globalPos) const
Source of mass .
Definition: test_multiphysics2p2cproblem.hh:211
void boundaryFormulation(typename Indices::BoundaryFormulation &bcFormulation, const Intersection &intersection) const
Flag for the type of Dirichlet conditions.
Definition: test_multiphysics2p2cproblem.hh:179
void initialFormulation(typename Indices::BoundaryFormulation &initialFormulation, const Element &element) const
Flag for the type of initial conditions.
Definition: test_multiphysics2p2cproblem.hh:221
typename GET_PROP_TYPE(TypeTag, Scalar) Scalar
Definition: test_multiphysics2p2cproblem.hh:72
Base class for sequential 2p2c compositional problems.