OGS
|
A source term whose values are computed by a Python script.
Definition at line 46 of file PythonSourceTerm.h.
#include <PythonSourceTerm.h>
Public Member Functions | |
PythonSourceTerm (std::unique_ptr< NumLib::LocalToGlobalIndexMap > source_term_dof_table, PythonSourceTermData &&source_term_data, unsigned const integration_order, unsigned const shapefunction_order, unsigned const global_dim, bool const flush_stdout) | |
void | integrate (const double t, GlobalVector const &x, GlobalVector &b, GlobalMatrix *jac) const override |
Public Member Functions inherited from ProcessLib::SourceTerm | |
SourceTerm (std::unique_ptr< NumLib::LocalToGlobalIndexMap > source_term_dof_table) | |
virtual | ~SourceTerm ()=default |
Private Attributes | |
PythonSourceTermData | _source_term_data |
Auxiliary data. More... | |
std::vector< std::unique_ptr< PythonSourceTermLocalAssemblerInterface > > | _local_assemblers |
Local assemblers for all elements of the source term mesh. More... | |
bool const | _flush_stdout |
Additional Inherited Members | |
Protected Attributes inherited from ProcessLib::SourceTerm | |
std::unique_ptr< NumLib::LocalToGlobalIndexMap > const | _source_term_dof_table |
|
explicit |
Definition at line 29 of file PythonSourceTerm.cpp.
References _local_assemblers, _source_term_data, ProcessLib::SourceTerm::_source_term_dof_table, ProcessLib::BoundaryConditionAndSourceTerm::createLocalAssemblers(), MeshLib::Mesh::getElements(), MeshLib::Mesh::isAxiallySymmetric(), and ProcessLib::SourceTerms::Python::PythonSourceTermData::source_term_mesh.
|
overridevirtual |
Implements ProcessLib::SourceTerm.
Definition at line 46 of file PythonSourceTerm.cpp.
References _flush_stdout, _local_assemblers, ProcessLib::SourceTerm::_source_term_dof_table, ProcessLib::SourceTerms::Python::PythonSourceTermLocalAssemblerInterface::assemble(), and NumLib::SerialExecutor::executeMemberOnDereferenced().
|
private |
Whether or not to flush standard output before and after each call to Python code. Ensures right order of output messages and therefore simplifies debugging.
Definition at line 69 of file PythonSourceTerm.h.
Referenced by integrate().
|
private |
Local assemblers for all elements of the source term mesh.
Definition at line 64 of file PythonSourceTerm.h.
Referenced by PythonSourceTerm(), and integrate().
|
private |