Mordicus.Core.Containers.Meshes.MeshBase module

class Mordicus.Core.Containers.Meshes.MeshBase.MeshBase[source]

Bases: object

Class containing a MeshBase, with an internal storage hidden to all its children classes

__storage
Type

typeToDefine

AllElementsIterator()[source]

Constructs an iterator over all the elements of the mesh. An element is np.ndarray of size (numberOfNodes,dimensionality) containing the indices of the nodes included in this element

Returns

an iterator over all the elements of the mesh

Return type

iterator

GetDimensionality()[source]
Returns

the dimensionality of the mesh

Return type

int

GetElemAttach(node_rk: int) list[source]

Return the list of all elements ranks (the index in the full element list ) attach to a given node

Parameters

node (node_rk {int} -- the rank of the) –

Returns

list – the list of all elements attach to the input node

GetElemContaining(ip_rk: int) int[source]

Return the rank of the element containint the given integration point

Parameters
  • locate (ip_rk {int} -- the rank of the integration point to) –

  • ip. (i.e. the index of this integration point in the full list of) –

Returns

int – the rank of the element containing the input integration point

GetInternalStorage()[source]
Returns

internal storage

Return type

typeToDefine

GetNodes()[source]
Returns

nodes of the mesh, of size (numberOfNodes,dimensionality)

Return type

np.ndarray

GetNumberOfNodes()[source]
Returns

the number of nodes of the mesh

Return type

int

SetInternalStorage(_MeshBase__storage)[source]

Sets the internal storage

Parameters

__storage (typeToDefine) –