25#ifndef DUMUX_STEAM_INJECTIONPROBLEM_HH
26#define DUMUX_STEAM_INJECTIONPROBLEM_HH
28#include <dune/grid/yaspgrid.hh>
43template <
class TypeTag>
44class InjectionProblem;
54template<
class TypeTag>
58template<
class TypeTag>
63template<
class TypeTag>
74template<
class TypeTag>
83template<
class TypeTag>
93template <
class TypeTag>
106 using ElementVolumeVariables =
typename GridVariables::GridVolumeVariables::LocalView;
107 using ElementFluxVariablesCache =
typename GridVariables::GridFluxVariablesCache::LocalView;
110 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
111 using SubControlVolumeFace =
typename FVElementGeometry::SubControlVolumeFace;
113 using Element =
typename GridView::template Codim<0>::Entity;
118 pressureIdx = Indices::pressureIdx,
119 switchIdx = Indices::switchIdx,
121 conti0EqIdx = Indices::conti0EqIdx,
122 energyEqIdx = Indices::energyEqIdx,
125 liquidPhaseOnly = Indices::liquidPhaseOnly
128 static constexpr int dimWorld = GridView::dimensionworld;
129 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
134 { FluidSystem::init(); }
143 NumEqVector
source(
const Element &element,
144 const FVElementGeometry& fvGeometry,
145 const ElementVolumeVariables& elemVolVars,
146 const SubControlVolume &scv)
const
147 {
return NumEqVector(0.0); }
162 BoundaryTypes bcTypes;
164 if(globalPos[1] > this->
gridGeometry().bBoxMax()[1] - eps_ || globalPos[0] > this->
gridGeometry().bBoxMax()[0] - eps_)
165 bcTypes.setAllDirichlet();
167 bcTypes.setAllNeumann();
200 const FVElementGeometry& fvGeometry,
201 const ElementVolumeVariables& elemVolVars,
202 const ElementFluxVariablesCache& elemFluxVarsCache,
203 const SubControlVolumeFace& scvf)
const
205 NumEqVector values(0.0);
207 const auto& ipGlobal = scvf.ipGlobal();
209 if (ipGlobal[0] < eps_)
211 if(ipGlobal[1] > 2.0 - eps_ && ipGlobal[1] < 3.0 + eps_)
213 const Scalar massRate = 1e-1;
214 values[conti0EqIdx] = -massRate;
215 values[energyEqIdx] = -massRate * 2690e3;
235 PrimaryVariables values(0.0);
237 const Scalar densityW = 1000.0;
238 values[pressureIdx] = 101300.0 + (this->
gridGeometry().bBoxMax()[1] - globalPos[1])*densityW*9.81;
239 values[switchIdx] = 283.13;
241 values.setState(liquidPhaseOnly);
248 static constexpr Scalar eps_ = 1e-6;
Defines a type tag and some properties for models using the box scheme.
Properties for all models using cell-centered finite volume scheme with TPFA.
Material properties of pure water .
Tabulates all thermodynamic properties of a given untabulated chemical species.
A two-phase fluid system with only one component.
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
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
Tabulates all thermodynamic properties of a given untabulated chemical species.
Definition: tabulatedcomponent.hh:82
A two-phase fluid system with only one component.
Definition: 2p1c.hh:46
Determines whether blocking of spurious flow is used or not.
Definition: porousmediumflow/2p1c/darcyslaw.hh:38
Base class for all fully implicit porous media problems.
Definition: dumux/porousmediumflow/problem.hh:39
Non-isothermal 2D problem where steam is injected on the lower left side of the domain.
Definition: test/porousmediumflow/2p2c/implicit/injection/problem.hh:143
PrimaryVariables dirichletAtPos(const GlobalPosition &globalPos) const
Evaluates the boundary conditions for a Dirichlet boundary segment.
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:177
InjectionProblem(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:132
PrimaryVariables initialAtPos(const GlobalPosition &globalPos) const
Evaluates the initial values for a control volume.
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:233
NumEqVector source(const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolume &scv) const
Evaluate the source term for all phases within a given sub-control-volume.
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:143
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/2p1c/implicit/problem.hh:160
NumEqVector neumann(const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const ElementFluxVariablesCache &elemFluxVarsCache, const SubControlVolumeFace &scvf) const
Evaluates the boundary conditions for a Neumann boundary segment.
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:199
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:49
std::tuple< TwoPOneCNI > InheritsFrom
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:49
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:50
std::tuple< InjectionProblem, BoxModel > InheritsFrom
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:50
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:51
std::tuple< InjectionProblem, CCTpfaModel > InheritsFrom
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:51
Dune::YaspGrid< 2 > type
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:55
GetPropType< TypeTag, Properties::Scalar > Scalar
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:78
GetPropType< TypeTag, Properties::GridGeometry > GridGeometry
Definition: test/porousmediumflow/2p1c/implicit/problem.hh:77
Definition of the spatial parameters for various steam injection problems.
Definition: porousmediumflow/2p1c/implicit/spatialparams.hh:42
A two-phase one-component flow model using the fully implicit scheme.
Base class for all porous media problems.
Definition of the spatial parameters for the MaxwellStefan problem.