Thermal gradients

How to create thermal gradients in different directions

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):

# 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")]

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):

# 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)]

Note that we changed the angle parameter in the Source object. Below are the schemes of these two systems and resulting thermal gradients:

Likewise, the gradient can be set in any other direction as long as the hot and cold sides are different. More than one wall can serve as a cold or a hot side. Essentially, hot side means that phonons will be diffusely scattered from that wall (thermalized). Conversely, cold side means that phonons will be absorbed by that wall and simulation will be over for these phonons.

Note that while it is possible to send the phonons through the structure in any direction, the thermal conductivity calculation will along the y direction

Last updated