26#ifndef DUMUX_TEST_TPFAFACETCOUPLING_TRACER_ONEP_LOWDIMPROBLEM_HH
27#define DUMUX_TEST_TPFAFACETCOUPLING_TRACER_ONEP_LOWDIMPROBLEM_HH
29#include <dune/foamgrid/foamgrid.hh>
44template<
class TypeTag>
class OnePLowDimProblem;
57template<
class TypeTag>
58struct Grid<TypeTag, TTag::OnePLowDim> {
using type = Dune::FoamGrid<1, 2>; };
60template<
class TypeTag>
63template<
class TypeTag>
71template<
class TypeTag>
86template<
class TypeTag>
92 using ElementVolumeVariables =
typename GridVariables::GridVolumeVariables::LocalView;
93 using PrimaryVariables =
typename GridVariables::PrimaryVariables;
94 using Scalar =
typename GridVariables::Scalar;
96 using GridGeometry =
typename GridVariables::GridGeometry;
97 using FVElementGeometry =
typename GridGeometry::LocalView;
98 using SubControlVolume =
typename GridGeometry::SubControlVolume;
99 using GridView =
typename GridGeometry::GridView;
100 using Element =
typename GridView::template Codim<0>::Entity;
101 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
110 std::shared_ptr<typename ParentType::SpatialParams>
spatialParams,
117 problemName_ = getParamFromGroup<std::string>(this->
paramGroup(),
"Vtk.OutputName") +
"_" +
118 getParamFromGroup<std::string>(this->
paramGroup(),
"Problem.Name");
122 const std::string&
name()
const
123 {
return problemName_; }
128 BoundaryTypes values;
129 values.setAllNeumann();
134 NumEqVector
source(
const Element& element,
135 const FVElementGeometry& fvGeometry,
136 const ElementVolumeVariables& elemVolVars,
137 const SubControlVolume& scv)
const
140 auto source = couplingManagerPtr_->evalSourcesFromBulk(element, fvGeometry, elemVolVars, scv);
141 source /= scv.volume()*elemVolVars[scv].extrusionFactor();
151 {
return aperture_; }
155 {
return PrimaryVariables(1.0e5); }
163 {
return *couplingManagerPtr_; }
166 std::shared_ptr<CouplingManager> couplingManagerPtr_;
168 std::string problemName_;
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.
A much simpler (and thus potentially less buggy) version of pure water.
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
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
Property to specify the type of scalar values.
Definition: common/properties.hh:53
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 liquid phase consisting of a single component.
Definition: 1pliquid.hh:46
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 spatial parameters class for the test problem using the 1p cc model.
Definition: multidomain/boundary/stokesdarcy/1p2c_1p2c/spatialparams.hh:41
The lower-dimensional test problem for the incompressible one-phase model with coupling across the bu...
Definition: problem_1p_lowdim.hh:88
const CouplingManager & couplingManager() const
Returns reference to the coupling manager.
Definition: analytical/problem_lowdim.hh:174
PrimaryVariables dirichletAtPos(const GlobalPosition &globalPos) const
Evaluates the Dirichlet boundary condition for a given position.
Definition: problem_1p_lowdim.hh:146
const std::string & name() const
The problem name.
Definition: problem_1p_lowdim.hh:122
BoundaryTypes boundaryTypesAtPos(const GlobalPosition &globalPos) const
Specifies the type of boundary condition at a given position.
Definition: problem_1p_lowdim.hh:126
NumEqVector source(const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolume &scv) const
Evaluates the source term at a given position.
Definition: problem_1p_lowdim.hh:134
Scalar temperature() const
Returns the temperature in in the domain.
Definition: problem_1p_lowdim.hh:158
OnePLowDimProblem(std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< typename ParentType::SpatialParams > spatialParams, std::shared_ptr< CouplingManager > couplingManager, const std::string ¶mGroup="")
Definition: problem_1p_lowdim.hh:109
PrimaryVariables initialAtPos(const GlobalPosition &globalPos) const
Evaluates the initial conditions.
Definition: analytical/problem_lowdim.hh:166
Scalar extrusionFactorAtPos(const GlobalPosition &globalPos) const
Sets the aperture as extrusion factor.
Definition: problem_1p_lowdim.hh:150
Definition: analytical/problem_lowdim.hh:49
std::tuple< OneP > InheritsFrom
Definition: analytical/problem_lowdim.hh:49
Definition: analytical/problem_lowdim.hh:50
std::tuple< OnePLowDim, CCTpfaModel > InheritsFrom
Definition: analytical/problem_lowdim.hh:50
Definition: analytical/problem_lowdim.hh:51
std::tuple< OnePLowDim, BoxModel > InheritsFrom
Definition: analytical/problem_lowdim.hh:51
Dune::FoamGrid< 1, 2 > type
Definition: analytical/problem_lowdim.hh:56
Definition: gravity/problem_lowdim.hh:57
std::tuple< OnePLowDim, CCTpfaModel > InheritsFrom
Definition: gravity/problem_lowdim.hh:57
A single-phase, isothermal flow model using the fully implicit scheme.
Base class for all porous media problems.
The spatial parameters for the incompressible test.