BasicTools.Containers.ConstantRectilinearMesh module

BasicTools.Containers.ConstantRectilinearMesh.CheckIntegrity()[source]
class BasicTools.Containers.ConstantRectilinearMesh.ConstantRectilinearElementContainer(_ConstantRectilinearElementContainer__dimensions)[source]

Bases: BaseOutputObject

GetConnectivityForElement(index)[source]
GetConnectivityForElements(indices)[source]
GetDimensionality()[source]
GetMultiIndexOfElement(index)[source]
GetMultiIndexOfElements(indices)[source]
GetNumberOfElements()[source]
GetNumberOfNodesPerElement()[source]
GetTag(tagName)[source]

return the tag based is a name if the tag does not exist a new tag is created

SetDimensions(data)[source]
property connectivity
tighten()[source]
class BasicTools.Containers.ConstantRectilinearMesh.ConstantRectilinearMesh(dim=3)[source]

Bases: MeshBase

ComputeGlobalOffset()[source]

Recompute the Global Offset, This is necessary for some operation. Recomendation : Call it after changing the topology

GenerateFullConnectivity()[source]
GetClosestPointToPos(pos, MultiIndex=False)[source]
GetConnectivityForElement(index)[source]
GetDefValueAtPos(field, pos)[source]
GetDimensionality()[source]
GetDimensions()[source]
GetElementAtPos(pos, MultiIndex=False)[source]
GetElementShapeFunctionsAtPos(el, pos)[source]
GetElementShapeFunctionsDerAtPos(el, pos)[source]
GetElementsInTag(tagname, useOriginalId=False)[source]

return a list with the ids of the elements in a tag (only for the structElements)

GetElementsInTagBulk(tagname)[source]
GetElementsOriginalIDs(dim=None)[source]

return a single list with all the originalid concatenated

GetMonoIndexOfElement(index)[source]
GetMonoIndexOfElements(indices)[source]
GetMonoIndexOfNode(_indexs)[source]
GetMultiIndexOfElement(index)[source]
GetMultiIndexOfElements(indices)[source]
GetMultiIndexOfNode(index)[source]
GetMultiIndexOfNodes(indices)[source]
GetNamesOfElemTagsBulk()[source]
GetNodalIndicesOfBorder(border=0)[source]
GetNumberOfElements(dim=None)[source]

Compute and return the total number of elements in the mesh

GetNumberOfNodes()[source]
GetOrigin()[source]
GetPointsDimensionality()[source]
GetPosOfNode(index)[source]
GetPosOfNodes()[source]

Space coordinates for all nodes in the mesh.

Returns:

A 2-dimensional array, the first axis corresponds to the node index, the second axis corresponds to space dimension index.

Return type:

numpy.array

GetSpacing()[source]
GetValueAtPos(field, pos)[source]
GetValueAtPosMultipleField(fields, pos)[source]

All fields must have same mask (i.e. NaN values outside the support)

GetdV()[source]

Get the volume of one element.

IsConstantRectilinear()[source]
SetDimensions(data)[source]
SetOrigin(data)[source]
SetSpacing(data)[source]
property boundingMax
property boundingMin