Skip to content

Commit

Permalink
Reimplementing hot and cold walls
Browse files Browse the repository at this point in the history
  • Loading branch information
anufrievroman committed May 25, 2023
1 parent 81eb823 commit 8aecea7
Show file tree
Hide file tree
Showing 19 changed files with 241 additions and 320 deletions.
5 changes: 2 additions & 3 deletions examples/animated_corrugated_nanowire.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@

# Hot and cold sides [m]:
FREQUENCY_DETECTOR_SIZE = WIDTH
COLD_SIDE_POSITION = 'top'
HOT_SIDE_X = 0
HOT_SIDE_WIDTH_X = WIDTH
PHONON_SOURCE_X = 0
PHONON_SOURCE_WIDTH_X = WIDTH


# Roughness [m]:
Expand Down
16 changes: 9 additions & 7 deletions examples/anisotropy_study_horizontal.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@
INCLUDE_BOTTOM_SIDEWALL = True

# Hot and cold sides [m]:
COLD_SIDE_POSITION = 'right'
HOT_SIDE_POSITION = 'left'
HOT_SIDE_X = -WIDTH/2
HOT_SIDE_Y = LENGTH/2
HOT_SIDE_WIDTH_X = 0
HOT_SIDE_WIDTH_Y = LENGTH
HOT_SIDE_ANGLE_DISTRIBUTION = 'random_right'
COLD_SIDE_POSITION_RIGHT = False
COLD_SIDE_POSITION_RIGHT = True
HOT_SIDE_POSITION_LEFT = True
HOT_SIDE_POSITION_BOTTOM = False
PHONON_SOURCE_X = -WIDTH/2
PHONON_SOURCE_Y = LENGTH/2
PHONON_SOURCE_WIDTH_X = 0
PHONON_SOURCE_WIDTH_Y = LENGTH
PHONON_SOURCE_ANGLE_DISTRIBUTION = 'random_right'


# Hole array parameters [m]:
Expand Down
16 changes: 9 additions & 7 deletions examples/anisotropy_study_vertical.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@
INCLUDE_BOTTOM_SIDEWALL = False

# Hot and cold sides [m]:
COLD_SIDE_POSITION = 'top'
HOT_SIDE_POSITION = 'bottom'
HOT_SIDE_X = 0
HOT_SIDE_Y = 0
HOT_SIDE_WIDTH_X = WIDTH
HOT_SIDE_WIDTH_Y = 0
HOT_SIDE_ANGLE_DISTRIBUTION = 'random_up'
COLD_SIDE_POSITION_RIGHT = False
COLD_SIDE_POSITION_TOP = True
HOT_SIDE_POSITION_LEFT = False
HOT_SIDE_POSITION_BOTTOM = True
PHONON_SOURCE_X = 0
PHONON_SOURCE_Y = 0
PHONON_SOURCE_WIDTH_X = 0
PHONON_SOURCE_WIDTH_Y = WIDTH
PHONON_SOURCE_ANGLE_DISTRIBUTION = 'random_up'

# Hole array parameters [m]:
INCLUDE_HOLES = True
Expand Down
5 changes: 2 additions & 3 deletions examples/fishbone_nanowire.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@

# Hot and cold sides [m]:
FREQUENCY_DETECTOR_SIZE = WIDTH
COLD_SIDE_POSITION = 'top'
HOT_SIDE_X = 0
HOT_SIDE_WIDTH_X = 100e-9
PHONON_SOURCE_X = 0
PHONON_SOURCE_WIDTH_X = 100e-9


# Roughness [m]:
Expand Down
14 changes: 7 additions & 7 deletions examples/parabolic_lens_collimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
LENGTH = 2000e-9

