25#ifndef DUMUX_INCOMPRESSIBLE_ONEP_TEST_PROBLEM_INTERNAL_DIRICHLET_HH
26#define DUMUX_INCOMPRESSIBLE_ONEP_TEST_PROBLEM_INTERNAL_DIRICHLET_HH
44template<
class TypeTag>
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
Definition common/properties.hh:47
Type tag for numeric models.
Definition grid.hh:35
const GridGeometry & gridGeometry() const
Definition common/fvproblem.hh:588
Property to specify the type of a problem which has to be solved.
Definition common/properties.hh:69
OnePTestProblem(std::shared_ptr< const GridGeometry > gridGeometry, std::shared_ptr< CouplingManager > couplingManager, const std::string ¶mGroup="")
Definition test/multidomain/boundary/darcydarcy/1p_1p/problem.hh:63
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
OnePTestProblemInternalDirichlet< TypeTag > type
Definition test/porousmediumflow/1p/implicit/internaldirichlet/problem.hh:46
The properties for the incompressible test.