25#ifndef DUMUX_INCOMPRESSIBLE_ONEP_TEST_PROBLEM_INTERNAL_DIRICHLET_HH
26#define DUMUX_INCOMPRESSIBLE_ONEP_TEST_PROBLEM_INTERNAL_DIRICHLET_HH
32template<
class TypeTag>
class OnePTestProblemInternalDirichlet;
44template<
class TypeTag>
45struct Problem<TypeTag, TTag::OnePInternalDirichlet>
54template<
class TypeTag>
59 using Element =
typename GridView::template Codim<0>::Entity;
65 using SubControlVolume =
typename GridGeometry::SubControlVolume;
66 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
82 values.setAllNeumann();
98 if (globalPos[0] < gg.bBoxMin()[0] + eps_)
99 return NeumannValues(1e3);
100 else if (globalPos[1] < gg.bBoxMin()[1] + eps_)
101 return NeumannValues(-1e3);
103 return NeumannValues(0.0);
124 return (scv.dofIndex() ==
static_cast<std::size_t
>(this->gridGeometry().numDofs()/2));
133 {
return PrimaryVariables(1e5); }
136 static constexpr Scalar eps_ = 1.5e-7;
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 GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: common/fvproblem.hh:588
Property to specify the type of a problem which has to be solved.
Definition: common/properties.hh:69
Multidomain test problem for the incompressible one-phase model.
Definition: test/multidomain/boundary/darcydarcy/1p_1p/problem.hh:45
A test for internal Dirichlet constraints.
Definition: test/porousmediumflow/1p/implicit/internaldirichlet/problem.hh:56
bool hasInternalDirichletConstraint(const Element &element, const SubControlVolume &scv) const
Tag a degree of freedom to carry internal Dirichlet constraints. If true is returned for a dof,...
Definition: test/porousmediumflow/1p/implicit/internaldirichlet/problem.hh:120
BoundaryTypes boundaryTypesAtPos(const GlobalPosition &globalPos) const
Specifies which kind of boundary condition should be used for which equation on a given boundary cont...
Definition: test/porousmediumflow/1p/implicit/internaldirichlet/problem.hh:79
OnePTestProblemInternalDirichlet(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: test/porousmediumflow/1p/implicit/internaldirichlet/problem.hh:69
static constexpr bool enableInternalDirichletConstraints()
Enable internal Dirichlet constraints.
Definition: test/porousmediumflow/1p/implicit/internaldirichlet/problem.hh:107
PrimaryVariables internalDirichlet(const Element &element, const SubControlVolume &scv) const
Define the values of internal Dirichlet constraints for a degree of freedom.
Definition: test/porousmediumflow/1p/implicit/internaldirichlet/problem.hh:132
NeumannValues neumannAtPos(const GlobalPosition &globalPos) const
Evaluate the boundary conditions for a neumann boundary segment.
Definition: test/porousmediumflow/1p/implicit/internaldirichlet/problem.hh:95
Definition: test/porousmediumflow/1p/implicit/internaldirichlet/problem.hh:37
Definition: test/porousmediumflow/1p/implicit/internaldirichlet/problem.hh:40
std::tuple< OnePInternalDirichlet, OnePIncompressibleBox > InheritsFrom
Definition: test/porousmediumflow/1p/implicit/internaldirichlet/problem.hh:40
The properties for the incompressible test.