Preprocessing

Fiber Section Mesh

Tcl to Python

opstool.pre.tcl2py(input_file, output_file)

Convert OpenSees Tcl code to OpenSeesPy Python format.

Remove void nodes

opstool.pre.remove_void_nodes()

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

Loads Transform and Processing

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

Apply load distribution along specified coordinate axis.

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.

Model Mass

opstool.pre.ModelMass()

A class used to generate node masses.

Gmsh to OpenSeesPy

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

Generate OpenSees code from GMSH.

Unit System

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

A class for unit conversion.

Model Data

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.