[CP2K-user] [CP2K:21517] Re: System exploded in NPT-F simulations

Dragoon longdragoonae at gmail.com
Mon Jun 2 02:14:55 UTC 2025


Dear Prof. Iannuzzi,

Thank you so much for the explanation. I further tested on a 2*2*2 cell of 
the system (starting from scratch), using 1000 for Barostat and 200 for 
Thermostats coupled to  barostat or particles. The Cons Qty still increases 
after 200 ps. Both the diagonal (starting from ~20 angstrom) and 
off-diagonal components (starting from 0) drifted away. I also noticed that 
the system exploded when I constrained the symmetry to orthorhombic. And 
when I restart the simulation, I got the "CPASSERT failed" from 
pw/pw_grids.F:2077. Looks like the off-diagonal components of the stress 
tensor are doing something weird to the simulation...

I had some additional questions regarding these observations:
1. As the Kin and Pot of themostats, barostat and particles fluctuates 
around some equilibrium values towards the end of the trajectory, why the 
Cons. Qty still increases? What are the quantities I did not count for the 
Cons Qty?
2. Do you have any known system(s) that can be simulated in the NPT_F, for 
example, in the test suite?

Any comments or suggestions are greatly appreciated.
Thank you!
Zhuoran
 [image: t300_cons.png][image: kin_thermostat.png][image: cell.png]

在2025年5月30日星期五 UTC-4 04:43:04<Marcella Iannuzzi> 写道:

> Dear Zhuoran
>
> I would not define those fluctuations in the cell as OK. There is for sure 
> something wrong in the forces.
> The difference between NPT_I and NPT_F comes from the off diagonal 
> elements of the stress tensor. 
>  I would expect them to be very small for bulk water. 
> On the other hand the system you are testing is very small and local 
> fluctuations might have an uncontrolled effect. 
> Probably the system and the FF you are using are not suitable to test NPT_F
> Anyway, the fact that the integration is going wrong is already evident 
> from the very beginning of the simulation, the energy drift is from the 
> start not acceptable. 
> Regards
> Marcella
>
> On Wednesday, May 28, 2025 at 6:44:53 PM UTC+2 zlo... at umd.edu wrote:
>
>> Dear Prof. Iannuzzi,
>>
>> Thank you so much for the suggestions. CELL, STRESS, kinetic and 
>> potential energy of the barostat all oscillates around some values and 
>> I guess that means fine. However I noticed that the kinetic energies of the 
>> thermostats keep increases, both for the one applied on the atoms and the 
>> one coupled to the barostat. 
>> I made some tests including 
>> (a) remove the "TYPE SAME_AS_PARTICLE" so that the TIMECON of the 
>> thermostat coupled to the barostat becomes 200 as specified in the input
>> (b) from (a), change the TIMECON of the barostat to 2000
>> (c) from (b), change the TIMESTEP to 0.2
>> and none of them seem to fix the problem. 
>> I would really appreciate it if you could please provide any additional 
>> suggestions.
>>
>> Thank you!
>> Zhuoran 
>>
>> The following plots were from the initial simulations but all the tests 
>> (a-c) show similar trends. 
>> [image: t300_cell.png][image: t300_stress.png][image: t300_e.png]
>> On Tuesday, May 27, 2025 at 5:02:27 AM UTC-4 Marcella Iannuzzi wrote:
>>
>>>
>>> Dear Zhuoran
>>>
>>> Have you also monitored the CELL , the STRESS and the energy and 
>>> temperature of the barostat?
>>> When they change too fast, it is difficult for the dynamics to recover. 
>>> In this case you can try to rescale the temperature of the barostat and 
>>> reduce the time step.
>>> Regards
>>> Marcella
>>>
>>> On Saturday, May 24, 2025 at 10:38:05 AM UTC+2 zlo... at umd.edu wrote:
>>>
>>>> Dear all,
>>>>
>>>> I am testing NPT simulations on the tutorial water system 
>>>> <https://www.cp2k.org/exercises:2018_ethz_mmm:h2o_md>. I'm including 
>>>> the following changes to the input file in the tutorial example:
>>>>
>>>> &FORCE_EVAL
>>>>     STRESS_TENSOR ANALYTICAL
>>>>     ...
>>>> &END FORCE_EVAL
>>>> ...
>>>> &MOTION
>>>>   &MD
>>>>     ENSEMBLE NPT_I
>>>>     STEPS 200000
>>>>     TIMESTEP 1.0
>>>>     TEMPERATURE 300
>>>>     COMVEL_TOL 1.0E-10
>>>>     &BAROSTAT
>>>>       PRESSURE 1.01325 #[bar]
>>>>       TIMECON 1000
>>>>       VIRIAL XYZ
>>>>       &THERMOSTAT
>>>>         TYPE SAME_AS_PARTICLE
>>>>         &CSVR
>>>>           TIMECON 200
>>>>         &END CSVR
>>>>       &END THERMOSTAT
>>>>     &END BAROSTAT
>>>>     &THERMOSTAT
>>>>       TYPE CSVR
>>>>       REGION MASSIVE
>>>>       &CSVR
>>>>         TIMECON 200
>>>>       &END CSVR
>>>>     &END THERMOSTAT
>>>>     ...
>>>>   &END MD
>>>>   ...
>>>> &END MOTION
>>>>
>>>> The Cons Qty in the .ener file converged after about 20 ps. However. 
>>>> when I perform the same simulation from scratch in the NPT-F ensemble (by 
>>>> changing the NPT-I to NPT-F), the Cons Qty kept increasing and exploded 
>>>> after about 80 ps (please see the plot below, so are the kinetic energy and 
>>>> potential energy). I will need the NPT-F in future for a tetragonal 
>>>> covalent organic framework system. Could someone please let me know if I 
>>>> had any wrong or missing parameters? 
>>>> And a relevant question, while I set the time constant to be 200 for 
>>>> the CSVR thermostat of the barostat, the corresponding TIMECON in the 
>>>> restart file has a value of ~9.6755. Is that relevant to my question? I'm 
>>>> using the version 2024.2. 
>>>>
>>>> And helps and discussions are greatly appreciated.
>>>> Zhuoran
>>>> [image: t300.png]
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+unsubscribe at googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cp2k/a84851c5-522f-4aae-9985-cdc355a0b23cn%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20250601/eab7f693/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t300_cons.png
Type: image/png
Size: 64969 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20250601/eab7f693/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kin_thermostat.png
Type: image/png
Size: 138244 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20250601/eab7f693/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cell.png
Type: image/png
Size: 107614 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20250601/eab7f693/attachment-0005.png>


More information about the CP2K-user mailing list