Page 1 of 1

Liquid-solid coexistence simulation (AIMD, NPH ensemble)

Posted: Sat Jul 12, 2025 1:05 pm
by Netanela

Hi there,

I am trying to determine the melting temperature of Li using the two phase coexistence method, which consists of the following two steps:
1. NVT simulation - starting from a 5x5x10 solid supercell of BCC Li (with the experimental lattice parameter of Li at RT), freezing the top half, and allowing the bottom half melt completely at ~1000 K (using selective dynamics).
2. NPH simulation - the POSCAR file is the half-solid half-liquid unit cell obtained at step (1), with the information on atomic positions only (the information about velocities is removed). Then, I set the target pressure (e.g. PSTRESS = 0) and the starting temperature (TEBEG). There is also an ICONST file included, where the unit cell is constrained to maintain the orthorhombic shape with the ratio a : b : c = 1 : 1 : 2 between its lattice parameters.

When I track the temperature during the NPH simulation, I notice that only the temperature of the first time-step is indeed equal to TEBEG, but then it suddenly jumps by 50-100K (see attached figure). This happens even if TEBEG is set to 100K, for example.

What I am looking for in this process is to test whether the temperature is monotonously increasing (solidification) or decreasing (melting), but it is hard to say so explicitly since the starting temperature is far from being the one I set.

I am aware this is a relatively small amount of atoms (500 in total, 250 in each phase), but according to different publications it seems to be possible to predict the melting temperature with such a small system using this method.

Would appreciate any insight or suggestion you might have.

Thanks!


Re: Liquid-solid coexistence simulation (AIMD, NPH ensemble)

Posted: Mon Jul 14, 2025 11:56 am
by christopher_sheldon1

Hi Netanela,

Thank you for your question. In an MD simulation, you are right in that the TEBEG is the initial temperature. During the MD simulation, the temperature fluctuates about an average temperature. You can change this by also setting TEEND to the target temperature of the thermosat. If you don't define it, then TEEND=TEBEG. Since you want to track how the temperature changes, I recommend tracking how the average temperature changes during the MD simulation.

Does this answer your question? If not, please upload your input files (INCAR, POSCAR, POTCAR, KPOINTS) and output (OUTCAR) files. This will make it easier to determine where exactly the problem lies.

Best wishes,

Chris