# Hot and cold sides [m]:
FREQUENCY_DETECTOR_SIZE = WIDTH
COLD_SIDE_POSITION = 'top'
HOT_SIDE_X = 0
HOT_SIDE_Y = 300e-9
HOT_SIDE_WIDTH_X = 10e-9
HOT_SIDE_WIDTH_Y = 10e-9
HOT_SIDE_ANGLE_DISTRIBUTION = 'uniform'
FREQUENCY_DETECTOR_SIZE = WIDTH
COLD_SIDE_POSITION_TOP = True
PHONON_SOURCE_X = 0
PHONON_SOURCE_Y = 300e-9
PHONON_SOURCE_WIDTH_X = 10e-9
PHONON_SOURCE_WIDTH_Y = 10e-9
PHONON_SOURCE_ANGLE_DISTRIBUTION = 'uniform'

# Roughness [m]:
SIDE_WALL_ROUGHNESS = 2e-9
Expand Down
12 changes: 7 additions & 5 deletions examples/parabolic_lens_focusing.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,20 @@
WIDTH = 1000e-9
LENGTH = 1100e-9


# Hot and cold sides [m]:
FREQUENCY_DETECTOR_SIZE = WIDTH
COLD_SIDE_POSITION = 'top'
HOT_SIDE_X = 0.0
HOT_SIDE_WIDTH_X = WIDTH
HOT_SIDE_ANGLE_DISTRIBUTION = 'directional'
FREQUENCY_DETECTOR_SIZE = WIDTH
PHONON_SOURCE_X = 0.0
PHONON_SOURCE_WIDTH_X = WIDTH
PHONON_SOURCE_ANGLE_DISTRIBUTION = 'directional'


# Roughness [m]:
SIDE_WALL_ROUGHNESS = 2e-9
TOP_ROUGHNESS = 0.2e-9
BOTTOM_ROUGHNESS = 0.2e-9


# Parabolic boundaries:
INCLUDE_TOP_PARABOLA = True
TOP_PARABOLA_TIP = 1000e-9
Expand Down
5 changes: 2 additions & 3 deletions examples/phononic_crystal.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@

# Hot and cold sides [m]:
FREQUENCY_DETECTOR_SIZE = WIDTH
COLD_SIDE_POSITION = 'top'
HOT_SIDE_X = 0
HOT_SIDE_WIDTH_X = WIDTH
PHONON_SOURCE_X = 0
PHONON_SOURCE_WIDTH_X = WIDTH


# Roughness [m]:
Expand Down
6 changes: 2 additions & 4 deletions examples/simple_nanowire.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@
LENGTH = 2000e-9

# Hot and cold sides [m]:
FREQUENCY_DETECTOR_SIZE = WIDTH
COLD_SIDE_POSITION = 'top'
HOT_SIDE_X = 0
HOT_SIDE_WIDTH_X = WIDTH
PHONON_SOURCE_X = 0
PHONON_SOURCE_WIDTH_X = WIDTH

# Roughness [m]:
SIDE_WALL_ROUGHNESS = 2e-9
Expand Down
6 changes: 3 additions & 3 deletions examples/slits_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
WIDTH = 1200e-9
LENGTH = 2200e-9


# Hot and cold sides [m]:
FREQUENCY_DETECTOR_SIZE = WIDTH
COLD_SIDE_POSITION = 'top'
HOT_SIDE_X = 0
HOT_SIDE_WIDTH_X = WIDTH
PHONON_SOURCE_X = 0
PHONON_SOURCE_WIDTH_X = WIDTH


# Roughness [m]:
Expand Down
5 changes: 2 additions & 3 deletions examples/triangles_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@

# Hot and cold sides [m]:
FREQUENCY_DETECTOR_SIZE = WIDTH
COLD_SIDE_POSITION = 'top'
HOT_SIDE_X = 0
HOT_SIDE_WIDTH_X = WIDTH
PHONON_SOURCE_X = 0
PHONON_SOURCE_WIDTH_X = WIDTH


# Roughness [m]:
Expand Down
2 changes: 1 addition & 1 deletion freepaths/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ def create_animation():
"""Main function that creates the animation"""
generate_frames_xy()
generate_animation_xy()
delete_frames()
# delete_frames()
97 changes: 0 additions & 97 deletions freepaths/animation__.py

This file was deleted.

Loading

0 comments on commit 8aecea7

Please sign in to comment.