Help: cp2k vibration analysis stopped in the middle, how to renew the calculation?

599 views
Skip to first unread message

Zac Smith

unread,
Feb 8, 2023, 8:54:04 PM2/8/23
to cp2k
Hello  cp2k users,  
I used a virtual machine to do vibration analysis with cp2k, but the task was killed when the hard disk was full, and the output file only contains out, molden, cube, and the eig file of size 0. Can the calculation be continued in this case?

Krack Matthias

unread,
Feb 9, 2023, 6:03:34 AM2/9/23
to cp...@googlegroups.com

It is not possible to restart a vibrational analysis run. Such a functionality is not implemented.

--
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+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/9d914e4f-bcb1-42ae-9b02-6c14f6fec8a5n%40googlegroups.com.

Zac Smith

unread,
Feb 9, 2023, 12:39:08 PM2/9/23
to cp2k
Understood, thank you for your reply.

Eric Patterson

unread,
Feb 10, 2023, 11:32:16 AM2/10/23
to cp...@googlegroups.com
On a closely-related note…

Since normal vibrational analysis is not restartable, but mode-selective vibrational analysis is… Is there any drawback to using mode-selective and choosing all atoms, and then restarting as necessary until all modes have converged? Given the queue time limit imposed by my HPC resources, this seems to me the only way to get the job done. Are there any pitfalls one should bear in mind?

Thanks,
Eric


Leili Rassouli

unread,
Dec 31, 2023, 3:24:27 PM12/31/23
to cp2k
Hi Eric,

I've faced a similar issue and was considering the approach you suggested. Have you had a chance to try it, and does it work well in your case? Your insights would be greatly appreciated.

Thank you for your assistance.
Lili Rassouli

Mikhail Povarnitsyn

unread,
Dec 31, 2023, 6:23:49 PM12/31/23
to cp2k
Dear Leili,

There is one solution to suggest. We have modified the "vibrational_analysis.F" file a little bit to specify a range of atoms to be shifted. By dividing the full range into several parts, it is feasible to calculate all forces by parts and then gather them to reconstruct the full Hessian and diagonalise it afterwards. If you like we could send you two source files to recompile the cp2k.popt. 
Which version of cp2k do you use?   

Best regards,
Mikhail  

Eric Patterson

unread,
Jan 2, 2024, 11:21:34 AM1/2/24
to cp...@googlegroups.com
Hello Lili,

I did do a little bit of testing of the mode-selective method vs the normal method. The results are comparable if I choose all atoms and restart until all modes are converged (or at least nearly so — I didn’t care vey much about low energy modes).

However, I’ve also managed to compile a working MPI version on my HPC, so I am able to run on enough nodes to get through a default vibrational analysis before the queue kills the job. 

Best,
Eric


Message has been deleted
Message has been deleted
Message has been deleted

Leili Rassouli

unread,
Jan 2, 2024, 1:34:20 PM1/2/24
to cp2k
Dear Mikhail and Eric,

Thank you for your responses. My job is completed after 10 days, but to enhance the computational efficiency, I am considering the use of a mode-selective method or the dividing the full range into several parts to potentially expedite the calculation process. Mikhail, I would be appreciative if you could provide me access to the source files, given that I am currently utilizing CP2K v2022.1.

I'm currently facing an issue with negative frequencies. While using the ground state wavefunction in the ground state geometry, frequencies are positive and within the expected range. However, switching to the first excited wavefunction yields a significant number of negative frequencies.

Enclosed is my input file for 221 supercells of Fe2O3 with 120 atoms. Your insights and recommendations on this matter would be greatly valued.

I've explored various parameters, including:

Adjusting the CUTOFF value of TDDFPT from 300 to 600 and 700
Refining the optimized geometry
Increasing the TDDFT convergence from 1.0e-5 to 1.0e-6 and 1.0e-7
Despite these efforts, a notable proportion of frequencies persist as negative values. 

I express my gratitude in advance for your time and assistance.

Best regards,
Lili
Fe2O3_vib.inp

Eric Patterson

unread,
Jan 2, 2024, 1:50:00 PM1/2/24
to cp...@googlegroups.com
Dear Lili,

I suggest you make your TDDFT inquiry a new thread since it is a separate issue. I have no experience with TDDFT in CP2K, so I’m afraid I’m of no use in this case..

Best,
Eric


Leili Rassouli

unread,
Jan 2, 2024, 10:47:41 PM1/2/24
to cp2k
Thank you, Eric. I made a new inquiry.

Mikhail Povarnitsyn

unread,
Jan 28, 2024, 6:31:31 PM1/28/24
to cp2k
Dear Leili,

Sorry for the late reply. Two files for you version 2022.1 are attached. You have to make substitution into src/motion and recompile the code: 
make ARCH=local VERSION="psmp".

To specify the range of atoms to shift from equilibrium positions, just add the keywords START_ATOM_ID and END_ATOM_ID:

&VIBRATIONAL_ANALYSIS
DX 0.005
START_ATOM_ID  1
END_ATOM_ID      100

.....................
.....................

For instance, you can split the task of 600 atoms into 6 parts 1-100,101-200, etc and then gather the force derivatives into the dynamical matrix.
If you need further assistance, please let me know.

Best regards,
Mikhail
vibrational_analysis.F
input_cp2k_vib.F
Reply all
Reply to author
Forward
0 new messages