Accurate Calculation of the Thermal Conductivity of Liquids from Molecular Dynamics Using a Heat Flux Decomposition Based Correction
This repository accompanies the research paper
"Accurate Calculation of the Thermal Conductivity of Liquids from Molecular Dynamics Using a Heat Flux Decomposition Based Correction"
This repository contains LAMMPS data files with all FF parameter details, all LAMMPS input scripts, post processing scripts, and a jupyter notebook for model development and testing related to the study. Below is a breakdown of the key folders and files:
LAMMPS_Data_Filesfolder containing all LAMMPS data files for initial NPT simulations.
- Located in the
LAMMPS_Input_Scriptsfolder. - Includes:
in.lmp.DIR_INDEX_NPT.txtfor NPT simulation to obtain average densities at a given state point for a given systemin.lmp.DIR_INDEX_HeatFluxDecom.txtfor reshaping the cubic simulation box into a cuboid box and then performing NEMD simulations with heat flux decomposition.- The outputs of
in.lmp.DIR_INDEX_HeatFluxDecom.txtcontain the instantaneous heat fluxes as described in the reference paper. Time averaging the instantaneous heat fluxes (post equilibration) and dividing by the imposed heat flux gives the fractional heat fluxes Q'
- Located in the
Postprocessing_scriptsfolder. Containsave_Vol.py,datafile_edit_avedensity.sh,thermal_sim_extract.py, andthermal_cond_finalcalc.py. - After running
in.lmp.DIR_INDEX_NPT.txt, useave_Vol.pyto determine point of equilibration and obtain average densities for use in subsequent simulations - After
ave_Vol.py, usedatafile_edit_avedensity.shto modify the data file from runningin.lmp.DIR_INDEX_NPT.txtto obtain a data file with correct average density - Run
in.lmp.DIR_INDEX_HeatFluxDecom.txt - Then use
thermal_sim_extract.pyto extract the required data from some of the outputs ofin.lmp.DIR_INDEX_HeatFluxDecom.txt, for use in computing$\lambda$ - Use
thermal_cond_finalcalc.pyto compute NEMD values of$\lambda$ from output ofthermal_sim_extract.py - Some of the outputs from running
in.lmp.DIR_INDEX_HeatFluxDecom.txtinclude averaged instantaneous heat fluxes needed for computing fractional heat fluxes for HFD-BC
4. Jupyter notebook for computing fractional heat fluxes, training and evaluating HFD-BC model and making final plots
- Located in
Jupyter_Notebook_Final_Plotsfolder - Includes:
data_tc_hfd_all.xlsxandTC_HFD_Corr_Final_Feb2026.ipynbTC_HFD_Corr_Final_Feb2026.ipynbtakes in some of the outputs from runningin.lmp.DIR_INDEX_HeatFluxDecom.txtand computes the fractional heat fluxes, trains the HFD-BC model, then shows how to apply HFD-BC to other systems using the fitted parametersdata_tc_hfd_all.xlsxcontains input data for use along withTC_HFD_Corr_Final_Feb2026.ipynb
- Located in
Results_and_Outputsfolder
Note: For some new system, all that is needed to use the HFD-BC method is to obtain the fractional heat fluxes and NEMD computed
If you use the code or data herein, please cite the corresponding paper.
Feel free to open an issue or pull request if you have questions, suggestions, or contributions!