freepaths 2.1__tar.gz → 2.1.2__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.1 → freepaths-2.1.2}/PKG-INFO +1 -1
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/__main__.py +1 -1
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/output_info.py +1 -1
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/scatterers.py +1 -2
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/scattering.py +1 -1
- {freepaths-2.1 → freepaths-2.1.2}/freepaths.egg-info/PKG-INFO +1 -1
- {freepaths-2.1 → freepaths-2.1.2}/README.md +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/animation.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/config.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/data.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/default_config.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/flight.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/main_mfp_sampling.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/main_tracing.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/maps.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/materials.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/move.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/output_plots.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/output_structure.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/phonon.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/progress.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/run_phonon.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/scattering_primitives.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/scattering_semicircle.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/scattering_types.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths/sources.py +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths.egg-info/SOURCES.txt +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths.egg-info/dependency_links.txt +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths.egg-info/entry_points.txt +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths.egg-info/requires.txt +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/freepaths.egg-info/top_level.txt +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/pyproject.toml +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/setup.cfg +0 -0
- {freepaths-2.1 → freepaths-2.1.2}/setup.py +0 -0
|
@@ -83,7 +83,7 @@ def output_scattering_information(scatter_stats):
|
|
|
83
83
|
np.sum(scatter_stats.hole_specular)) / total
|
|
84
84
|
sc_on_holes_diff = 100*np.sum(scatter_stats.hole_diffuse) / total_hole
|
|
85
85
|
sc_on_holes_spec = 100*np.sum(scatter_stats.hole_specular) / total_hole
|
|
86
|
-
|
|
86
|
+
info.extend([
|
|
87
87
|
f'\n{sc_on_holes:.2f}% - scattering on hole walls ',
|
|
88
88
|
f'({sc_on_holes_diff:.2f}% - diffuse, ',
|
|
89
89
|
f'{sc_on_holes_spec:.2f}% - specular)']
|
|
@@ -687,7 +687,6 @@ class VerticalPlane(Interface):
|
|
|
687
687
|
)
|
|
688
688
|
|
|
689
689
|
|
|
690
|
-
|
|
691
690
|
class HorizontalPlane(Interface):
|
|
692
691
|
"""Horizontal plane that represents an interface"""
|
|
693
692
|
|
|
@@ -707,7 +706,7 @@ class HorizontalPlane(Interface):
|
|
|
707
706
|
"""Calculate the new direction after scattering on the interface wall"""
|
|
708
707
|
|
|
709
708
|
# Scattering on the left wall:
|
|
710
|
-
if
|
|
709
|
+
if z < self.position_z:
|
|
711
710
|
scattering_types.interfaces = horizontal_surface_up_scattering(ph, cf.interface_roughness, cf)
|
|
712
711
|
|
|
713
712
|
# Scattering on the right wall:
|
|
@@ -130,7 +130,7 @@ def surface_scattering(ph, scattering_types, triangle_scattering_places):
|
|
|
130
130
|
# Scattering on interfaces:
|
|
131
131
|
if cf.interfaces:
|
|
132
132
|
for interface in cf.interfaces:
|
|
133
|
-
if interface.is_crossed(ph, x, y, z) and interface.is_transmitted():
|
|
133
|
+
if interface.is_crossed(ph, x, y, z) and not interface.is_transmitted():
|
|
134
134
|
interface.scatter(ph, scattering_types, x, y, z, cf)
|
|
135
135
|
|
|
136
136
|
# Correct angle if it became more than 180 degrees:
|
|
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
|