-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUnits.py
53 lines (42 loc) · 892 Bytes
/
Units.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 26 18:27:22 2022
@author: onurulku
"""
# TODO herbirini ayrı fonksiyon yap
# Define units
# ------------------------------------------------------------------------
# Basic Units
m = 1.0
kN = 1.0
sec = 1.0
# Length
mm = m / 1000.0
cm = m / 100.0
inch = 25.4 * mm
ft = 12.0 * inch
# Force
N = kN / 1000.0
kips = kN * 4.448221615
lb = kips / 1.0e3
# Stress (kN/m2 or kPa)
Pa = N / (m ** 2)
kPa = Pa * 1.0e3
MPa = Pa * 1.0e6
GPa = Pa * 1.0e9
ksi = 6.8947573 * MPa
psi = 1e-3 * ksi
# Mass - Weight
tonne = kN * sec ** 2 / m
kg = N * sec ** 2 / m
lb = psi*inch**2
# Gravitational acceleration
g = 9.81*m/sec**2
# Time
minute = 60*sec
hr = 60*minute
concrete_density = 2.4 * g * kN / (m ** 3)
# Wall densities:
# Inner walls:
wall_density = (2.5 * kN / (m ** 2))