18 std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table,
19 std::size_t
const source_term_mesh_id,
21 const int variable_id,
22 const int component_id,
24 :
SourceTerm(std::move(source_term_dof_table)),
25 _source_term_mesh_id(source_term_mesh_id),
27 _variable_id(variable_id),
28 _component_id(component_id),
31 DBUG(
"Create NodalSourceTerm.");
37 DBUG(
"Assemble NodalSourceTerm.");
41 auto const node_id = node->getID();
58 if (global_index >= 0)
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Global vector based on Eigen vector.
void add(IndexType rowId, double v)
add entry
std::vector< Node * > const & getNodes() const
Get the nodes-vector for the mesh.
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
std::unique_ptr< NumLib::LocalToGlobalIndexMap > const _source_term_dof_table