25#ifndef DUMUX_1P_SUB_PROBLEM_HH
26#define DUMUX_1P_SUB_PROBLEM_HH
28#include <dune/grid/yaspgrid.hh>
42template <
class TypeTag>
53template<
class TypeTag>
61template<
class TypeTag>
62struct Grid<TypeTag,
TTag::OnePSub> {
using type = Dune::YaspGrid<2>; };
64template<
class TypeTag>
67template<
class TypeTag>
81template <
class TypeTag>
88 using Element =
typename GridView::template Codim<0>::Entity;
89 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
111 const std::string&
name()
const
118 {
return 273.15 + 10; }
126 {
return PrimaryVariables(1.0e5); }
132 if (globalPos[0] > 0.4 && globalPos[0] < 0.6 && globalPos[1] < 0.6 && globalPos[1] > 0.4)
133 return NumEqVector(
source);
134 return NumEqVector(0.0);
145 BoundaryTypes values;
146 values.setAllDirichlet();
151 static constexpr Scalar eps_ = 1.0e-6;
152 std::string problemName_;
Properties for all models using cell-centered finite volume scheme with TPFA.
Setting constant fluid properties via the input file.
A liquid phase consisting of a single component.
T getParamFromGroup(Args &&... args)
A free function to get a parameter from the parameter tree singleton with a model group.
Definition parameters.hh:438
T getParam(Args &&... args)
A free function to get a parameter from the parameter tree singleton.
Definition parameters.hh:428
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
Definition common/properties.hh:47
Type tag for numeric models.
Definition grid.hh:35
const std::string & paramGroup() const
The parameter group in which to retrieve runtime parameters.
Definition common/fvproblem.hh:592
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 common/fvproblem.hh:327
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 component which returns run time specified values for all fluid properties.
Definition constant.hh:58
A liquid phase consisting of a single component.
Definition 1pliquid.hh:46
SpatialParams & spatialParams()
Returns the spatial parameters object.
Definition dumux/porousmediumflow/problem.hh:146
PorousMediumFlowProblem(std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< SpatialParams > spatialParams, const std::string ¶mGroup="")
Constructor, passing the spatial parameters.
Definition dumux/porousmediumflow/problem.hh:67
Definition multidomain/boundary/darcydarcy/1p_1p/main.cc:66
std::tuple< OneP, CCTpfaModel > InheritsFrom
Definition multidomain/boundary/darcydarcy/1p_1p/main.cc:66
FullDomainGrid type
Definition multidomain/boundary/darcydarcy/1p_1p/main.cc:90
GetPropType< TypeTag, Properties::Scalar > Scalar
Definition multidomain/poromechanics/el1p/problem_1p.hh:71
OnePTestSpatialParams< GetPropType< TypeTag, Properties::GridGeometry >, GetPropType< TypeTag, Properties::Scalar > > type
Definition multidomain/boundary/darcydarcy/1p_1p/main.cc:98
GetPropType< TypeTag, Properties::GridGeometry > GridGeometry
Definition multidomain/poromechanics/el1p/problem_1p.hh:70
GetPropType< TypeTag, Properties::CouplingManager > CouplingManager
Definition multidomain/poromechanics/el1p/problem_1p.hh:72
FluidSystems::OnePLiquid< Scalar, Components::SimpleH2O< Scalar > > type
Definition multidomain/boundary/darcydarcy/1p_1p/main.cc:107
The spatial parameters class for the test problem using the 1p cc model.
Definition multidomain/boundary/stokesdarcy/1p2c_1p2c/spatialparams.hh:41
The single-phase sub problem in the el1p coupled problem.
Definition multidomain/poromechanics/el1p/problem_1p.hh:83
BoundaryTypes boundaryTypesAtPos(const GlobalPosition &globalPos) const
Specifies which kind of boundary condition should be used for which equation on a given boundary segm...
Definition multidomain/poromechanics/el1p/problem_1p.hh:143
OnePSubProblem(std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< GetPropType< TypeTag, Properties::SpatialParams > > spatialParams, const std::string ¶mGroup="OneP")
Definition multidomain/poromechanics/el1p/problem_1p.hh:100
PrimaryVariables initialAtPos(const GlobalPosition &globalPos) const
Evaluates the initial value for a control volume.
Definition multidomain/poromechanics/el1p/problem_1p.hh:125
PrimaryVariables dirichletAtPos(const GlobalPosition &globalPos) const
Evaluates the boundary conditions for a Dirichlet boundary segment.
Definition multidomain/poromechanics/el1p/problem_1p.hh:121
const std::string & name() const
The problem name.
Definition multidomain/poromechanics/el1p/problem_1p.hh:111
NumEqVector sourceAtPos(const GlobalPosition &globalPos) const
Evaluates source terms.
Definition multidomain/poromechanics/el1p/problem_1p.hh:129
Scalar temperature() const
Returns the temperature within the domain in [K].
Definition multidomain/poromechanics/el1p/problem_1p.hh:117
OnePSubProblem< TypeTag > type
Definition multidomain/poromechanics/el1p/problem_1p.hh:65
A single-phase, isothermal flow model using the fully implicit scheme.
Base class for all porous media problems.
The spatial parameters class for the test problem using the 1p box model.