Muscat.MeshContainers.ElementsDescription module

CheckIntegrity(GUI: bool = False)[source]

CheckIntegrity function. Tests

Parameters:

GUI (bool, optional) – if True, generate (in some case) an output on a new window, by default False

Returns:

ok if all ok

Return type:

str

class ElementDescription(name, geoSupport)[source]

Bases: object

Class to store information about the different type of elements.

degree: int

the higher degree of the polynomial

dimension: int

Dimensionality 0,1,2,3

facesL1: List[Tuple[ElementType, List[int]]]

First level faces. (triangles for a tetra for example) A list containing a tuples of the elements name and the local connectivity

facesL2: List[Tuple[ElementType, List[int]]]

Second level faces. (bars for a tetra for example) A list containing a tuples of the elements name and the local connectivity

facesL3: List[Tuple[ElementType, List[int]]]

third level faces. (points for a tetra for example) A list containing a tuples of the elements name and the local connectivity

geoSupport

the geometrical support of this element

linear: bool

true if the the jacobian matrix is constant in the element

mirrorPermutation: List[int]

Permutation of index to make a valid element again after a mirror operation

name

Element Name

numberOfNodes

number of nodes of this elements

class ElementType(*values)[source]

Bases: Enum

Bar_2 = 1
Bar_3 = 2
Element_NA = 0
Hexahedron_20 = 3
Hexahedron_27 = 4
Hexahedron_8 = 5
Point_1 = 6
Pyramid_13 = 7
Pyramid_14 = 8
Pyramid_5 = 9
Quadrangle_4 = 10
Quadrangle_8 = 11
Quadrangle_9 = 12
Tetrahedron_10 = 13
Tetrahedron_4 = 14
Triangle_3 = 15
Triangle_6 = 16
Wedge_15 = 17
Wedge_18 = 18
Wedge_6 = 19
ElementsInfo: Dict[str | ElementType, ElementDescription] = {ElementType.Bar_2: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Bar_3: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Hexahedron_20: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Hexahedron_27: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Hexahedron_8: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Point_1: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Pyramid_13: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Pyramid_14: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Pyramid_5: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Quadrangle_4: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Quadrangle_8: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Quadrangle_9: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Tetrahedron_10: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Tetrahedron_4: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Triangle_3: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Triangle_6: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Wedge_15: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Wedge_18: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>, ElementType.Wedge_6: <Muscat.MeshContainers.ElementsDescription.ElementDescription object>}

Dictionary with with the description for all elements.

This dictionary contain for every element type ElementDescription singleton with the information about the elements.

class GeoProp(name, dimensionality)[source]

Bases: NamedTuple

dimensionality: int

Alias for field number 1

name: str

Alias for field number 0

class GeoSupport(*values)[source]

Bases: Enum

GeoBar = ('GeoBar', 1)

dimensionality = 1

Type:

Bar geometrical support

GeoHex = ('GeoHex', 3)

dimensionality = 3

Type:

Hexahedral geometrical support

GeoPoint = ('GeoPoint', 0)

dimensionality = 0

Type:

Point geometrical support

GeoPyr = ('GeoPyr', 3)

dimensionality = 3

Type:

Pyramidal (square base) geometrical support

GeoQuad = ('GeoQuad', 2)

dimensionality = 2

Type:

Quadrangle geometrical support

GeoTet = ('GeoTet', 3)

dimensionality = 3

Type:

Tetrahedral geometrical support

GeoTri = ('GeoTri', 2)

dimensionality = 2

Type:

Triangle geometrical support

GeoWed = ('GeoWed', 3)

dimensionality = 3

Type:

Wedge geometrical support

property dimensionality
GetElementDescription(elementType: str | ElementType) → ElementDescription[source]

Return an instance of ElementDescription for the element type elementType

Parameters:

elementType (ElementTypeLike) – Element type

Returns:

instance of ElementDescription with the information of the element

Return type:

ElementDescription