22 int const variable_id,
24 std::unique_ptr<NumLib::LocalToGlobalIndexMap>& dof_table,
26 : variable_id_(variable_id),
27 boundary_mesh_(boundary_mesh),
28 dof_table_(std::move(dof_table)),
29 time_decay_parameter_(time_decay_parameter)
35 auto const& number_of_components =
44 number_of_components);
50 auto const node_id = node->getID();
53 for (
int component_id = 0; component_id < number_of_components;
56 auto const global_index =
69 if (global_index >= 0) [[likely]]
73 r_neq->
get(global_index));
81 std::vector<GlobalVector*>
const& ,
86 DBUG(
"Apply ReleaseNodalForce.");
93 std::vector<double> release_values;
103 release_values.push_back(
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition of the Mesh class.
Global vector based on Eigen vector.
void add(IndexType rowId, double v)
add entry
double get(IndexType rowId) const
get entry
std::vector< Node * > const & getNodes() const
Get the nodes-vector for the mesh.
std::size_t getID() const
Get id of the mesh.
std::size_t getNumberOfNodes() const
Get the number of nodes.
static constexpr NUMLIB_EXPORT GlobalIndexType const nop
void setNodeID(std::size_t node_id)
void setCoordinates(MathLib::Point3d const &coordinates)
void applyNaturalBC(const double t, std::vector< GlobalVector * > const &x, int const process_id, GlobalMatrix *K, GlobalVector &b, GlobalMatrix *Jac) override
Applies the released nodal force boundary condition. This method scales the nodal forces by the relea...
std::vector< double > initial_release_nodal_force_
ParameterLib::Parameter< double > const & time_decay_parameter_
ReleaseNodalForce(int const variable_id, MeshLib::Mesh const &boundary_mesh, std::unique_ptr< NumLib::LocalToGlobalIndexMap > &dof_table, ParameterLib::Parameter< double > const &time_decay_parameter)
Constructs a released nodal force boundary condition.
std::vector< GlobalIndexType > global_indices_
MeshLib::Mesh const & boundary_mesh_
std::vector< MeshLib::Node const * > boundary_nodes_
void set(GlobalVector const *r_neq)
std::unique_ptr< NumLib::LocalToGlobalIndexMap > const dof_table_