hookeai.data_generation.spdg.patch_generator.FiniteElement¶
- class FiniteElement(elem_type)[source]¶
Bases:
objectQuadrilateral/Hexahedral finite element.
- _nodes_matrix¶
Element nodes matrix (numpy.ndarray[int](n_dim*(n_edge_nodes,))) where each element corresponds to a given node position and whose value is set either as the node label (according to adopted numbering convention) or zero (if the node does not exist). Nodes are labeled from 1 to n_nodes.
- Type:
numpy.ndarray(2d or 3d)
Constructor.
- Parameters:
elem_type (str) – Finite element type.
List of Public Methods
Get number of spatial dimensions.
Get number of nodes per edge.
Get number of nodes.
Get node label index on element nodal matrix.
Get element nodes matrix.
Methods
- get_n_dim()[source]¶
Get number of spatial dimensions.
- Returns:
n_dim – Number of spatial dimensions.
- Return type:
- get_n_edge_nodes()[source]¶
Get number of nodes per edge.
- Returns:
n_edge_nodes – Number of nodes per edge.
- Return type:
- get_nodes_matrix()[source]¶
Get element nodes matrix.
- Returns:
nodes_matrix – Element nodes matrix (numpy.ndarray[int](n_dim*(n_edge_nodes,))) where each element corresponds to a given node position and whose value is set either as the node label (according to adopted numbering convention) or zero (if the node does not exist). Nodes are labeled from 1 to n_nodes.
- Return type:
numpy.ndarray(2d or 3d)