freepaths 2.2__tar.gz → 2.2.1__tar.gz
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.
- {freepaths-2.2 → freepaths-2.2.1}/PKG-INFO +1 -1
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/__main__.py +4 -5
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/main_mfp_sampling.py +7 -3
- {freepaths-2.2 → freepaths-2.2.1}/freepaths.egg-info/PKG-INFO +1 -1
- {freepaths-2.2 → freepaths-2.2.1}/README.md +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/animation.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/config.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/data.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/default_config.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/electron.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/flight.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/interface_smmm.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/main_tracing.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/maps.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/materials.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/move.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/output_info.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/output_plots.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/output_structure.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/particle.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/particle_types.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/phonon.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/post_computations.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/progress.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/run_particle.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/scatterers.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/scattering.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/scattering_interfaces.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/scattering_primitives.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/scattering_semicircle.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/scattering_types.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths/sources.py +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths.egg-info/SOURCES.txt +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths.egg-info/dependency_links.txt +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths.egg-info/entry_points.txt +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths.egg-info/requires.txt +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/freepaths.egg-info/top_level.txt +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/pyproject.toml +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/setup.cfg +0 -0
- {freepaths-2.2 → freepaths-2.2.1}/setup.py +0 -0
|
@@ -4,8 +4,9 @@ import argparse
|
|
|
4
4
|
import colorama
|
|
5
5
|
from colorama import Fore, Style
|
|
6
6
|
|
|
7
|
+
from freepaths.particle_types import ParticleType
|
|
7
8
|
|
|
8
|
-
__version__ = "2.2"
|
|
9
|
+
__version__ = "2.2.1"
|
|
9
10
|
|
|
10
11
|
colorama.init()
|
|
11
12
|
|
|
@@ -16,7 +17,7 @@ parser = argparse.ArgumentParser(
|
|
|
16
17
|
epilog = 'For more information, examples, and tutorials, visit: https://anufrievroman.gitbook.io/freepaths'
|
|
17
18
|
)
|
|
18
19
|
parser.add_argument('input_file', nargs='?', default=None, help='The input file')
|
|
19
|
-
parser.add_argument("-s", "--sampling", help="Run in MFP sampling mode", action="store_true")
|
|
20
|
+
parser.add_argument("-s", "--sampling", help="Run in phonon MFP sampling mode", action="store_true")
|
|
20
21
|
parser.add_argument("-e", "--electron", help="Run simulation for electrons", action="store_true")
|
|
21
22
|
args = parser.parse_args()
|
|
22
23
|
|
|
@@ -26,16 +27,14 @@ def run():
|
|
|
26
27
|
print(f"\n{Fore.BLUE}FreePATHS v{__version__}{Style.RESET_ALL}")
|
|
27
28
|
if args.sampling:
|
|
28
29
|
import freepaths.main_mfp_sampling
|
|
29
|
-
freepaths.main_mfp_sampling.main(args.input_file)
|
|
30
|
+
freepaths.main_mfp_sampling.main(args.input_file, ParticleType.PHONON)
|
|
30
31
|
|
|
31
32
|
elif args.electron:
|
|
32
33
|
import freepaths.main_tracing
|
|
33
|
-
from freepaths.particle_types import ParticleType
|
|
34
34
|
freepaths.main_tracing.main(args.input_file, ParticleType.ELECTRON)
|
|
35
35
|
|
|
36
36
|
else:
|
|
37
37
|
import freepaths.main_tracing
|
|
38
|
-
from freepaths.particle_types import ParticleType
|
|
39
38
|
freepaths.main_tracing.main(args.input_file, ParticleType.PHONON)
|
|
40
39
|
|
|
41
40
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Module to run thermal conductivity calculations by integrating the phonon dispersion"""
|
|
2
2
|
|
|
3
3
|
import os
|
|
4
|
+
import numpy as np
|
|
4
5
|
import sys
|
|
5
6
|
import time
|
|
6
7
|
import shutil
|
|
@@ -15,15 +16,16 @@ from freepaths.config import cf
|
|
|
15
16
|
from freepaths.run_particle import run_particle
|
|
16
17
|
from freepaths.phonon import Phonon
|
|
17
18
|
from freepaths.flight import Flight
|
|
19
|
+
from freepaths.particle_types import ParticleType
|
|
18
20
|
from freepaths.data import ScatteringData, GeneralData, SegmentData, PathData, TriangleScatteringData
|
|
19
21
|
from freepaths.progress import Progress
|
|
20
|
-
from freepaths.materials import Si, SiC, Graphite, Ge
|
|
22
|
+
from freepaths.materials import Si, SiC, Graphite, Ge
|
|
21
23
|
from freepaths.maps import ScatteringMap, ThermalMaps
|
|
22
24
|
from freepaths.output_info import output_general_information, output_scattering_information, output_parameter_warnings
|
|
23
25
|
from freepaths.output_plots import plot_data
|
|
24
26
|
|
|
25
27
|
|
|
26
|
-
def main(input_file):
|
|
28
|
+
def main(input_file, particle_type):
|
|
27
29
|
"""This is the main function, which integrates phonon dispersion to get thermal conductivity"""
|
|
28
30
|
|
|
29
31
|
print(f'Mean free path sampling of {Fore.GREEN}{cf.output_folder_name}{Style.RESET_ALL}')
|
|
@@ -36,7 +38,7 @@ def main(input_file):
|
|
|
36
38
|
|
|
37
39
|
# -------- has to be modified fro have only SiGe values and not a mix between Ge and SiGe------------
|
|
38
40
|
elif cf.media == "Ge":
|
|
39
|
-
material = Ge(cf.temp, num_points=cf.number_of_particles +1)
|
|
41
|
+
material = Ge(cf.temp, num_points=cf.number_of_particles +1)
|
|
40
42
|
# -------- has to be modified fro have only SiGe values and not a mix between Ge and SiGe------------
|
|
41
43
|
|
|
42
44
|
elif cf.media == "SiC":
|
|
@@ -112,6 +114,7 @@ def main(input_file):
|
|
|
112
114
|
scatter_stats.write_into_files()
|
|
113
115
|
segment_stats.write_into_files()
|
|
114
116
|
thermal_maps.write_into_files()
|
|
117
|
+
|
|
115
118
|
scatter_maps.write_into_files()
|
|
116
119
|
path_stats.write_into_files()
|
|
117
120
|
|
|
@@ -128,6 +131,7 @@ def main(input_file):
|
|
|
128
131
|
output_scattering_information(scatter_stats)
|
|
129
132
|
output_parameter_warnings()
|
|
130
133
|
|
|
134
|
+
np.savetxt("Data/Thermal conductivity from MFP.csv", np.array([total_thermal_conductivity]), fmt='%2.4e', header="K [W/mK]", encoding='utf-8')
|
|
131
135
|
sys.stdout.write(f'\rSee the results in {Fore.GREEN}Results/{cf.output_folder_name}{Style.RESET_ALL}\n')
|
|
132
136
|
sys.stdout.write(f"\rThermal conductivity = {Fore.GREEN}{total_thermal_conductivity:.5f}{Style.RESET_ALL} W/m·K\n")
|
|
133
137
|
sys.stdout.write(f"\r{Fore.BLUE}Thank you for using FreePATHS{Style.RESET_ALL}\n\n")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|