26#ifndef DUMUX_TEST_FACETCOUPLING_THREEDOMAIN_ONEP_FACETPROBLEM_HH
27#define DUMUX_TEST_FACETCOUPLING_THREEDOMAIN_ONEP_FACETPROBLEM_HH
29#include <dune/foamgrid/foamgrid.hh>
44template<
class TypeTag>
class OnePFacetProblem;
57template<
class TypeTag>
58struct Grid<TypeTag, TTag::OnePFacet> {
using type = Dune::FoamGrid<2, 3>; };
60template<
class TypeTag>
63template<
class TypeTag>
72template<
class TypeTag>
88template<
class TypeTag>
95 using ElementVolumeVariables =
typename GridVariables::GridVolumeVariables::LocalView;
96 using PrimaryVariables =
typename GridVariables::PrimaryVariables;
97 using Scalar =
typename GridVariables::Scalar;
99 using GridGeometry =
typename GridVariables::GridGeometry;
100 using FVElementGeometry =
typename GridGeometry::LocalView;
101 using SubControlVolume =
typename GridGeometry::SubControlVolume;
102 using SubControlVolumeFace =
typename GridGeometry::SubControlVolumeFace;
103 using GridView =
typename GridGeometry::GridView;
104 using Element =
typename GridView::template Codim<0>::Entity;
105 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
112 std::shared_ptr<typename ParentType::SpatialParams>
spatialParams,
113 std::shared_ptr<CouplingManager> couplingManagerPtr,
116 , couplingManagerPtr_(couplingManagerPtr)
117 , aperture_(
getParam<Scalar>(
"Extrusion.Aperture"))
119 problemName_ = getParam<std::string>(
"Vtk.OutputName") +
"_" + getParamFromGroup<std::string>(this->
paramGroup(),
"Problem.Name");
125 const std::string&
name()
const
133 BoundaryTypes values;
134 values.setAllNeumann();
148 BoundaryTypes values;
149 values.setAllNeumann();
157 NumEqVector
source(
const Element& element,
158 const FVElementGeometry& fvGeometry,
159 const ElementVolumeVariables& elemVolVars,
160 const SubControlVolume& scv)
const
163 auto source = couplingManagerPtr_->evalSourcesFromBulk(element, fvGeometry, elemVolVars, scv);
164 source /= scv.volume()*elemVolVars[scv].extrusionFactor();
170 {
return aperture_; }
174 {
return PrimaryVariables(1.0); }
182 {
return *couplingManagerPtr_; }
185 std::shared_ptr<CouplingManager> couplingManagerPtr_;
186 std::string problemName_;
Setting constant fluid properties via the input file.
A liquid phase consisting of a single component.
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
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 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 (d-1)-dimensional test problem for the incompressible one-phase model with coupling across the bu...
Definition: problem_facet.hh:90
const CouplingManager & couplingManager() const
Returns const reference to the coupling manager.
Definition: problem_facet.hh:181
PrimaryVariables initialAtPos(const GlobalPosition &globalPos) const
Evaluates the initial conditions.
Definition: problem_facet.hh:173
Scalar temperature() const
Returns the temperature for an isothermal problem.
Definition: problem_facet.hh:177
const std::string & name() const
The problem name.
Definition: problem_facet.hh:125
NumEqVector source(const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolume &scv) const
Evaluates the source term for all phases within a given sub-control volume.
Definition: problem_facet.hh:157
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: problem_facet.hh:146
OnePFacetProblem(std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< typename ParentType::SpatialParams > spatialParams, std::shared_ptr< CouplingManager > couplingManagerPtr, const std::string ¶mGroup="Facet")
Definition: problem_facet.hh:111
BoundaryTypes boundaryTypesAtPos(const GlobalPosition &globalPos) const
Specifies the kind of boundary condition at a boundary position.
Definition: problem_facet.hh:131
Scalar extrusionFactorAtPos(const GlobalPosition &globalPos) const
Sets the aperture as extrusion factor.
Definition: problem_facet.hh:169
Definition: problem_facet.hh:50
std::tuple< OneP > InheritsFrom
Definition: problem_facet.hh:50
Definition: problem_facet.hh:51
std::tuple< CCTpfaFacetCouplingModel, OnePFacet > InheritsFrom
Definition: problem_facet.hh:51
Definition: problem_facet.hh:52
std::tuple< CCMpfaFacetCouplingModel, OnePFacet > InheritsFrom
Definition: problem_facet.hh:52
Definition: problem_facet.hh:53
std::tuple< BoxFacetCouplingModel, OnePFacet > InheritsFrom
Definition: problem_facet.hh:53
Dune::FoamGrid< 2, 3 > type
Definition: problem_facet.hh:58
GetPropType< TypeTag, Properties::Scalar > Scalar
Definition: problem_facet.hh:67
GetPropType< TypeTag, Properties::GridGeometry > GridGeometry
Definition: problem_facet.hh:66
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.