pythermo 0.0.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.
pythermo/__init__.py ADDED
@@ -0,0 +1,23 @@
1
+ """
2
+ Classes and methods for performing various modeling and computational tasks in the field of low-temperature thermochronology.
3
+
4
+ This package includes the following modules:
5
+
6
+ - .crystal : Classes and methods for determining radiation damage levels, diffusivities, and thermochronometric dates from different mineral systems
7
+
8
+ - .tT_path : Methods for creating discretized time-temperature (tT) paths and performing crystal-independent radiation damage annealing.
9
+
10
+ - .tT_model : Methods for modeling and plotting thermochronometric date results for comparison to measured data sets. A key focus here is thermal history modeling.
11
+
12
+ - .constants : Important universal constants used by the various modules.
13
+
14
+ """
15
+
16
+ __version__ = '0.1.0'
17
+
18
+ __all__ = ['constants','crystal','tT_path','tT_model']
19
+
20
+ from .constants import *
21
+ from .crystal import *
22
+ from .tT_path import *
23
+ from .tT_model import *
pythermo/constants.py ADDED
@@ -0,0 +1,46 @@
1
+ """
2
+ constants.py
3
+
4
+ Universal libraries and constants used by files crystals.py, tT_path.py, and tT_model.py
5
+
6
+ """
7
+ import numpy as np
8
+
9
+ #time constants
10
+ sec_per_myr = 3.15569259747*10**13
11
+ sec_per_yr = 3.15569259747*10**7
12
+
13
+ #gas constant in kJ/K * mol-1
14
+ gas_constant = 0.008314462618
15
+
16
+ #jaffey decay constants, 1/s
17
+ lambda_232 = np.log(2)/(1.405*10**10) * (1/sec_per_yr)
18
+ lambda_235 = np.log(2)/(7.0381*10**8) * (1/sec_per_yr)
19
+ lambda_238 = np.log(2)/(4.4683*10**9) * (1/sec_per_yr)
20
+
21
+ #jaffey decay constants, 1/yr
22
+ lambda_232_yr = np.log(2)/(1.405*10**10)
23
+ lambda_235_yr = np.log(2)/(7.0381*10**8)
24
+ lambda_238_yr = np.log(2)/(4.4683*10**9)
25
+
26
+ #Sm and FT decay constants, 1/s
27
+ lambda_147 = 6.54*10**-12 * (1/sec_per_yr)
28
+ lambda_f = 8.46*10**-17 * (1/sec_per_yr)
29
+
30
+ #Sm and FT decay constants, 1/yr
31
+ lambda_147_yr = 6.54*10**-12
32
+ lambda_f_yr = 8.46*10**-17
33
+
34
+ #Avogadro conversion constants
35
+ atom_mol = 6.02214076*10**23
36
+ atom_nmol = 6.02214076*10**14
37
+
38
+ #ppm to atoms/g conversion factor, atomic weights from 2021 IUPAC report, uses 1/137.818 ratio for U isotopes
39
+ U235_ppm_atom=(1/1000000)*(0.0072559/238.02891)*atom_mol
40
+ U238_ppm_atom=(1/1000000)*(0.99274405/238.02891)*atom_mol
41
+ Th_ppm_atom=(1/1000000)*(1/232.0377)*atom_mol
42
+ Sm_ppm_atom = (1/1000000)*(0.015/150.36)*atom_mol
43
+
44
+ #mineral densities g/cc
45
+ ap_density = 3.19
46
+ zirc_density = 4.60