6.2. Model Compilation

modeller.compile_model()[source]

Compiles and sets up the multi-degree-of-freedom (MDOF) oscillator model in OpenSees.

This method constructs the model by defining nodes, assigning masses, imposing boundary conditions, and creating elements with associated material models for each storey in the building structure. It also defines rigid elastic materials for restrained degrees of freedom and nonlinear materials for unrestrained degrees of freedom. The method finally assembles the model for dynamic analysis.

The process involves:

  1. Initializing the OpenSees model.

  2. Creating base and floor nodes.

  3. Assigning masses and degrees of freedom.

  4. Applying boundary conditions for the nodes.

  5. Creating zero-length elements for each storey with their respective material properties.

Parameters:

None

Return type:

None

Notes

  • The method uses OpenSees’ ops.node, ops.mass, and ops.element to define nodes, masses, and zero-length elements for the MDOF oscillator.

  • Boundary conditions are applied with the base node being fully fixed, while the upper storeys have horizontal degrees of freedom released.

  • The material model used for each storey is a Pinching4 hysteretic model, created by the create_Pinching4_material method.