SERiF 0.0.1a
3+1D Stellar Structure and Evolution
|
Trampoline class for mfem::Coefficient. More...
#include <PyCoefficient.h>
Public Member Functions | |
mfem::real_t | Eval (mfem::ElementTransformation &T, const mfem::IntegrationPoint &ip) override |
Evaluate the coefficient at a given IntegrationPoint in an ElementTransformation. | |
void | SetTime (mfem::real_t t) override |
Set the current time for time-dependent coefficients. | |
Trampoline class for mfem::Coefficient.
This class allows Python classes to inherit from mfem::Coefficient and override its virtual methods. This is essential for creating custom coefficients in Python that can be used by MFEM's C++ backend.
Definition at line 50 of file PyCoefficient.h.
|
override |
Evaluate the coefficient at a given IntegrationPoint in an ElementTransformation.
< Inherit constructors from mfem::Coefficient.
This method is called by MFEM when the value of the coefficient is needed. If a Python class inherits from PyCoefficient, it must override this method.
T | The element transformation. |
ip | The integration point. |
Definition at line 14 of file PyCoefficient.cpp.
|
override |
Set the current time for time-dependent coefficients.
This method is called by MFEM to update the time for time-dependent coefficients. Python classes inheriting from PyCoefficient can override this method to implement time-dependent behavior.
t | The current time. |
Definition at line 24 of file PyCoefficient.cpp.