26#ifndef DUMUX_2P_SUB_PROBLEM_HH
27#define DUMUX_2P_SUB_PROBLEM_HH
29#include <dune/grid/yaspgrid.hh>
43template <
class TypeTag>
54template<
class TypeTag>
62template<
class TypeTag>
63struct Grid<TypeTag, TTag::TwoPSub> {
using type = Dune::YaspGrid<3>; };
65template<
class TypeTag>
68template<
class TypeTag>
82template <
class TypeTag>
90 using Element =
typename GridView::template Codim<0>::Entity;
91 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
97 waterPhaseIdx = FluidSystem::phase0Idx,
98 gasPhaseIdx = FluidSystem::phase1Idx,
99 dimWorld = GridView::dimensionworld
114 problemName_ = getParam<std::string>(
"Vtk.OutputName") +
"_" + getParamFromGroup<std::string>(this->
paramGroup(),
"Problem.Name");
120 const std::string&
name()
const
127 {
return 273.15 + 10; }
136 PrimaryVariables values;
138 values[pressureIdx] = 1.5e7;
139 values[saturationNIdx] = 0.0;
146 NumEqVector values(0.0);
148 static const Scalar sourceG = getParam<Scalar>(
"Problem.InjectionRateGas");
149 static const Scalar sourceW = getParam<Scalar>(
"Problem.InjectionRateWater");
150 if(globalPos[0] > 250 + eps_ && globalPos[0] < 750 - eps_
151 && globalPos[1] > 250 + eps_ && globalPos[1] < 750 - eps_
152 && globalPos[dimWorld-1] > 250 + eps_ && globalPos[dimWorld-1] < 750 - eps_)
154 values[gasPhaseIdx] = sourceG;
155 values[waterPhaseIdx] = sourceW;
168 BoundaryTypes values;
169 if (globalPos[dimWorld-1] < eps_)
170 values.setAllNeumann();
172 values.setAllDirichlet();
177 static constexpr Scalar eps_ = 1.0e-6;
178 std::string problemName_;
A compositional fluid with brine (H2O & NaCl) and carbon dioxide as components in both the liquid and...
Properties for all models using cell-centered finite volume scheme with TPFA.
The spatial parameters class for the two-phase sub problem in the el2p test problem.
Provides the class with the tabulated values of CO2.
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
Base class for all finite-volume problems.
Definition: common/fvproblem.hh:50
const std::string & paramGroup() const
The parameter group in which to retrieve runtime parameters.
Definition: common/fvproblem.hh:592
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
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
A compositional fluid with brine (H2O & NaCl) and carbon dioxide as components in both the liquid and...
Definition: brineco2.hh:119
Base class for all fully implicit porous media problems.
Definition: dumux/porousmediumflow/problem.hh:39
SpatialParams & spatialParams()
Returns the spatial parameters object.
Definition: dumux/porousmediumflow/problem.hh:146
The two-phase sub problem in the el2p coupled problem.
Definition: problem_2p.hh:84
PrimaryVariables initialAtPos(const GlobalPosition &globalPos) const
Evaluates the initial value for a control volume.
Definition: problem_2p.hh:134
Scalar temperature() const
Returns the temperature within the domain in [K].
Definition: problem_2p.hh:126
BoundaryTypes boundaryTypesAtPos(const GlobalPosition &globalPos) const
Specifies which kind of boundary condition should be used for which equation on a given boundary segm...
Definition: problem_2p.hh:166
PrimaryVariables dirichletAtPos(const GlobalPosition &globalPos) const
Evaluates the boundary conditions for a Dirichlet boundary segment.
Definition: problem_2p.hh:130
NumEqVector sourceAtPos(const GlobalPosition &globalPos) const
Evaluates source terms.
Definition: problem_2p.hh:144
TwoPSubProblem(std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< GetPropType< TypeTag, Properties::SpatialParams > > spatialParams, const std::string ¶mGroup="TwoP")
Definition: problem_2p.hh:108
const std::string & name() const
The problem name.
Definition: problem_2p.hh:120
Definition: problem_2p.hh:50
std::tuple< TwoP, CCTpfaModel > InheritsFrom
Definition: problem_2p.hh:50
GetPropType< TypeTag, Properties::Scalar > Scalar
Definition: problem_2p.hh:57
Dune::YaspGrid< 3 > type
Definition: problem_2p.hh:63
GetPropType< TypeTag, Properties::CouplingManager > CouplingManager
Definition: problem_2p.hh:73
GetPropType< TypeTag, Properties::Scalar > Scalar
Definition: problem_2p.hh:72
GetPropType< TypeTag, Properties::GridGeometry > GridGeometry
Definition: problem_2p.hh:71
The spatial parameters class for the two-phase sub problem in the el2p test problem.
Definition: spatialparams_2p.hh:46
Adaption of the fully implicit scheme to the two-phase flow model.
Base class for all porous media problems.