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

45{
46 namespace py = pybind11;
47
50 pybc(m, "SourceTerm");
51
52 pybc.def(py::init());
53
54 pybc.def("getFlux", &PythonSourceTermPythonSideInterface::getFlux);
55}

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

Referenced by PYBIND11_EMBEDDED_MODULE(), and PYBIND11_MODULE().