OpenSeesPyAssistant 1.1
OpenSeesPy for everyone
Units Namespace Reference

Module with the units conversion and the definition of the units used as default (m, N, s). More...

Variables

float cm2_unit = cm_unit*cm_unit
 
float cm3_unit = cm_unit*cm_unit*cm_unit
 
float cm4_unit = cm3_unit*cm_unit
 
float cm_unit = m_unit*1e-2
 
float dm2_unit = dm_unit*dm_unit
 
float dm3_unit = dm_unit*dm_unit*dm_unit
 
float dm4_unit = dm3_unit*dm_unit
 
float dm_unit = m_unit*1e-1
 
string force_unit = "N"
 
float ft2_unit = ft_unit*ft_unit
 
float ft3_unit = ft_unit*ft_unit*ft_unit
 
float ft4_unit = ft3_unit*ft_unit
 
float ft_unit = m_unit*0.3048
 
float GN_unit = N_unit*1e9
 
float GPa_unit = Pa_unit*1e9
 
float hours_unit = min_unit*60
 
float inch2_unit = inch_unit*inch_unit
 
float inch3_unit = inch_unit*inch_unit*inch_unit
 
float inch4_unit = inch3_unit*inch_unit
 
float inch_unit = m_unit*0.0254
 
float kg_unit = N_unit*s_unit**2/m_unit
 
float kip_unit = N_unit*4448.2216
 
float km_unit = m_unit*1e3
 
float kN_unit = N_unit*1e3
 
float kNm_unit = kN_unit*m_unit
 
float kNmm_unit = kN_unit*mm_unit
 
float kPa_unit = Pa_unit*1e3
 
float ksi_unit = psi_unit*1000
 
string length_unit = "m"
 
float m2_unit = m_unit*m_unit
 
float m3_unit = m_unit*m_unit*m_unit
 
float m4_unit = m3_unit*m_unit
 
float m_unit = 1.0
 
float mile_unit = m_unit*1609.34
 
float min_unit = s_unit*60
 
float mm2_unit = mm_unit*mm_unit
 
float mm3_unit = mm_unit*mm_unit*mm_unit
 
float mm4_unit = mm3_unit*mm_unit
 
float mm_unit = m_unit*1e-3
 
float MN_unit = N_unit*1e6
 
float MNm_unit = MN_unit*m_unit
 
float MNmm_unit = MN_unit*mm_unit
 
float MPa_unit = Pa_unit*1e6
 
float N_unit = 1.0
 
float Nm_unit = N_unit*m_unit
 
float Nmm_unit = N_unit*mm_unit
 
float Pa_unit = N_unit/m2_unit
 
float pound_unit = kg_unit*0.45359237
 
float psi_unit = Pa_unit*6894.76
 
float s_unit = 1.0
 
float t_unit = kg_unit*1e3
 
string time_unit = "s"
 

Detailed Description

Module with the units conversion and the definition of the units used as default (m, N, s).


Note that the decision of which unit for each measure (distance, force, mass, time) is equal to 1 is not arbitrary: for example the natural frequency is computed behind the scene by the OpenSeesPy framework, thus the stiffness of the structure divided by the mass should result in a unit of 1 (thus seconds).
Furthermore, there are constants like the gravitational one g that is dependent on this decision. If the units are used in a consistent way (using this library), these issues can be avoided.
Carmine Schipani, 2021

Variable Documentation

◆ cm2_unit

float cm2_unit = cm_unit*cm_unit

Definition at line 28 of file Units.py.

◆ cm3_unit

float cm3_unit = cm_unit*cm_unit*cm_unit

Definition at line 36 of file Units.py.

◆ cm4_unit

float cm4_unit = cm3_unit*cm_unit

Definition at line 44 of file Units.py.

◆ cm_unit

float cm_unit = m_unit*1e-2

Definition at line 19 of file Units.py.

◆ dm2_unit

float dm2_unit = dm_unit*dm_unit

Definition at line 29 of file Units.py.

◆ dm3_unit

float dm3_unit = dm_unit*dm_unit*dm_unit

Definition at line 37 of file Units.py.

◆ dm4_unit

float dm4_unit = dm3_unit*dm_unit

Definition at line 45 of file Units.py.

◆ dm_unit

float dm_unit = m_unit*1e-1

Definition at line 20 of file Units.py.

◆ force_unit

string force_unit = "N"

Definition at line 13 of file Units.py.

◆ ft2_unit

float ft2_unit = ft_unit*ft_unit

Definition at line 32 of file Units.py.

◆ ft3_unit

