Thermal gradients
How to create thermal gradients in different directions
Last updated
How to create thermal gradients in different directions
Last updated
Thermal gradients in different directions are exemplified in anisotropy_study.py
To create the vertical thermal gradient (which is the default case), the input file should include the following settings (they are set by default):
Note that only left and right side walls exist in the system and the distribution of angles at the phonon source is set to random
, zero angle is implied by default. Make sure that the chosen angle distribution corresponds to the chosen position of hot side, so that it does not emit phonon outside the system. Available distributions are illustrated below:
Thus, to create the horizontal thermal gradient, side walls should be rearranged, distribution changed and cold/hot side positions changed accordingly. For example, as follows (these lines are commented in the anisotroopy_study.py
file):
Note that we changed the angle parameter in the Source object. Below are the schemes of these two systems and resulting thermal gradients:
# Walls:
INCLUDE_RIGHT_SIDEWALL = False
INCLUDE_LEFT_SIDEWALL = False
INCLUDE_TOP_SIDEWALL = True
INCLUDE_BOTTOM_SIDEWALL = True
# Hot and cold sides [m]:
COLD_SIDE_POSITION_TOP = False
COLD_SIDE_POSITION_RIGHT = True
HOT_SIDE_POSITION_LEFT = True
HOT_SIDE_POSITION_BOTTOM = False
# Phonon source:
PHONON_SOURCES = [Source(x=-WIDTH/2, y=LENGTH/2, z=0,
size_x=0, size_y=LENGTH, size_z=THICKNESS,
angle_distribution="random", angle=np.pi/2)]
# Walls:
INCLUDE_RIGHT_SIDEWALL = True
INCLUDE_LEFT_SIDEWALL = True
INCLUDE_TOP_SIDEWALL = False
INCLUDE_BOTTOM_SIDEWALL = False
# Hot and cold sides [m]:
COLD_SIDE_POSITION_RIGHT = False
COLD_SIDE_POSITION_TOP = True
HOT_SIDE_POSITION_LEFT = False
HOT_SIDE_POSITION_BOTTOM = True
# Phonon source:
PHONON_SOURCES = [Source(x=0, y=0, z=0,
size_x=WIDTH, size_y=0, size_z=THICKNESS,
angle_distribution="random")]