o3seespy.tools package¶
o3seespy.tools.uniaxial_drivers module¶
- o3seespy.tools.uniaxial_drivers.run_uniaxial_disp_driver(osi, mat_obj, disps, target_d_inc=1e-05)[source]¶
A Uniaxial material displacement controlled driver
- Parameters
osi (o3.OpenSeesInstance()) – An Opensees instance
mat_obj (o3.uniaxial_material.UniaxialMaterialBase()) – An instance of uniaxial material
disps (array_like) – Target displacements
target_d_inc (float) – Target displacement increment
- Returns
disp (array_like) – Actual displacements
react (array_like) – Reactions at each displacement
- o3seespy.tools.uniaxial_drivers.run_uniaxial_force_driver(osi, mat_obj, forces, d_step=0.001, max_steps=10000, handle='silent')[source]¶
A Uniaxial material force-defined driver
- Parameters
osi (o3.OpenSeesInstance()) – An Opensees instance
mat_obj (o3.uniaxial_material.UniaxialMaterialBase()) – An instance of uniaxial material
forces (array_like) – Target forces
d_step (float) – Displacement increment
max_steps (int) – Maximum number of steps to take to achieve target force
handle (str) – Behaviour if target force not reached, If ‘silent’ then change to next target force, if ‘warn’ then print warning and go to next force, else raise error.
- Returns
disp (array_like) – Actual displacements
react (array_like) – Reactions at each displacement