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 38 of file PythonSourceTermModule.cpp.

39{
40 namespace py = pybind11;
41
44 pybc(m, "SourceTerm");
45
46 pybc.def(py::init());
47
49}
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().