sajou.elements.element module

class sajou.elements.element.Element(number)

Bases: object

Generic Element object. Parent class for the 2D and 3D implementation.

Parameters:number (int) – number identifying the element in the model
get_element_active_dof(node)

Get an array containing the indices of the used DOFs of the node within the element.

Parameters:node (int) – the number of the node in the element (element number of the node: 0, 1, 2, ... )
Returns:
Return type:array of indices

Note

The array has the following form:

[0, 1, 2] --> all DOFs are used
[0, 2] --> DOF 0 and 2 are used only (ux and rz in 2D)

This array is used to know exactly which DOFs should be used to assemble the global stiffness matrix or to retrieve the corresponding displacements.

get_node_active_dof(node)

Get an array containing the indices of the used DOFs of the given node of the element.

Parameters:node (int) – the number of the node in the element (element number of the node: 0, 1, 2, ... )
Returns:
Return type:array of indices

Note

The array has the following form:

[0, 1, 2] --> all DOFs are used
[0, 2] --> DOF 0 and 2 are used only (ux and rz in 2D)

This array is used to know exactly which DOFs should be used to assemble the global stiffness matrix or to retrieve the corresponding displacements.

Example

It would be used like this:

i_global_node_1 = e.get_index_list_of_node(n_node_ele) + nfat[global_node_number]