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

37 {
38 using Ret = std::pair<double, std::vector<double>>;
39 PYBIND11_OVERLOAD_PURE(Ret, PythonSourceTermPythonSideInterface,
40 getFlux, t, x, primary_variables);
41 }
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: