PyGamLab 0.1.1__py3-none-any.whl → 0.1.2__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/__init__.py +1 -1
- {pygamlab-0.1.1.dist-info → pygamlab-0.1.2.dist-info}/METADATA +43 -37
- pygamlab-0.1.2.dist-info/RECORD +9 -0
- pygamlab-0.1.1.dist-info/RECORD +0 -9
- /PyGamLab/{Convertos.py → Convertors.py} +0 -0
- {pygamlab-0.1.1.dist-info → pygamlab-0.1.2.dist-info}/WHEEL +0 -0
- {pygamlab-0.1.1.dist-info → pygamlab-0.1.2.dist-info}/top_level.txt +0 -0
PyGamLab/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyGamLab
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: A scientific Python library with constants, unit convertors, formulas, and data analysis tools.
|
|
5
5
|
Home-page: https://github.com/APMaii/pygamlab/tree/main
|
|
6
6
|
Author: Ali Pilehvar Meibody
|
|
@@ -31,10 +31,10 @@ Dynamic: requires-python
|
|
|
31
31
|
|
|
32
32
|
## 📌 Overview
|
|
33
33
|
|
|
34
|
-
**PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at
|
|
34
|
+
**PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab (Graphene and Advanced Material Laboratory)** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at **Amirkabir University of Technology (AUT)**.
|
|
35
35
|
|
|
36
36
|
- **Author:** Ali Pilehvar Meibody
|
|
37
|
-
- **Supervisor:** Prof. Naderi
|
|
37
|
+
- **Supervisor:** Prof. Malek Naderi
|
|
38
38
|
- **Affiliation:** GAMLab, Amirkabir University of Technology (AUT)
|
|
39
39
|
|
|
40
40
|
---
|
|
@@ -115,7 +115,7 @@ pip install numpy pandas scipy matplotlib seaborn scikit-learn
|
|
|
115
115
|
|
|
116
116
|
## 🚀 Installation
|
|
117
117
|
|
|
118
|
-
To install PyGAMLab via pip
|
|
118
|
+
To install PyGAMLab via pip:
|
|
119
119
|
|
|
120
120
|
```bash
|
|
121
121
|
pip install pygamlab
|
|
@@ -134,49 +134,64 @@ git clone https://github.com/APMaii/pygamlab.git
|
|
|
134
134
|
```python
|
|
135
135
|
import PyGamLab
|
|
136
136
|
|
|
137
|
-
#--------------Constants-----------------------
|
|
138
137
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
import PyGamLab.Constants as gamcn
|
|
139
|
+
import PyGamLab.Convertos as gamcv
|
|
140
|
+
import PyGamLab.Functions as gamfunc
|
|
141
|
+
import PyGamLab.Data_Analysis as gamdat
|
|
142
|
+
|
|
143
143
|
|
|
144
|
-
print(PyGamLab.Constants.Boltzmann_Constant)
|
|
145
|
-
print(PyGamLab.Constants.Faraday_Constant)
|
|
146
144
|
|
|
147
|
-
|
|
145
|
+
#--------------Constants-----------------------
|
|
146
|
+
|
|
147
|
+
print(gamcn.melting_point_of_Cu)
|
|
148
|
+
print(gamcn.melting_point_of_Al)
|
|
149
|
+
print(gamcn.Fe_Tm_Alpha)
|
|
150
|
+
print(gamcn.Fe_Tm_Gama)
|
|
148
151
|
|
|
149
|
-
print(
|
|
150
|
-
print(
|
|
151
|
-
print(PyGamLab.Convertos.Angstrom_To_Milimeter())
|
|
152
|
-
print(PyGamLab.Convertos.Bar_To_Pascal())
|
|
152
|
+
print(gamcn.Boltzmann_Constant)
|
|
153
|
+
print(gamcn.Faraday_Constant)
|
|
153
154
|
|
|
154
|
-
#------------Functions-----------------------
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
#----------Converters------------------------
|
|
157
157
|
|
|
158
|
+
print(gamcv.Kelvin_to_Celcius(300)) # Convert 300 K to °C
|
|
159
|
+
print(gamcv.Coulomb_To_Electron_volt(1)) # Convert 1 Coulomb to eV
|
|
160
|
+
print(gamcv.Angstrom_To_Milimeter(1)) # Convert 1 Å to mm
|
|
161
|
+
print(gamcv.Bar_To_Pascal(1)) # Convert 1 bar to Pascal
|
|
158
162
|
|
|
159
|
-
|
|
163
|
+
#-----------Functions------------------------
|
|
160
164
|
|
|
165
|
+
# Gibb's Free Energy: G = H0 - T*S0
|
|
166
|
+
H0 = 100 # Enthalpy in kJ/mol
|
|
167
|
+
T = 298 # Temperature in Kelvin
|
|
168
|
+
S0 = 0.2 # Entropy in kJ/mol·K
|
|
169
|
+
print(gamfunc.Gibs_free_energy(H0, T, S0))
|
|
161
170
|
|
|
162
|
-
PyGamLab.Functions.Electrical_Resistance(v,i)
|
|
163
171
|
|
|
172
|
+
# Electrical Resistance: R = V / I
|
|
173
|
+
voltage = 10 # in Volts
|
|
174
|
+
current = 2 # in Amperes
|
|
175
|
+
print(gamfunc.Electrical_Resistance(voltage, current))
|
|
164
176
|
|
|
165
|
-
|
|
177
|
+
# Hall-Petch Relationship: σ = σ0 + k / √d
|
|
178
|
+
d_grain = 0.01 # Grain diameter in mm
|
|
179
|
+
sigma0 = 150 # Friction stress in MPa
|
|
180
|
+
k = 0.5 # Strengthening coefficient in MPa·mm^0.5
|
|
181
|
+
print(gamfunc.Hall_Petch(d_grain, sigma0, k))
|
|
166
182
|
|
|
167
183
|
#-----------Data_Analysis--------------------
|
|
168
184
|
import pandas as pd
|
|
169
185
|
|
|
170
186
|
df= pd.read_csv('/users/apm/....../data.csv')
|
|
171
|
-
|
|
172
|
-
my_uts=
|
|
187
|
+
gamdat.Stress_Strain1(df, 'PLOT')
|
|
188
|
+
my_uts=gamdat.Stress_Strain1(df, 'UTS')
|
|
173
189
|
|
|
174
190
|
|
|
175
191
|
data=pd.read_csv('/users/apm/....../data.csv')
|
|
176
|
-
my_max=
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
192
|
+
my_max=gamdat.Xrd_Analysis(data,'max intensity')
|
|
193
|
+
gamdat.Xrd_Analysis(data,'scatter plot')
|
|
194
|
+
gamdat.Xrd_Analysis(data,'line graph')
|
|
180
195
|
```
|
|
181
196
|
|
|
182
197
|
|
|
@@ -195,15 +210,6 @@ pygamlab/
|
|
|
195
210
|
```
|
|
196
211
|
|
|
197
212
|
|
|
198
|
-
---
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
213
|
---
|
|
208
214
|
## 🤝 Contributing
|
|
209
215
|
|
|
@@ -243,7 +249,7 @@ This project is part of the scientific research activities at **GAMLab (Generali
|
|
|
243
249
|
|
|
244
250
|
Special thanks to:
|
|
245
251
|
|
|
246
|
-
- **Prof.
|
|
252
|
+
- **Prof. Malek Naderi** – For his guidance, mentorship, and continuous support.
|
|
247
253
|
- **Ali Pilehvar Meibody** – Main developer and author of PyGamLab.
|
|
248
254
|
- **GAMLab Research Group** – For providing a collaborative and innovative environment.
|
|
249
255
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
PyGamLab/Constants.py,sha256=hupfOwj-2ofXWSPvsdO_WZgyKxoCTZl_Uxq3uB3C-yw,16927
|
|
2
|
+
PyGamLab/Convertors.py,sha256=f2-hfi1jJOeWBrCWJBWiRGZfPy3uhROHKj_iIvlOmA4,31575
|
|
3
|
+
PyGamLab/Data_Analysis.py,sha256=-hlQE3APk2eVwwZuMvMRdqSeV_pwkMq9a85v71zvLVw,109917
|
|
4
|
+
PyGamLab/Functions.py,sha256=fFZ2nCMtDHsEKqfDbLd8fJWPnFQzaS5V8CrJ-Y4Rde8,111881
|
|
5
|
+
PyGamLab/__init__.py,sha256=jHdOhcf_piREoQBOOrbu34ptt0Z0i1GUjfrbZCspIuc,1959
|
|
6
|
+
pygamlab-0.1.2.dist-info/METADATA,sha256=mSxCNRDDZmiJwFxr1TyN3KQhB_zzzLvkklKBHG-YDdk,6705
|
|
7
|
+
pygamlab-0.1.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
8
|
+
pygamlab-0.1.2.dist-info/top_level.txt,sha256=E5IBZwx9PoAR8NyXgNAT3iUIuGvYfJlfyOKQY1sNkXU,9
|
|
9
|
+
pygamlab-0.1.2.dist-info/RECORD,,
|
pygamlab-0.1.1.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
PyGamLab/Constants.py,sha256=hupfOwj-2ofXWSPvsdO_WZgyKxoCTZl_Uxq3uB3C-yw,16927
|
|
2
|
-
PyGamLab/Convertos.py,sha256=f2-hfi1jJOeWBrCWJBWiRGZfPy3uhROHKj_iIvlOmA4,31575
|
|
3
|
-
PyGamLab/Data_Analysis.py,sha256=-hlQE3APk2eVwwZuMvMRdqSeV_pwkMq9a85v71zvLVw,109917
|
|
4
|
-
PyGamLab/Functions.py,sha256=fFZ2nCMtDHsEKqfDbLd8fJWPnFQzaS5V8CrJ-Y4Rde8,111881
|
|
5
|
-
PyGamLab/__init__.py,sha256=Jk2e1ZsFaemg_xhfpAcY6Ul_6ixjrBMfnea81xMFY2s,1959
|
|
6
|
-
pygamlab-0.1.1.dist-info/METADATA,sha256=rjaEHzWwi6djkPsQNR2c0TrbsypVa8bLyNMMhWdN-Ds,6294
|
|
7
|
-
pygamlab-0.1.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
8
|
-
pygamlab-0.1.1.dist-info/top_level.txt,sha256=E5IBZwx9PoAR8NyXgNAT3iUIuGvYfJlfyOKQY1sNkXU,9
|
|
9
|
-
pygamlab-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|