25#ifndef DUMUX_TEST_FACETCOUPLING_THREEDOMAIN_ONEP_BULKPROBLEM_HH
26#define DUMUX_TEST_FACETCOUPLING_THREEDOMAIN_ONEP_BULKPROBLEM_HH
28#include <dune/alugrid/grid.hh>
43template<
class TypeTag>
class OnePBulkProblem;
56template<
class TypeTag>
57struct Grid<TypeTag, TTag::OnePBulk> {
using type = Dune::ALUGrid<3, 3, Dune::simplex, Dune::nonconforming>; };
59template<
class TypeTag>
62template<
class TypeTag>
71template<
class TypeTag>
87template<
class TypeTag>
94 using PrimaryVariables =
typename GridVariables::PrimaryVariables;
95 using Scalar =
typename GridVariables::Scalar;
97 using GridGeometry =
typename GridVariables::GridGeometry;
98 using SubControlVolumeFace =
typename GridGeometry::SubControlVolumeFace;
99 using GridView =
typename GridGeometry::GridView;
100 using Element =
typename GridView::template Codim<0>::Entity;
101 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
109 std::shared_ptr<typename ParentType::SpatialParams>
spatialParams,
110 std::shared_ptr<CouplingManager> couplingManagerPtr,
113 , couplingManagerPtr_(couplingManagerPtr)
115 problemName_ = getParam<std::string>(
"Vtk.OutputName") +
"_" + getParamFromGroup<std::string>(this->
paramGroup(),
"Problem.Name");
121 const std::string&
name()
const
129 BoundaryTypes values;
130 values.setAllNeumann();
131 if (globalPos[1] < this->
gridGeometry().bBoxMin()[1] + 1e-6 || globalPos[1] > this->
gridGeometry().bBoxMax()[1] - 1e-6)
132 values.setAllDirichlet();
146 BoundaryTypes values;
147 values.setAllNeumann();
154 const auto y = globalPos[1];
158 return PrimaryVariables( {2.0 - (y-yMin)/(yMax-yMin)} );
163 {
return PrimaryVariables(1.0); }
171 {
return *couplingManagerPtr_; }
174 std::string problemName_;
175 std::shared_ptr<CouplingManager> couplingManagerPtr_;
Setting constant fluid properties via the input file.
A liquid phase consisting of a single 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 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
Definition: multidomain/couplingmanager.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
Test problem for the incompressible one-phase model with coupling across the bulk grid facets.
Definition: problem_1p_bulk.hh:90
PrimaryVariables dirichletAtPos(const GlobalPosition &globalPos) const
Evaluates the Dirichlet boundary conditions at a given position.
Definition: threedomain/problem_bulk.hh:152
const std::string & name() const
The problem name.
Definition: threedomain/problem_bulk.hh:121
BoundaryTypes boundaryTypesAtPos(const GlobalPosition &globalPos) const
Specifies the kind of boundary condition on a given boundary position.
Definition: threedomain/problem_bulk.hh:127
BoundaryTypes interiorBoundaryTypes(const Element &element, const SubControlVolumeFace &scvf) const
Specifies which kind of interior boundary condition should be used for which equation on a given sub-...
Definition: threedomain/problem_bulk.hh:144
Scalar temperature() const
Returns the temperature in in the domain.
Definition: threedomain/problem_bulk.hh:166
const CouplingManager & couplingManager() const
Returns const reference to the coupling manager.
Definition: threedomain/problem_bulk.hh:170
OnePBulkProblem(std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< typename ParentType::SpatialParams > spatialParams, std::shared_ptr< CouplingManager > couplingManagerPtr, const std::string ¶mGroup="Bulk")
The constructor.
Definition: threedomain/problem_bulk.hh:108
PrimaryVariables initialAtPos(const GlobalPosition &globalPos) const
Evaluates the initial conditions.
Definition: threedomain/problem_bulk.hh:162
Definition: analytical/problem_bulk.hh:49
std::tuple< OneP > InheritsFrom
Definition: analytical/problem_bulk.hh:49
Definition: analytical/problem_bulk.hh:50
std::tuple< CCTpfaFacetCouplingModel, OnePBulk > InheritsFrom
Definition: analytical/problem_bulk.hh:50
Definition: analytical/problem_bulk.hh:51
std::tuple< BoxFacetCouplingModel, OnePBulk > InheritsFrom
Definition: analytical/problem_bulk.hh:51
Dune::ALUGrid< 2, 2, Dune::cube, Dune::nonconforming > type
Definition: analytical/problem_bulk.hh:56
GetPropType< TypeTag, Properties::GridGeometry > GridGeometry
Definition: threedomain/problem_bulk.hh:65
GetPropType< TypeTag, Properties::Scalar > Scalar
Definition: threedomain/problem_bulk.hh:66
Definition: gravity/problem_bulk.hh:55
std::tuple< CCMpfaFacetCouplingModel, OnePBulk > InheritsFrom
Definition: gravity/problem_bulk.hh:55
Properties (and default properties) for all models using the box scheme together with coupling across...
Properties (and default properties) for all models using cell-centered finite volume scheme with MPFA...
Properties (and default properties) for all models using cell-centered finite volume scheme with TPFA...
A single-phase, isothermal flow model using the fully implicit scheme.
Base class for all porous media problems.
Definition of the spatial parameters for the MaxwellStefan problem.