float ft3_unit = ft_unit*ft_unit*ft_unit

Definition at line 40 of file Units.py.

◆ ft4_unit

float ft4_unit = ft3_unit*ft_unit

Definition at line 48 of file Units.py.

◆ ft_unit

float ft_unit = m_unit*0.3048

Definition at line 23 of file Units.py.

◆ GN_unit

float GN_unit = N_unit*1e9

Definition at line 53 of file Units.py.

◆ GPa_unit

float GPa_unit = Pa_unit*1e9

Definition at line 73 of file Units.py.

◆ hours_unit

float hours_unit = min_unit*60

Definition at line 79 of file Units.py.

◆ inch2_unit

float inch2_unit = inch_unit*inch_unit

Definition at line 31 of file Units.py.

◆ inch3_unit

float inch3_unit = inch_unit*inch_unit*inch_unit

Definition at line 39 of file Units.py.

◆ inch4_unit

float inch4_unit = inch3_unit*inch_unit

Definition at line 47 of file Units.py.

◆ inch_unit

float inch_unit = m_unit*0.0254

Definition at line 22 of file Units.py.

◆ kg_unit

float kg_unit = N_unit*s_unit**2/m_unit

Definition at line 65 of file Units.py.

◆ kip_unit

float kip_unit = N_unit*4448.2216

Definition at line 54 of file Units.py.

◆ km_unit

float km_unit = m_unit*1e3

Definition at line 21 of file Units.py.

◆ kN_unit

float kN_unit = N_unit*1e3

Definition at line 51 of file Units.py.

◆ kNm_unit

float kNm_unit = kN_unit*m_unit

Definition at line 58 of file Units.py.

◆ kNmm_unit

float kNmm_unit = kN_unit*mm_unit

Definition at line 61 of file Units.py.

◆ kPa_unit

float kPa_unit = Pa_unit*1e3

Definition at line 71 of file Units.py.

◆ ksi_unit

float ksi_unit = psi_unit*1000

Definition at line 75 of file Units.py.

◆ length_unit

string length_unit = "m"

Definition at line 11 of file Units.py.

◆ m2_unit

float m2_unit = m_unit*m_unit

Definition at line 30 of file Units.py.

◆ m3_unit

float m3_unit = m_unit*m_unit*m_unit

Definition at line 38 of file Units.py.

◆ m4_unit

float m4_unit = m3_unit*m_unit

Definition at line 46 of file Units.py.

◆ m_unit

float m_unit = 1.0

Definition at line 10 of file Units.py.

◆ mile_unit

float mile_unit = m_unit*1609.34

Definition at line 24 of file Units.py.

◆ min_unit

float min_unit = s_unit*60

Definition at line 78 of file Units.py.

◆ mm2_unit

float mm2_unit = mm_unit*mm_unit

Definition at line 27 of file Units.py.

◆ mm3_unit

float mm3_unit = mm_unit*mm_unit*mm_unit

Definition at line 35 of file Units.py.

◆ mm4_unit

float mm4_unit = mm3_unit*mm_unit

Definition at line 43 of file Units.py.

◆ mm_unit

float mm_unit = m_unit*1e-3

Definition at line 18 of file Units.py.

◆ MN_unit

float MN_unit = N_unit*1e6

Definition at line 52 of file Units.py.

◆ MNm_unit

float MNm_unit = MN_unit*m_unit

Definition at line 59 of file Units.py.

◆ MNmm_unit

float MNmm_unit = MN_unit*mm_unit

Definition at line 62 of file Units.py.

◆ MPa_unit

float MPa_unit = Pa_unit*1e6

Definition at line 72 of file Units.py.

◆ N_unit

float N_unit = 1.0

Definition at line 12 of file Units.py.

◆ Nm_unit

float Nm_unit = N_unit*m_unit

Definition at line 57 of file Units.py.

◆ Nmm_unit

float Nmm_unit = N_unit*mm_unit

Definition at line 60 of file Units.py.

◆ Pa_unit

float Pa_unit = N_unit/m2_unit

Definition at line 70 of file Units.py.

◆ pound_unit

float pound_unit = kg_unit*0.45359237

Definition at line 67 of file Units.py.

◆ psi_unit

float psi_unit = Pa_unit*6894.76

Definition at line 74 of file Units.py.

◆ s_unit

float s_unit = 1.0

Definition at line 14 of file Units.py.

◆ t_unit

float t_unit = kg_unit*1e3

Definition at line 66 of file Units.py.

◆ time_unit

string time_unit = "s"

Definition at line 15 of file Units.py.