20template <
int GlobalDim>
23 std::unique_ptr<NumLib::LocalToGlobalIndexMap> dof_table,
24 std::size_t
const source_term_mesh_id,
const int variable_id,
25 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters)
27 DBUG(
"Constructing AnchorTerm from config.");
31 auto const param_name =
34 DBUG(
"Using parameter {:s} as anchor stiffness constant.", param_name);
41 if (element->getNumberOfNodes() != 2)
44 "Every anchor element needs to have precisely two nodes.");
48 return std::make_unique<AnchorTerm<GlobalDim>>(
49 std::move(dof_table), source_term_mesh_id, st_mesh, variable_id, param);
54 std::unique_ptr<NumLib::LocalToGlobalIndexMap> dof_table,
55 std::size_t
const source_term_mesh_id,
const int variable_id,
56 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const&
61 std::unique_ptr<NumLib::LocalToGlobalIndexMap> dof_table,
62 std::size_t
const source_term_mesh_id,
const int variable_id,
63 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const&
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
T getConfigParameter(std::string const ¶m) const
void checkConfigParameter(std::string const ¶m, std::string_view const value) const
std::vector< Element * > const & getElements() const
Get the element-vector for the mesh.
OGS_NO_DANGLING Parameter< ParameterDataType > & findParameter(std::string const ¶meter_name, std::vector< std::unique_ptr< ParameterBase > > const ¶meters, int const num_components, MeshLib::Mesh const *const mesh=nullptr)
std::unique_ptr< SourceTerm > createAnchorTerm(BaseLib::ConfigTree const &config, MeshLib::Mesh const &st_mesh, std::unique_ptr< NumLib::LocalToGlobalIndexMap > dof_table, std::size_t const source_term_mesh_id, const int variable_id, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters)
template std::unique_ptr< SourceTerm > createAnchorTerm< 3 >(BaseLib::ConfigTree const &config, MeshLib::Mesh const &st_mesh, std::unique_ptr< NumLib::LocalToGlobalIndexMap > dof_table, std::size_t const source_term_mesh_id, const int variable_id, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters)
template std::unique_ptr< SourceTerm > createAnchorTerm< 2 >(BaseLib::ConfigTree const &config, MeshLib::Mesh const &st_mesh, std::unique_ptr< NumLib::LocalToGlobalIndexMap > dof_table, std::size_t const source_term_mesh_id, const int variable_id, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const ¶meters)