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