OGS
ProcessLib::SourceTerms::Python::PythonSourceTermPythonSideInterfaceTrampoline Class Reference

Detailed Description

Trampoline class allowing methods of class PythonSourceTermPythonSideInterface to be overridden on the Python side. Cf. https://pybind11.readthedocs.io/en/stable/advanced/classes.html

Definition at line 28 of file PythonSourceTermModule.cpp.

Inheritance diagram for ProcessLib::SourceTerms::Python::PythonSourceTermPythonSideInterfaceTrampoline:
[legend]
Collaboration diagram for ProcessLib::SourceTerms::Python::PythonSourceTermPythonSideInterfaceTrampoline:
[legend]

Public Member Functions

std::pair< double, std::vector< double > > getFlux (double t, std::array< double, 3 > const &x, std::vector< double > const &primary_variables) const override
 
- Public Member Functions inherited from ProcessLib::SourceTerms::Python::PythonSourceTermPythonSideInterface
virtual ~PythonSourceTermPythonSideInterface ()=default
 

Member Function Documentation

◆ getFlux()

std::pair< double, std::vector< double > > ProcessLib::SourceTerms::Python::PythonSourceTermPythonSideInterfaceTrampoline::getFlux ( double ,
std::array< double, 3 > const & ,
std::vector< double > const &  ) const
inlineoverridevirtual

Computes the flux for the provided arguments (time, position of the node, primary variables at the node).

Returns
flux Flux of the source term at that node and derivative of the flux w.r.t. all primary variables.

Implements ProcessLib::SourceTerms::Python::PythonSourceTermPythonSideInterface.

Definition at line 35 of file PythonSourceTermModule.cpp.

38 {
39 using Ret = std::pair<double, std::vector<double>>;
40 PYBIND11_OVERLOAD_PURE(Ret, PythonSourceTermPythonSideInterface,
41 getFlux, t, x, primary_variables);
42 }
std::pair< double, std::vector< double > > getFlux(double t, std::array< double, 3 > const &x, std::vector< double > const &primary_variables) const override

References getFlux().

Referenced by getFlux().


The documentation for this class was generated from the following file: