6#include <pybind11/stl.h>
20 PythonBoundaryConditionPythonSideInterface;
23 double t, std::array<double, 3> x, std::size_t node_id,
24 std::vector<double>
const& primary_variables)
const override
26 using Ret = std::pair<bool, double>;
32 std::tuple<bool, double, std::vector<double>>
getFlux(
33 double t, std::array<double, 3> x,
34 std::vector<double>
const& primary_variables)
const override
36 using Ret = std::tuple<bool, double, std::vector<double>>;
38 getFlux, t, x, primary_variables);
44 namespace py = pybind11;
48 pybc(m,
"BoundaryCondition");
52 pybc.def(
"getDirichletBCValue",
std::tuple< bool, double, std::vector< double > > getFlux(double t, std::array< double, 3 > x, std::vector< double > const &primary_variables) const override
std::pair< bool, double > getDirichletBCValue(double t, std::array< double, 3 > x, std::size_t node_id, std::vector< double > const &primary_variables) const override
virtual std::pair< bool, double > getDirichletBCValue(double, std::array< double, 3 >, std::size_t, std::vector< double > const &) const
virtual std::tuple< bool, double, std::vector< double > > getFlux(double, std::array< double, 3 >, std::vector< double > const &) const
void pythonBindBoundaryCondition(pybind11::module &m)
Creates Python bindings for the Python BC class.