Preprocessing

Fiber Section Mesh

Fiber section mesh is a tool to create a mesh of fiber sections for OpenSeesPy models. It can be used to generate fiber sections from a given geometry and material properties.

Tcl to Python

Converts Tcl commands to Python commands for OpenSeesPy. This is useful if you have a model defined in Tcl and want to convert it to Python for use with OpenSeesPy.

opstool.pre.tcl2py(input_file, output_file)

Convert OpenSees Tcl code to OpenSeesPy Python format.

Gmsh to OpenSeesPy

Building the OpenSeesPy model from a Gmsh mesh file or model.

opstool.pre.Gmsh2OPS([ndm, ndf])

Generate OpenSees code from GMSH.

Unit System

A class to handle unit systems in OpenSeesPy. It allows for the conversion of units and provides a way to manage different unit systems within the OpenSeesPy framework.

opstool.pre.UnitSystem([length, force, time])

A class for unit conversion.

Loads Transform and Processing

This module provides functions to apply load distributions, create gravity loads, and transform various types of loads (uniform, point, surface) from global system into a local system for OpenSeesPy.

opstool.pre.create_gravity_load([...])

Applying the gravity loads.

opstool.pre.gen_grav_load([exclude_nodes, ...])

Applying the gravity loads.

opstool.pre.transform_beam_uniform_load(ele_tags)

Transforms a uniformly distributed beam load from the global coordinate system to the local coordinate system.

opstool.pre.transform_beam_point_load(ele_tags)

Transforms point loads for beam elements from global to local coordinates.

opstool.pre.transform_surface_uniform_load(...)

Converts uniform surface loads into equivalent nodal forces in the global coordinate system.

opstool.pre.apply_load_distribution([...])

Apply load distribution along specified coordinate axis.

Model Data

Return the model data from the OpenSeesPy model.

opstool.pre.get_node_coord()

Get nodal data from the OpenSees model.

opstool.pre.get_node_mass()

Get nodal mass data from the OpenSees model, including the mass from the nodes and elements.

opstool.pre.get_mck(matrix_type, ...[, ...])

Get the mass, stiffness, or damping matrix from the OpenSees model.

Model Mass

opstool.pre.ModelMass()

A class used to generate node masses.

Utilities

opstool.pre.find_void_nodes([remove])

Finds free nodes in the model, i.e. nodes that are not attached to any element.

opstool.pre.remove_void_nodes()

Removes free node from the model, i.e. nodes that are not attached to any element.