PyGamLab 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- PyGamLab/Constants.py +500 -0
- PyGamLab/Convertos.py +1728 -0
- PyGamLab/Data_Analysis.py +3623 -0
- PyGamLab/Functions.py +4507 -0
- PyGamLab/__init__.py +45 -0
- pygamlab-0.1.0.dist-info/METADATA +122 -0
- pygamlab-0.1.0.dist-info/RECORD +9 -0
- pygamlab-0.1.0.dist-info/WHEEL +5 -0
- pygamlab-0.1.0.dist-info/top_level.txt +1 -0
PyGamLab/Constants.py
ADDED
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
'''
|
|
2
|
+
Constants.py ==>
|
|
3
|
+
|
|
4
|
+
This module contains scientific constants intended for use throughout the package.
|
|
5
|
+
'''
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
#" IN GOD WE TRUST, ALL OTHERS MUST BRING DATA"
|
|
9
|
+
# -W. Edwards Deming
|
|
10
|
+
#------------------------------------------------------------------------------
|
|
11
|
+
# Copyright 2023 The Gamlab Authors. All Rights Reserved.
|
|
12
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
# you may not use this file except in compliance with the License.
|
|
14
|
+
# You may obtain a copy of the License at
|
|
15
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
# See the License for the specific language governing permissions and
|
|
20
|
+
# limitations under the License.
|
|
21
|
+
#------------------------------------------------------------------------------
|
|
22
|
+
'''
|
|
23
|
+
The Scientific experimental simulation library
|
|
24
|
+
-------------------------------------------------------------------------------
|
|
25
|
+
Graphen & Advanced Material Laboratory
|
|
26
|
+
|
|
27
|
+
it aimes to provide new scientist to use data,simlation, prepared data
|
|
28
|
+
and Artificial intelligence models.
|
|
29
|
+
|
|
30
|
+
See http://gamlab.aut.ac.ir for complete documentation.
|
|
31
|
+
'''
|
|
32
|
+
__doc__='''
|
|
33
|
+
|
|
34
|
+
@author: Ali Pilehvar Meibody (Alipilehvar1999@gmail.com)
|
|
35
|
+
|
|
36
|
+
888 888
|
|
37
|
+
.d8888b .d88b. 88888b.d88b. 888 .d88b. 888
|
|
38
|
+
d88P" d88""88b 888 "888 "88b 888 d88""88b 88888PP
|
|
39
|
+
888 8888 888 888 888 888 888 888 888 888 888 888
|
|
40
|
+
Y88b. 88 Y88..88PP. 888 888 888 888...... Y88..88PP. 888 888
|
|
41
|
+
"Y8888P8 "Y88P8888 888 888 888 888888888 "Y88P8888 88888888
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@Director of Gamlab: Professor M. Naderi (Mnaderi@aut.ac.ir)
|
|
45
|
+
|
|
46
|
+
@Graphene Advanced Material Laboratory: https://www.GamLab.Aut.ac.ir
|
|
47
|
+
|
|
48
|
+
'''
|
|
49
|
+
import math
|
|
50
|
+
|
|
51
|
+
#Constant-------------------------------------------
|
|
52
|
+
pi=3.1415926536
|
|
53
|
+
e=2.7182818284
|
|
54
|
+
c=299792458
|
|
55
|
+
N_a=6.022*10**23
|
|
56
|
+
R_J=8.3143
|
|
57
|
+
R_Cal=1.987
|
|
58
|
+
R_LA=0.08205
|
|
59
|
+
Pi=3.14
|
|
60
|
+
g=9.81
|
|
61
|
+
Tau=Pi*2
|
|
62
|
+
e=7.1828
|
|
63
|
+
pi = 3.14159
|
|
64
|
+
e = 2.71828
|
|
65
|
+
g = 9.81 # Gravitational constant
|
|
66
|
+
h = 6.634 * 10**-34 # constant pelank
|
|
67
|
+
k , b = 1.38 * 10 ** -23 # J/mjck constant of boltzman
|
|
68
|
+
tau = 6.28
|
|
69
|
+
R =0.08206 #unit = ((L*atm) / (mol*k)) # Global constant of gases
|
|
70
|
+
pi=3.14
|
|
71
|
+
ta=6.28
|
|
72
|
+
e=2.718
|
|
73
|
+
zeta=1.202
|
|
74
|
+
#Golden ratio
|
|
75
|
+
phi=1.618
|
|
76
|
+
N_a = 6.022*10**23 #molecules/mol (Avogadro's Number)
|
|
77
|
+
k = 1.381*10**(-23) #J/K (Boltzmann's Constant)
|
|
78
|
+
alpha = 5.67*10**(-8) #W/m^2/K^4 (Stefan-Boltzmann Constant)
|
|
79
|
+
R = 8.314 #J/mol/K (Gas costant)
|
|
80
|
+
h = 6.626*10**(-34) #J.s (Planck's Constant)
|
|
81
|
+
c = 2.998*10**8 #m/s (speed of light)
|
|
82
|
+
pi=3.14
|
|
83
|
+
R=8.314
|
|
84
|
+
Na=6.022*(10**23)
|
|
85
|
+
e=2.7182818284590452353602874713527
|
|
86
|
+
Boltzmann_Constant=1.380649*(10**(-23))
|
|
87
|
+
Conductivity_PPY=105
|
|
88
|
+
Conductivity_pT=33.7
|
|
89
|
+
Conductivity_P3HT=2.4
|
|
90
|
+
Conductivity_PLN=10
|
|
91
|
+
Kw = 1*10**-14 # Autoionization constant for water at 25°C
|
|
92
|
+
Fe_Tm_Alpha=910
|
|
93
|
+
'دمای ذوب آهن در فاز آلفا است'
|
|
94
|
+
|
|
95
|
+
Fe_Tm_Gama=1495
|
|
96
|
+
'دمای ذوب آهن در فاز گاما است'
|
|
97
|
+
|
|
98
|
+
Fe_Tm_Delta=1539
|
|
99
|
+
'دمای ذوب آهن در فاز دلتا است'
|
|
100
|
+
|
|
101
|
+
Fe_Density=7.87
|
|
102
|
+
'چگالی آهن و فولاد'
|
|
103
|
+
|
|
104
|
+
max_C_inSteel=2.11
|
|
105
|
+
'بیشترین درصد کربن در فولاد'
|
|
106
|
+
'در واقع بیشتر از این مقدار کربن وارد فولاد شود به چدن تبدیل میشود'
|
|
107
|
+
|
|
108
|
+
Eutectic_T=1148
|
|
109
|
+
'دمای واکنش یوتکتیک در دیاگرام آهن کربن'
|
|
110
|
+
|
|
111
|
+
Eutectic_Percent=4.3
|
|
112
|
+
'درصد کربن در فولاد که در آن واکنش یوتکتیک رخ میدهد'
|
|
113
|
+
|
|
114
|
+
Eutectoid_T=727
|
|
115
|
+
'دمای واکنش یوتکتوئید'
|
|
116
|
+
|
|
117
|
+
Eutectoid_persent=0.76
|
|
118
|
+
'درصد کربن در واکنش یوتکتوئید'
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
Pi=3.14159265358979323846264338327950288419716939937510
|
|
122
|
+
C=299792458
|
|
123
|
+
#m/s; speed of light in vacuum
|
|
124
|
+
R= 8.314510
|
|
125
|
+
#J/(mol*K); molar gas constant
|
|
126
|
+
g0=9.81 #m/s2
|
|
127
|
+
|
|
128
|
+
density_of_Fe=7.87
|
|
129
|
+
'Here, density of Fe is reported in g per cubic cm'
|
|
130
|
+
|
|
131
|
+
density_of_Al=2.7
|
|
132
|
+
'Here, density of Al is reported in g per cubic cm'
|
|
133
|
+
|
|
134
|
+
density_of_Cu=8.96
|
|
135
|
+
'Here, density of Cu is reported in g per cubic cm'
|
|
136
|
+
|
|
137
|
+
melting_point_of_Fe=1538
|
|
138
|
+
'Here, melting point of Fe is reported in kelvin'
|
|
139
|
+
|
|
140
|
+
melting_point_of_Al=660
|
|
141
|
+
'Here, melting point of Al is reported in kelvin'
|
|
142
|
+
|
|
143
|
+
melting_point_of_Cu=1085
|
|
144
|
+
'Here, melting point of Cu is reported in kelvin'
|
|
145
|
+
|
|
146
|
+
thermal_conductivity_coefficient_of_Fe=221
|
|
147
|
+
'Here, thermal conductivity coefficient of Fe is reported in W/mK'
|
|
148
|
+
|
|
149
|
+
thermal_conductivity_coefficient_of_Al=237
|
|
150
|
+
'Here, thermal conductivity coefficient of Al is reported in W/mK'
|
|
151
|
+
|
|
152
|
+
thermal_conductivity_coefficient_of_Cu=385
|
|
153
|
+
'Here, thermal conductivity coefficient of Cu is reported in W/mK'
|
|
154
|
+
R = 8.314 #Ideal Gas constant (J/mol.K)
|
|
155
|
+
h = 6.626 * (10 ** (-34)) #Plank's constant (J.s)
|
|
156
|
+
NA = 6.022 * (10 ** (23)) #Avagadro's constant (molecules per mole)
|
|
157
|
+
k = 1.381 * (10 ** (-23)) #Boltzman constant (J/K)
|
|
158
|
+
c = 3.00 * (10 ** (8)) #Speed of Light is a Vacuum (m/s)
|
|
159
|
+
G = 6.674 * (10 ** (-11)) #Universal Gravitational constant ((m^3)/(kg.(s^2)))
|
|
160
|
+
F = 96485 #Faraday's constant (C/mol)
|
|
161
|
+
|
|
162
|
+
# Define molecular weights of composite materials
|
|
163
|
+
G_Mol_Si = 28.09 #silicium
|
|
164
|
+
G_Mol_O = 16.00 #oxygen
|
|
165
|
+
G_Mol_Ba = 137.33 #barium
|
|
166
|
+
G_Mol_Zr = 91.22 #zirconium
|
|
167
|
+
G_Mol_Ti = 47.87 #titanium
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
k= 534.6
|
|
171
|
+
F=96485
|
|
172
|
+
R=8.314
|
|
173
|
+
g=23
|
|
174
|
+
|
|
175
|
+
F=100
|
|
176
|
+
Zf=0.25
|
|
177
|
+
Xd=0.95
|
|
178
|
+
Xw=0.05
|
|
179
|
+
R=5
|
|
180
|
+
alpha=3
|
|
181
|
+
q=0.7
|
|
182
|
+
|
|
183
|
+
#dae in ja ma yekseri aadad sabet taeerif kardim
|
|
184
|
+
Avogadro_Number=6.02*10**23
|
|
185
|
+
#(mol) adad avogadro
|
|
186
|
+
|
|
187
|
+
Speed_Of_Light=2.99*10**8
|
|
188
|
+
#(m/s) sorat noor--->c
|
|
189
|
+
|
|
190
|
+
Electron_Charge=1.6*10**19
|
|
191
|
+
#(C) bar electeron
|
|
192
|
+
|
|
193
|
+
Faraday_Constant=9.64*10**4
|
|
194
|
+
#C/mol sabet faraday
|
|
195
|
+
|
|
196
|
+
Earth_Accel=9.8
|
|
197
|
+
#(m/s**2) geranesh zamin
|
|
198
|
+
|
|
199
|
+
Planck_constant=6.626*10**(-34) #js#
|
|
200
|
+
R=8.314 #J/mol.K#
|
|
201
|
+
Faraday_constant= 96485 #C/mol#
|
|
202
|
+
Boltzman_constany= 1.381*10**(-23) #J/K#
|
|
203
|
+
Avogardo_Num=6.022*10**(23) #mol^-1#
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
#Standard_Atmospheric_Pressure
|
|
207
|
+
P_0=101325#(Pa)
|
|
208
|
+
|
|
209
|
+
#Plank's_Constant
|
|
210
|
+
h=6.62607015e-34 #(J.s)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
#Boltzmann_constant
|
|
214
|
+
K=1.380649e-23 #(J/K)
|
|
215
|
+
|
|
216
|
+
#Avogadro's_constant
|
|
217
|
+
N_A=6.022e23 #(without unit)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
Latent_heat = 1.16 * (10 ** 9)
|
|
221
|
+
Gama_sl = 0.132
|
|
222
|
+
T_m = 1064 #in centigrade
|
|
223
|
+
A = 0.413 #in nano meter
|
|
224
|
+
Pi = 3.14
|
|
225
|
+
K = 1.38 * (10 ** (-23)) #Boltzmann constant
|
|
226
|
+
N_t = 3 * (10 ** 33)
|
|
227
|
+
|
|
228
|
+
N_a = 6.022*10**23 #molecules/mol (Avogadro's Number)
|
|
229
|
+
k = 1.381*10**(-23) #J/K (Boltzmann's Constant)
|
|
230
|
+
alpha = 5.67*10**(-8) #W/m^2/K^4 (Stefan-Boltzmann Constant)
|
|
231
|
+
R = 8.314 #J/mol/K (Gas costant)
|
|
232
|
+
h = 6.626*10**(-34) #J.s (Planck's Constant)
|
|
233
|
+
c = 2.998*10**8 #m/s (speed of light)
|
|
234
|
+
|
|
235
|
+
#IE_Constants
|
|
236
|
+
|
|
237
|
+
k=1.96 #k=Z(0.05) Normal Standard Distribution
|
|
238
|
+
pf=0.6209 #f(P/F , i% , n) = 0.6209 for i=10% and n=5
|
|
239
|
+
ag=3.1936 #f(A/G , i% , n) = 3.1936 for i=18% and n=10
|
|
240
|
+
t_stu=0.9277 #T-Student Distribution for x=1.5 and n=30 (degree freedom 29)
|
|
241
|
+
d=1.128 #Constant coefficients for n=2
|
|
242
|
+
|
|
243
|
+
R=8.314 ##gas constant in J/mol.K
|
|
244
|
+
D=2.3*(10**(-5)) ##oxygen diffusion coefficient in water μm2/s
|
|
245
|
+
S=28.34 ##standard enthropy for solid alumminuim in J/mol.K
|
|
246
|
+
k=1.38*(10**(-23)) ##boltzmann constant for gas particle kinetic energy
|
|
247
|
+
Tm=14.025 ## hydrojen melting point in K
|
|
248
|
+
|
|
249
|
+
vacuum_permeability=1
|
|
250
|
+
π=3.14
|
|
251
|
+
G=6.674 * 10^-11
|
|
252
|
+
e=2.71828
|
|
253
|
+
k=9*10**9
|
|
254
|
+
|
|
255
|
+
R_J=8.314 #J/mol.K : The molar gas constant or ideal gas constant.
|
|
256
|
+
R_Lit=0.08 #Lit.atm/mol.K
|
|
257
|
+
R_cal=1.98 #Cal/mol.K
|
|
258
|
+
R_cm3=82.06 #cm^3.atm/mol.K
|
|
259
|
+
C_V_J_1=12.471 #J/mol.K :The Monoatomic ideal gas constant-VOLUME specific heat.:: C_V=1.5R
|
|
260
|
+
C_V_J_2=20.785 #J/mol.K :The Diatomic ideal gas constant-VOLUME specific heat.:: C_V=2.5R
|
|
261
|
+
C_V_J_more=29.099 #J/mol.K :The Polyatomic ideal gas constant-VOLUME specific heat.:: C_V=3.5R
|
|
262
|
+
C_V_Cal_1=2.97 #Cal/mol.K :The Monoatomic ideal gas constant-VOLUME specific heat.:: C_V=1.5R
|
|
263
|
+
C_V_Cal_2=4.95 #Cal/mol.K :The Diatomic ideal gas constant-VOLUME specific heat.:: C_V=2.5R
|
|
264
|
+
C_V_Cal_more=6.93 #Cal/mol.K :The Polyatomic ideal gas constant-VOLUME specific heat.:: C_V=3.5R
|
|
265
|
+
C_P_J_1=20.785 #J/mol.K :The Monoatomic ideal gas constant-PRESSURE specific heat.:: C_P=2.5R
|
|
266
|
+
C_P_J_2=29.099 #J/mol.K :The Diatomic ideal gas constant-PRESSURE specific heat.:: C_P=3.5R
|
|
267
|
+
C_P_J_more=37.413 #J/mol.K :The Polyatomic ideal gas constant-PRESSURE specific heat. :: C_V=4.5R
|
|
268
|
+
C_P_Cal_1=4.95 #Cal/mol.K :The Monoatomic ideal gas constant-PRESSURE specific heat.:: C_P=2.5R
|
|
269
|
+
C_P_Cal_2=6.93 #Cal/mol.K :The Diatomic ideal gas constant-PRESSURE specific heat.:: C_P=3.5R
|
|
270
|
+
C_P_Cal_more=8.91 #Cal/mol.K :The Polyatomic ideal gas constant-PRESSURE specific heat. :: C_V=4.5R
|
|
271
|
+
Pi=3.14 #The number π is a mathematical constant that is the ratio of a circle's circumference to its diameter.
|
|
272
|
+
h=6.62*10**(-34) #kg.m^2/s
|
|
273
|
+
R = 8.314 # Gas constant --> j/mol*k
|
|
274
|
+
|
|
275
|
+
a = 6.0232 * (10**23) # Avogadro constant --> 1/mol
|
|
276
|
+
|
|
277
|
+
k = 1.38054 * (10**23) # Boltzmann constant --> joules/degree
|
|
278
|
+
|
|
279
|
+
F = 2306 # Faraday constant --> calories/volt*mol
|
|
280
|
+
|
|
281
|
+
h = 6626068 * (10**34) # Planck constant --> J*s
|
|
282
|
+
|
|
283
|
+
c = 4.18 # Specific heat capacity of liquid water
|
|
284
|
+
|
|
285
|
+
m = 9.1093837015 * (10**(-34)) # Electron mass --> kg
|
|
286
|
+
|
|
287
|
+
k=1.38054*10**-23
|
|
288
|
+
# k is Boltzman constant and in terms jouls/degree
|
|
289
|
+
|
|
290
|
+
R=8.314
|
|
291
|
+
# R is gasses constant in terms jouls/degree,mole
|
|
292
|
+
|
|
293
|
+
F=23060
|
|
294
|
+
# F is Faraday constant in terms calories/Volt.mole
|
|
295
|
+
|
|
296
|
+
a=6.0232*10**23
|
|
297
|
+
# a is Avogadro constant in terms /gr.mole
|
|
298
|
+
|
|
299
|
+
h=6.62607015*10**-34
|
|
300
|
+
# h is Planck's constant in terms kg.m2.s-1
|
|
301
|
+
|
|
302
|
+
G=6.674*10*-11
|
|
303
|
+
# G is universal gravitational constant
|
|
304
|
+
|
|
305
|
+
Boltzmann_Constant=1.380649*(10**(-23)) #joule per kelvin (J/K)
|
|
306
|
+
Avogadro_Constant=6.02214*(10**23) #per moles (mol-1)
|
|
307
|
+
Faraday_Constant=96485.3399 #coulombs per mole of electrons (C/mol)
|
|
308
|
+
Planck_Constant=6.62607015*(10**(-34)) #joule second (J.s)
|
|
309
|
+
Elementary_Charge=1.602176634*(10**(-19)) #coulombs (C)
|
|
310
|
+
Light_Speed_Constant=299792458 #meters per second (m/s)
|
|
311
|
+
|
|
312
|
+
### constnats
|
|
313
|
+
me = 9.11e-31 # Electron Rest Mass Kg
|
|
314
|
+
mp = 1.67264e-27 # Proton Rest Mass kg
|
|
315
|
+
e = 1.60218e-19 # Elementary Charge C(coulomb)
|
|
316
|
+
c = 2.99792e8 # Speed of Light in Vacuum m/s
|
|
317
|
+
h = 6.62617e-34 # Planck Constant J-s(joule-seconds)
|
|
318
|
+
ħ = 1.05458e-34 # Reduced Planck Constant (ħ = h/2π)
|
|
319
|
+
k = 1.38066e-23 # Boltzmann Constant J/K (joules per kelvin)
|
|
320
|
+
eV = 1.60218e-19 # Electron Volt J (joules)
|
|
321
|
+
|
|
322
|
+
#section one
|
|
323
|
+
E0=8.8541878128*10**(-12) #vacuum permittivity
|
|
324
|
+
u0=1.256637061436*10**(-6) #vacuum permeability
|
|
325
|
+
h=6.626068*10**(-34) #planck constant
|
|
326
|
+
k=1.380649*10**(-23) #boltzman constant
|
|
327
|
+
Ke=8.9879*10**(9) #coulomb constant
|
|
328
|
+
|
|
329
|
+
g=6.673*10**-11 #(N.m**2/kg**2)Gravitational_constant
|
|
330
|
+
G=6.673*10**-11 #(N.m**2/kg**2)Gravitational_constant
|
|
331
|
+
m_earth=5.972*(10**24) #(kg)Mass_of_Earth
|
|
332
|
+
m_sun=1.989*(10**30) #(kg)Mass_of_the_Sun
|
|
333
|
+
m_mars=6.41693*(10**23) #kg)Mass_of_the_Mars
|
|
334
|
+
r_earth_sun=1.496*(10**11) #(m)Average_distance_from_Earth_to_the_Sun
|
|
335
|
+
r_mars_sun=220.14*(10**9) #(m)Average_distance_from_Mars_to_the_Sun
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
B = 1.38e-23 # Boltzman constant J/k
|
|
339
|
+
EC = 1.602e-19 # Electron charge C
|
|
340
|
+
Er = 2.81792e-15 # Electron radius m
|
|
341
|
+
FC = 9.648e4 # Faraday constant C/mol
|
|
342
|
+
PC = 6.626e-34 # Plank constant Js
|
|
343
|
+
AG = 9.8 # Acceleration gravity m/s^2
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
NA = 6.02214076 * (10 ** 23) #Avogadro constant (1/mol)
|
|
348
|
+
h = 6.62607015 * (10 ** -34) #Planck constant (J/Hz)
|
|
349
|
+
k = 1.380649 * (10 ** -23) #Boltzmann constant (J/K)
|
|
350
|
+
F = 96485.3321233100184 #Faraday constant (C/mol)
|
|
351
|
+
c = 2.99792458 * (10 ** 8) #Light speed in vacuum (m/s)
|
|
352
|
+
|
|
353
|
+
N=6.02214*math.pow(10,23)
|
|
354
|
+
#Avogadro Number, 1/mole
|
|
355
|
+
R=8.3145
|
|
356
|
+
#Universal Gas Constant, j/(mol.K)
|
|
357
|
+
Kb=1.380649*math.pow(10,-23)
|
|
358
|
+
#Boltzmann Constant, j/K
|
|
359
|
+
Ksb=5.67*math.pow(10,-8)
|
|
360
|
+
#Stephan-Boltzmann Constant, W/(k^4.m^2)
|
|
361
|
+
h=6.6236*math.pow(10,-36)
|
|
362
|
+
#Planck Constant, j.s
|
|
363
|
+
|
|
364
|
+
LEARNING_RATE = 0.01
|
|
365
|
+
MAX_DEPTH = 10
|
|
366
|
+
DEFAULT_TIMEOUT = 30
|
|
367
|
+
CACHE_SIZE = 1024
|
|
368
|
+
#Avogadro Number (1/mol)
|
|
369
|
+
NA=6.22*10**23
|
|
370
|
+
|
|
371
|
+
#Faraday Constant (C/mol)
|
|
372
|
+
F= 96485.33
|
|
373
|
+
|
|
374
|
+
#Atomic Mass Comstant
|
|
375
|
+
amu=1.660538*10**(-27)
|
|
376
|
+
|
|
377
|
+
#Gas Constant (J/(mol.K))
|
|
378
|
+
R=8.3144
|
|
379
|
+
|
|
380
|
+
#Planck Constant (J.s)
|
|
381
|
+
h=6.626*10**(-34)
|
|
382
|
+
|
|
383
|
+
#Molar Volume of an Ideal Gas at STP (L/mol)
|
|
384
|
+
MV=22.414
|
|
385
|
+
|
|
386
|
+
#Electron Mass (kg)
|
|
387
|
+
me=9.109*10**(-31)
|
|
388
|
+
|
|
389
|
+
#Proton Mass (kg)
|
|
390
|
+
mp=1.673*10**(-27)
|
|
391
|
+
|
|
392
|
+
#Neutron Mass (kg)
|
|
393
|
+
mn=1.675*10**(-27)
|
|
394
|
+
|
|
395
|
+
eps=2.2204e-16 # epsilon
|
|
396
|
+
e=2.71828 # adad Neper
|
|
397
|
+
pi=3.14
|
|
398
|
+
phi=1.618033 # Golden Ratio
|
|
399
|
+
G=6.67e-11 # Gravitational constant
|
|
400
|
+
g=9.82 #shetab Geranesh
|
|
401
|
+
|
|
402
|
+
N=6.02214076*(10**23) #Avagadro's Number
|
|
403
|
+
R=8.3145 #Gas Constant
|
|
404
|
+
K=1.380649*(10**-23) #Boltzmann constant
|
|
405
|
+
e=2.71828 #Euler's Number
|
|
406
|
+
# Ideal gas constant
|
|
407
|
+
R = 8.314 # J/mole.K
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
#Avogadro's number
|
|
411
|
+
NA = 6.023*10**23
|
|
412
|
+
|
|
413
|
+
# Faraday's Constant
|
|
414
|
+
F= 96485 #C/mole
|
|
415
|
+
#Boltzmann Constant
|
|
416
|
+
k_B = 1.381*10**-23 #J/K
|
|
417
|
+
#Planck's Constant
|
|
418
|
+
h = 6.626*10**-34 #JS
|
|
419
|
+
|
|
420
|
+
Electron_Charge_Constant=1.602*(10**-19)
|
|
421
|
+
Universal_Gas_Constant=8.314
|
|
422
|
+
Avogadro_Num=6.022*(10**23)
|
|
423
|
+
Planck_Constant=6.62607*(10**-34)
|
|
424
|
+
Young_Modulus_Steel=200
|
|
425
|
+
|
|
426
|
+
E=190 #Young's modulus of steel at room temperature (GPA).
|
|
427
|
+
e=1 #Coefficient of restitution for perfectly elastic collision.
|
|
428
|
+
K=2.1 #Bulk's modulus of water at room temperature (GPA).
|
|
429
|
+
air_p=1013.25 #Air pressure at sea level (hPA).
|
|
430
|
+
g=9.81 #The acceleration due to gravity, Near Earth's surface (m/s2).
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
S_F=1.5 #Safety factor considered for calculation of weld permitted stress
|
|
434
|
+
W_F=0.85 #Weld factor considered for calculation of weld permitted stress
|
|
435
|
+
H_E=.9 #Heat efficiency considered for calculation of the heat input for gas metal arc welding
|
|
436
|
+
Z_L_F=0.7 #Z-loss factor considered for calculation of fillet weld size for horizontal welding position and joint angle of 20 degrees
|
|
437
|
+
B_K=0.8 #A constant considered for calculation of a column's free length under buckling
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
Melting_Iron=1538
|
|
441
|
+
Peritectic_Reaction=1495
|
|
442
|
+
Eutectic_Point=1147
|
|
443
|
+
A3=912
|
|
444
|
+
Eutectoid_Reaction=727
|
|
445
|
+
|
|
446
|
+
R = 0.0821 #universal gas constant in L.atm/(K.mole)
|
|
447
|
+
n = 1.0 #mole
|
|
448
|
+
V = 22.4 #the Volume of the ideal gas in room temp (L)
|
|
449
|
+
T = 298.15 #Room Temperature (K)
|
|
450
|
+
a = 1.39 #پارامتر ثابت برای گاز نیتروژن در معادله واندروالس L^2.atm/mole^2
|
|
451
|
+
b = 39.1 #پارامتر ثابت برای گاز نیتروژن در معادله واندروالس cm^3/mole
|
|
452
|
+
surface_crack_value = 1.12 #ضریب کالیبراسیون برای ترک سطحی یا خارجی
|
|
453
|
+
circule_crack_value = 2/3.1415 #ضریب کالیبراسیون برای ترک سکه ای
|
|
454
|
+
internal_crack_value = 1 #ضریب کالیبراسیون برای ترک داخلی
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
fib_number=1.618 #adad fibonacci
|
|
459
|
+
byte_bits=8 #tedad bit haye mojod dar yek tabe
|
|
460
|
+
max_byte=225 #max meghdar yek byte
|
|
461
|
+
boolean_number=1 #meghdar boole ke dar donyaye digital 1=true hast
|
|
462
|
+
binary_base=2 #adad ke kol sestemeh kamputer roye an sakhte shode
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
R = 8.314 # ideal gas constant (J/mol.K)
|
|
468
|
+
c = 2.998e+8 # speed of light in vacun (m/s)
|
|
469
|
+
N0 = 6.022e+23 # Avogadro's number
|
|
470
|
+
h = 6.6256e-34 # plank's constant (J/Hz)
|
|
471
|
+
k = 1.38054e+23 # boltzmann constant (J/K)
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
Avogadro_Number=6.02214076e23 # mol^-1 (Avogadro's number: the quantity of defined entities (particles, atoms, molecules, etc) that contained in one mole of a substance).
|
|
476
|
+
|
|
477
|
+
Boltzmann_Constant=1.380649e-23 # J/K (Boltzmann constant: relates the average kinetic energy of particles in a gas to the absolute temperature).
|
|
478
|
+
|
|
479
|
+
Aluminum_Kalpha_Energy=1486.6 # eV (Energy of the Kα X-ray emission line from an aluminum anode, commonly used in XPS analysis).
|
|
480
|
+
|
|
481
|
+
Redox_Potential_H2O_OH_radical=1.97 # eV (Standard redox potential of the H2O/·OH couple at neutral pH, indicating the high oxidizing power of hydroxyl radicals).
|
|
482
|
+
|
|
483
|
+
Energy_free_electrons=4.5 # eV (Energy of free electrons on the Standard Hydrogen Electrode (SHE) scale).
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
Universal_Gas_Constant = 8.314 #IN Ideal gases this number relates to pressure,volume and temprature
|
|
488
|
+
Rydberg_Cpnstant = 1.097*10**7 #Relates to wavelength of spectral of hdrogen.
|
|
489
|
+
Fine_Structure_Constant = 1.137 #Relates to strength of electromagnetic interaction beetween elementry charged particles.
|
|
490
|
+
Permeabeability_Of_Free_Space =4*pi*10**(-7) #Relates to magnetic fields and forces.
|
|
491
|
+
Permittivity_Of_Free_Space = 8.85*10**(-12) #Relates to electric fields and forces
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
R=8.314 #in j/mol.k which constant of gases
|
|
495
|
+
K=1.38e-23 #Boltzman constant, unit is j/kelvin
|
|
496
|
+
h=6.626e-34 #Plank's constant j/Herz
|
|
497
|
+
gas_molar_volume=22.4 # liters per mole in STP
|
|
498
|
+
e=1.6e-19 #amount of charge in one electron ,unit: Coulomb
|
|
499
|
+
|
|
500
|
+
|