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] | _NestedSequence[_SupportsArray[dtype]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | 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 )