Heat Flux¶
Introduction¶
It is possible to use DL_POLY_4 to calculate the heat flux of a material with two-body interactions in an MD simulation. The heat flux can subsequently be used as a means to calculate the thermal conductivity of a material via the Green-Kubo relation. Currently, the heat flux is only viable for two-body interactions, but valid for any two-body interactions.
To enable the calculation of heat flux add the heat_flux keyword into the CONTROL file.
Theory¶
The heat flux for two-body interactions is defined as:
where \(\underline{\underline{\textbf{J}}}\) is the heat flux, \(V\) is the volume of the cell, \(N\) is the number of particles, \(e\) is the energy, \(\underline{v}\) is the velocity, \(\underline{\underline{\textbf{S}}}\) is the stress. All subscript \(i\) refer to the particle.
The thermal conductivity can then be as an auto-correlation of the heat flux over a run:
where \(\kappa\) is the thermal conductivity, \(V\) is the volume of the cell, \(k_{B}\) is the Boltzmann constant, \(J\) is the heatflux.
Implementation¶
For the purposes of calculating per-particle SPME interactions, the long-range electrostatics forces and energies are calculated differently for the heat flux case. From the SPME equations, we can calculate a per particle contribution via:
where \(\omega\) is the per-particle contribution for particle \(j\), \(q\) is the charge, other values are defined in the SPME section (see: Smoothed Particle Mesh Ewald)
File¶
The heat flux method creates a file called HEATFLUX which contains the relevant data structured as: STEP PRESSURE VOLUME HEAT-FLUX