11 std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table,
12 std::size_t
const source_term_mesh_id,
14 const int variable_id,
15 const int component_id,
17 :
SourceTerm(std::move(source_term_dof_table)),
24 DBUG(
"Create NodalSourceTerm.");
30 DBUG(
"Assemble NodalSourceTerm.");
34 auto const node_id = node->getID();
51 if (global_index >= 0)
MathLib::EigenMatrix GlobalMatrix
MathLib::EigenVector GlobalVector
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
void add(IndexType rowId, double v)
add entry
static constexpr NUMLIB_EXPORT GlobalIndexType const nop
void setNodeID(std::size_t node_id)
void setCoordinates(MathLib::Point3d const &coordinates)
std::size_t const _source_term_mesh_id
ParameterLib::Parameter< double > const & _parameter
NodalSourceTerm(std::unique_ptr< NumLib::LocalToGlobalIndexMap > source_term_dof_table, std::size_t const source_term_mesh_id, MeshLib::Mesh const &st_mesh, const int variable_id, const int component_id, ParameterLib::Parameter< double > const ¶meter)
void integrate(const double t, GlobalVector const &x, GlobalVector &b, GlobalMatrix *jac) const override
MeshLib::Mesh const & _st_mesh
SourceTerm(std::unique_ptr< NumLib::LocalToGlobalIndexMap > source_term_dof_table)
std::unique_ptr< NumLib::LocalToGlobalIndexMap > const _source_term_dof_table