CSVR thermostat

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
paulanatalia_abufager
Newbie
Newbie
Posts: 6
Joined: Fri Sep 18, 2020 3:11 pm

CSVR thermostat

#1 Post by paulanatalia_abufager » Fri Mar 14, 2025 12:49 pm

Hello,
Should the SMASS tag be set for the CSVR thermostat?
thanks,
Paula


martin.schlipf
Global Moderator
Global Moderator
Posts: 595
Joined: Fri Nov 08, 2019 7:18 am

Re: CSVR thermostat

#2 Post by martin.schlipf » Fri Mar 14, 2025 5:43 pm

SMASS is only used for Nose thermostat so its setting does not affect the result for MD_ALGO = 5. It is a good practice to verify this for yourself. You should see that the results are independent of the SMASS selected.

Martin Schlipf
VASP developer


paulanatalia_abufager
Newbie
Newbie
Posts: 6
Joined: Fri Sep 18, 2020 3:11 pm

Re: CSVR thermostat

#3 Post by paulanatalia_abufager » Sun Mar 16, 2025 3:06 pm

Hello, Calculations without explicitly setting the SMASS tag and those with SMASS=0 yield different results, even though the SMASS tag is not supposed to affect the outcome. Do you know why this happens? Thanks, Paula,


martin.schlipf
Global Moderator
Global Moderator
Posts: 595
Joined: Fri Nov 08, 2019 7:18 am

Re: CSVR thermostat

#4 Post by martin.schlipf » Mon Mar 17, 2025 12:31 pm

Thanks for testing it for yourself. Perhaps you forgot to restart from scratch, e.g., because a WAVECAR file was in the directory. I tested setting SMASS to different values and I always get exactly the same trajectory.

Martin Schlipf
VASP developer


paulanatalia_abufager
Newbie
Newbie
Posts: 6
Joined: Fri Sep 18, 2020 3:11 pm

Re: CSVR thermostat

#5 Post by paulanatalia_abufager » Mon Mar 17, 2025 3:08 pm

Both calculations started from scratch.


martin.schlipf
Global Moderator
Global Moderator
Posts: 595
Joined: Fri Nov 08, 2019 7:18 am

Re: CSVR thermostat

#6 Post by martin.schlipf » Tue Mar 18, 2025 7:28 am

Can you post the OUTCAR files of both calculations, please?

Martin Schlipf
VASP developer


paulanatalia_abufager
Newbie
Newbie
Posts: 6
Joined: Fri Sep 18, 2020 3:11 pm

Re: CSVR thermostat

#7 Post by paulanatalia_abufager » Tue Mar 18, 2025 9:44 am

Please find the files at the following link. The files are too large to upload.

https://drive.google.com/drive/folders/ ... sp=sharing


martin.schlipf
Global Moderator
Global Moderator
Posts: 595
Joined: Fri Nov 08, 2019 7:18 am

Re: CSVR thermostat

#8 Post by martin.schlipf » Tue Mar 18, 2025 10:32 pm

You did not set the same random seed for both calculations. Without that even running the same INCAR file twice should result in different calculations. I think, if you set this tag in your INCAR file, you will see that your calculations agree.

Note that you typically should not set this tag in the INCAR file to avoid repeating the same MD run twice. This tag is really intended for testing purposes. If you want to test things you can read the RANDOM_SEED from the OUTCAR file and put it as input to a second calculation. Then the calculation should reproduce exactly the same trajectory at least for some time. Over many iterations small numerical fluctuations may result in diverging calculations anyhow.

Finally, I noticed that you ran big expensive calculations to test this. I would recommend that you read how to generate small reproducible examples. It is very important that you gradually move from small and simple systems where you understand the behavior to more complex ones. Vice versa, when you encounter something that does not behave like you think it should, you try reducing the system size and the amount of INCAR tags so that you can really understand what is going on. If you learn this skill of identifying errors not only will you be able to overcome more problems on your own, you will also receive better and faster support from us because with a minimal example there are much less possible causes that we need to examine.

Martin Schlipf
VASP developer


Post Reply