OGS
|
Functions | |
std::vector< std::size_t > | identifySubdomainMeshNodes (MeshLib::Mesh const &subdomain_mesh, MeshGeoToolsLib::MeshNodeSearcher const &mesh_node_searcher) |
std::vector< std::size_t > | findElementsInMesh (std::vector< std::size_t > const &node_ids, std::vector< std::vector< std::size_t > > const &connected_element_ids_per_node) |
std::vector< std::vector< std::size_t > > | identifySubdomainMeshElements (MeshLib::Mesh const &subdomain_mesh, MeshLib::Mesh const &bulk_mesh) |
void | updateOrCheckExistingSubdomainProperty (MeshLib::Mesh &mesh, std::string_view property_name, std::vector< std::size_t > const &values, MeshLib::MeshItemType const mesh_item_type, bool const force_overwrite) |
Updates or checks the existing mesh's property with the given values. | |
std::vector< std::size_t > anonymous_namespace{IdentifySubdomainMesh.cpp}::findElementsInMesh | ( | std::vector< std::size_t > const & | node_ids, |
std::vector< std::vector< std::size_t > > const & | connected_element_ids_per_node ) |
Find all elements which consist of all of the given node ids.
node_ids
. Definition at line 52 of file IdentifySubdomainMesh.cpp.
Referenced by identifySubdomainMeshElements().
std::vector< std::vector< std::size_t > > anonymous_namespace{IdentifySubdomainMesh.cpp}::identifySubdomainMeshElements | ( | MeshLib::Mesh const & | subdomain_mesh, |
MeshLib::Mesh const & | bulk_mesh ) |
Tries to find all elements' ids in the bulk mesh. The subdomain elements' nodes are mapped to the bulk mesh and are then used to identify the bulk mesh elements.
Definition at line 88 of file IdentifySubdomainMesh.cpp.
References MeshLib::bulkNodeIDs(), ERR(), findElementsInMesh(), MeshLib::Mesh::getElements(), MeshLib::Mesh::getElementsConnectedToNode(), MeshLib::getNodeIndex(), MeshLib::Mesh::getNodes(), MeshLib::Mesh::getNumberOfElements(), MeshLib::Mesh::getNumberOfNodes(), MeshLib::views::ids, and OGS_FATAL.
std::vector< std::size_t > anonymous_namespace{IdentifySubdomainMesh.cpp}::identifySubdomainMeshNodes | ( | MeshLib::Mesh const & | subdomain_mesh, |
MeshGeoToolsLib::MeshNodeSearcher const & | mesh_node_searcher ) |
Find one-to-one mapping of subdomain nodes to the bulk mesh nodes and returns the map of ids.
Definition at line 25 of file IdentifySubdomainMesh.cpp.
References MeshGeoToolsLib::MeshNodeSearcher::getMeshNodeIDs(), MeshLib::Mesh::getNodes(), MeshLib::Mesh::getNumberOfNodes(), and OGS_FATAL.
void anonymous_namespace{IdentifySubdomainMesh.cpp}::updateOrCheckExistingSubdomainProperty | ( | MeshLib::Mesh & | mesh, |
std::string_view | property_name, | ||
std::vector< std::size_t > const & | values, | ||
MeshLib::MeshItemType const | mesh_item_type, | ||
bool const | force_overwrite ) |
Updates or checks the existing mesh's property with the given values.
Definition at line 143 of file IdentifySubdomainMesh.cpp.
References MeshLib::Mesh::getName(), MeshLib::Mesh::getProperties(), INFO(), OGS_FATAL, and WARN().