22namespace SourceTerms::Python
26 PythonSourceTermPythonSideInterface>
34 std::vector<double>
const& prim_vars_data)
const
39 return {
true, flux, std::move(dFlux)};
48 std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table,
49 PythonStData&& source_term_data,
unsigned const integration_order,
50 unsigned const global_dim,
bool const flush_stdout);
60 std::vector<std::unique_ptr<PythonSourceTermLocalAssemblerInterface>>
Global vector based on Eigen vector.
A source term whose values are computed by a Python script.
PythonSourceTerm(std::unique_ptr< NumLib::LocalToGlobalIndexMap > source_term_dof_table, PythonStData &&source_term_data, unsigned const integration_order, unsigned const global_dim, bool const flush_stdout)
std::vector< std::unique_ptr< PythonSourceTermLocalAssemblerInterface > > _local_assemblers
Local assemblers for all elements of the source term mesh.
void integrate(const double t, GlobalVector const &x, GlobalVector &b, GlobalMatrix *jac) const override
PythonStData _source_term_data
Auxiliary data used by the local assemblers.
PythonSourceTermPythonSideInterface const *const bc_or_st_object
ProcessLib::BoundaryConditionAndSourceTerm::Python::FlagAndFluxAndDFlux getFlagAndFluxAndDFlux(double const t, std::array< double, 3 > const coords, std::vector< double > const &prim_vars_data) const