femethods.mesh module

Mesh module that will define the mesh.

class femethods.mesh.Mesh(length: float, loads: List[Load], reactions: List[Reaction], dof: int)[source]

Bases: object

define a mesh that will handle degrees-of-freedom (dof), element lengths etc.

the input degree-of-freedom (dof) parameter is the degrees-of-freedom for a single element

dof

Degrees of freedom of the entire beam

Returns:Read-only. Number of degrees of freedom of the beam
Return type:int
lengths

List of lengths of mesh elements

Returns:Read-only. List of lengths of local mesh elements
Return type:list
nodes
num_elements

Number of mesh elements

Returns:Read-only. Number of elements in mesh
Return type:int