Thermal Conductivity HandsOn
Thermal Conductivity HandsOn
~/Home
DOS_Cv Thermal_Conductivity
cd ~/Thermal_Conductivity/Length_Scaling
cd ./800A
Parameter Units
velocity all create ${SysTemp100} 156467 mom yes rot yes dist gaussian
fix 2a all nve
run ${Steps40ps} Heat to T
fix 5 all nve
dump 4 all atom 50000 dump300.nve Relax at T
run ${Steps600ps}
unfix 5
write_restart MoS2.restart Input file for in.heatflux
for thermal conductivity
LAMMPS Walkthrough: Variables
File: in.variables
Ø Contains variable definitions
Ø Here are some of the important ones
Length =W
=L h
idt
W
Ø Define Hot and Cold region in the system at X=L/4 and X=3L/4
respectively
Ø E0 heat is given to the hot region and E0 heat is taken away from
cold region.
Step 2: Add/Remove heat to/from system
Input script: in.heatflux
Read relaxed structure coordinate
1. Read relaxed structure coordinate
boundary p p p
processors ${px} ${py} ${pz} 2. Define two strips L/2Å apart
read_restart MoS2.restart
neighbor 2.0 bin
3. Add/remove heat from these strip
4. Run system for 4ns
5. Take temperature average over 4ns
6. Continue this process at least thrice
Temperature Scaling:
1. Pre-relaxed system at 100K, 200K, 300K for 12ns is inside T-scaling folder:
a) 800Å×100Å , 200K : MOS2_200T.restart
b) 800Å×100Å , 100K : MOS2_100T.restart
Already Submitted Earlier
c) 800Å×100Å , 300K : MOS2_200T.restart
2. Run in.heatflux for 300,000
3. Compute thermal conductivity using calthermal_conductivity.py
Job Submission: JOB1 (Temperature Scaling)
cd ~/Thermal_Conductivity/Temperature_Scaling
Before we start plotting anything we must source python. Follow these steps
cd ~/
source /usr/usc/python/default/setup.sh
Step 3: Compute Thermal Conductivity
Compute thermal conductivity using calthermal_conductivity.py
$ python3.5 calthermal_conductivity.py Temperature.txt
cd ~/Thermal_Conductivity/Isotope_TC
qsub job.pbs
Step 4: Plot Length scaling
For 600Å×100Å, 800Å×100Å, 1000Å×100Å
compute K value and plot K-1 vs L-1
use caldos.py
Step 1: Create a relaxed system
Input script: in.dos
1. Create a system
2. Do energy minimization
3. Heat and relax to temperature T
4. Save coordinates for analysis
TFREQ in input.txt
NFRAME
1 )* +)
!" ∫2 . / 0/ ℏ/
+) − - *
= 1 , 4 =
#$%& ∫2 . / 0/ %6 7
!"
8 9:;;<9=<> = ×8 @A
#$%&
Hands-on Calculation:
1. Take the value of Cv at 100K,200K and
300K from Specific_heat.txt file
2. Take the value of K computed at 100K,
200K and 300K for 800Å×100Å system
3. Multiply these two number to get
quantum corrected K value
Hands on Calculations : Isotope Effect