Muscat.Containers.TagsTools module

CheckIntegrity(GUI: bool = False)[source]
CheckIntegrityCheckTags(GUI=False)[source]
CheckIntegrity_TransportETagsToNewElementContainer(GUI=False) str[source]
TransportETagsToNewElementContainer(oldElementsContainer: ElementsContainer, newElementsContainer: ElementsContainer, errorIfAlreadyCreated=True)[source]

Transport ETags To a new ElementContainer. The ids will be appended if the tag already exist the newElementsContainer must be a transformation of theoldElementsContainer

Parameters:
  • oldElementsContainer (ElementsContainer) – ElementsContainer with the etags to be transported

  • newElementsContainer (ElementsContainer) – ElementsContainer to hold the new etags

  • errorIfAlreadyCreated (bool, default True) – if True (default) un error is raised if the tag already exist in the newElementsContainer if False the ids will be appended to the already created tags

TransportETagsToNewMesh(oldMesh: Mesh, newMesh: Mesh, globalOriginalEIds: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | None = None, tagNames: str | List[str] | None = None)[source]

Function to port all eTags from the oldmesh on the new mesh, the new mesh must be a transformation of the oldMesh. This means the new mesh originalIds (for elements) must be with respect to the oldMesh. The tags will be created on the newMesh

Parameters:
  • oldMesh (Mesh) – the mesh with the eTags to be transported

  • newMesh (Mesh) – the target mesh

  • globalOriginalEIds (Optional[ArrayLike] = None) – the user can pass the global original ids in the case the newMesh is a complex transformation. (in the case the local originalIds are not sufficient for the task )

  • tagNames (Optional[Union[str, List[str]]], optional) – tagnames to transport, by default value is oldMesh.GetNamesOfElementTags()

TransportETagsToNewMeshUsingImplicitGeometries(originMesh: Mesh, targetMesh: Mesh, tagNames: str | List[str] | None = None, dim: int | None = None, tol: float64 | None = None)[source]

Function to transport eTags of a given dimensionality from the originMesh on the new mesh, when the new mesh is not necessarily a transformation of the originMesh. The tags will be created on the targetMesh

Parameters:
  • originMesh (Mesh) – the mesh with the eTags to be transported

  • targetMesh (Mesh) – the target mesh

  • tagNames (Optional[Union[str, List[str]]], optional) – tagnames to transport, by default value is originMesh.GetNamesOfElementTags()

  • dim (Optional[int], optional) – dimensionality filter, by default value is mesh dimensionality

  • tol (Optional[MuscatFloat], optional) – tolerance over the distance, by default value is = np.linalg.norm(boundingMax - boundingMin)*1e-7