Muscat.Containers.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[str, ndarray]]

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[str, ndarray]]

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[str, ndarray]]

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: ndarray

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(value)[source]

Bases: Enum

An enumeration.

Bar_2: str = 'bar2'
Bar_3: str = 'bar3'
Hexahedron_20: str = 'hex20'
Hexahedron_27: str = 'hex27'
Hexahedron_8: str = 'hex8'
Point_1: str = 'point1'
Pyramid_13: str = 'pyr13'
Pyramid_14: str = 'pyr14'
Pyramid_5: str = 'pyr5'
Quadrangle_4: str = 'quad4'
Quadrangle_8: str = 'quad8'
Quadrangle_9: str = 'quad9'
Tetrahedron_10: str = 'tet10'
Tetrahedron_4: str = 'tet4'
Triangle_3: str = 'tri3'
Triangle_6: str = 'tri6'
Wedge_15: str = 'wed15'
Wedge_18: str = 'wed18'
Wedge_6: str = 'wed6'
encode() bytes[source]
GeoBar = <Muscat.Containers.ElementsDescription.GeoSupport object>

name bar, dimensionality = 1

Type:

Bar geometrical support

GeoHex = <Muscat.Containers.ElementsDescription.GeoSupport object>

name hex, dimensionality = 3

Type:

Hexahedral geometrical support

GeoPoint = <Muscat.Containers.ElementsDescription.GeoSupport object>

name point, dimensionality = 0

Type:

Point geometrical support

GeoPyr = <Muscat.Containers.ElementsDescription.GeoSupport object>

name pyr, dimensionality = 3

Type:

Pyramidal (square base) geometrical support

GeoQuad = <Muscat.Containers.ElementsDescription.GeoSupport object>

name quad, dimensionality = 2

Type:

Quadrangle geometrical support

class GeoSupport(data: Tuple[str, int])[source]

Bases: object

Class to store basic information about the geometrical support. This class in not intender for end user.

GeoTet = <Muscat.Containers.ElementsDescription.GeoSupport object>

name tet, dimensionality = 3

Type:

Tetrahedral geometrical support

GeoTri = <Muscat.Containers.ElementsDescription.GeoSupport object>

name tri, dimensionality = 2

Type:

Triangle geometrical support

GeoWed = <Muscat.Containers.ElementsDescription.GeoSupport object>

name wed, dimensionality = 3

Type:

Wedge geometrical support