20template <
int GlobalDim>
25 std::size_t
const source_term_mesh_id,
const int variable_id)
27 DBUG(
"Constructing EmbeddedAnchor from config.");
33 if (element->getNumberOfNodes() != 2)
36 "Every anchor element needs to have precisely two nodes.");
41 "The EmbeddedAnchor source term has not been tested with PETSc yet.");
44 return std::make_unique<EmbeddedAnchor<GlobalDim>>(
45 bulk_mesh, dof_table_bulk, source_term_mesh_id, st_mesh, variable_id);
52 std::size_t
const source_term_mesh_id,
const int variable_id);
58 std::size_t
const source_term_mesh_id,
const int variable_id);
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
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.
template std::unique_ptr< SourceTermBase > createEmbeddedAnchor< 2 >(BaseLib::ConfigTree const &config, MeshLib::Mesh const &st_mesh, MeshLib::Mesh const &bulk_mesh, NumLib::LocalToGlobalIndexMap const &dof_table_bulk, std::size_t const source_term_mesh_id, const int variable_id)
template std::unique_ptr< SourceTermBase > createEmbeddedAnchor< 3 >(BaseLib::ConfigTree const &config, MeshLib::Mesh const &st_mesh, MeshLib::Mesh const &bulk_mesh, NumLib::LocalToGlobalIndexMap const &dof_table_bulk, std::size_t const source_term_mesh_id, const int variable_id)
std::unique_ptr< SourceTermBase > createEmbeddedAnchor(BaseLib::ConfigTree const &config, MeshLib::Mesh const &st_mesh, MeshLib::Mesh const &bulk_mesh, NumLib::LocalToGlobalIndexMap const &dof_table_bulk, std::size_t const source_term_mesh_id, const int variable_id)