24#ifndef DUMUX_PYTHON_COMMON_BOUNDARYTYPES_HH
25#define DUMUX_PYTHON_COMMON_BOUNDARYTYPES_HH
27#include <dune/common/classname.hh>
28#include <dune/python/pybind11/pybind11.h>
29#include <dune/python/common/typeregistry.hh>
38 using pybind11::operator
""_a;
40 cls.def(pybind11::init());
48template <
class BoundaryTypes>
51 using namespace Dune::Python;
53 auto [cls, addedToRegistry] = insertClass<BoundaryTypes>(
54 scope,
"BoundaryTypes",
55 GenerateTypeName(Dune::className<BoundaryTypes>()),
56 IncludeFiles{
"dumux/python/common/boundarytypes.hh"}
Definition: python/common/boundarytypes.hh:33
void registerBoundaryTypes(pybind11::handle scope, pybind11::class_< BoundaryTypes, Options... > cls)
Definition: python/common/boundarytypes.hh:36
Class to specify the type of a boundary.
Definition: common/boundarytypes.hh:38
void setAllNeumann()
Set all boundary conditions to Neumann.
Definition: common/boundarytypes.hh:102
void setAllDirichlet()
Set all boundary conditions to Dirichlet.
Definition: common/boundarytypes.hh:111
void reset()
Reset the boundary types for all equations.
Definition: common/boundarytypes.hh:54
bool hasNeumann() const
Returns true if some equation is used to specify a Neumann condition.
Definition: common/boundarytypes.hh:296
bool hasDirichlet() const
Returns true if some equation is used to specify a Dirichlet condition.
Definition: common/boundarytypes.hh:258
Class to specify the type of a boundary.