13#include <pybind11/stl.h>
27 PythonBoundaryConditionPythonSideInterface;
30 double t, std::array<double, 3> x, std::size_t node_id,
31 std::vector<double>
const& primary_variables)
const override
33 using Ret = std::pair<bool, double>;
39 std::tuple<bool, double, std::vector<double>>
getFlux(
40 double t, std::array<double, 3> x,
41 std::vector<double>
const& primary_variables)
const override
43 using Ret = std::tuple<bool, double, std::vector<double>>;
45 getFlux, t, x, primary_variables);
51 namespace py = pybind11;
55 pybc(m,
"BoundaryCondition");
59 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.