OGS
ProcessLib::SourceTerms::Python Namespace Reference

Classes

class  PythonSourceTerm
 A source term whose values are computed by a Python script. More...
class  PythonSourceTermLocalAssembler
class  PythonSourceTermLocalAssemblerInterface
class  PythonSourceTermPythonSideInterface
class  PythonSourceTermPythonSideInterfaceTrampoline
struct  PythonStData

Functions

void pythonBindSourceTerm (pybind11::module &m)
 Creates Python bindings for the Python source term class.

Function Documentation

◆ pythonBindSourceTerm()

OGS_EXPORT_SYMBOL void ProcessLib::SourceTerms::Python::pythonBindSourceTerm ( pybind11::module & m)

Creates Python bindings for the Python source term class.

Definition at line 45 of file PythonSourceTermModule.cpp.

46{
47 namespace py = pybind11;
48
51 pybc(m, "SourceTerm");
52
53 pybc.def(py::init());
54
56}
virtual std::pair< double, std::vector< double > > getFlux(double, std::array< double, 3 > const &, std::vector< double > const &) const =0

References ProcessLib::SourceTerms::Python::PythonSourceTermPythonSideInterface::getFlux().

Referenced by PYBIND11_EMBEDDED_MODULE(), and PYBIND11_MODULE().