How to print out correlation energy in DFT task

19 views
Skip to first unread message

Hong Tang

unread,
Nov 30, 2024, 8:21:08 PM11/30/24
to NWChem Forum
Dear NWChem team,

I am trying to run a test with nwchem.7.2.3. I used the following input. However, in the out file, I only got 
"
...

         Total DFT energy =     -128.867881101695
      One electron energy =     -182.606972829829
           Coulomb energy =       66.231863337717
    Exchange-Corr. energy =      -12.492771609583
 Nuclear repulsion energy =        0.000000000000

 Numeric. integr. density =        9.999999679783

     Total iterative time =      0.1s
...

"

It printed out " Exchange-Corr. energy =". Can I print out both the exchange and correlation energies in the out file? 

I tried to check some source code files to add something like "write(LUout, *) 'Ex=', Ex" and  "write(LUout, *) 'Ec=', Ec".  but I am not sure where to add.

Please let me know which   .F file I should look at and which line I should add these write commands. 

I appreciate your help very much!

Best,

Hong



________________________
title "Neon cc-pvdz"  
geometry    
   ne 0 0 0  
end  
basis  
   ne library cc-pvdz  
end  
dft
convergence energy 1e-10
grid fine
xc r2scan
iterations 100
end
task dft energy  
___________________________

Edoardo Aprà

unread,
Nov 30, 2024, 8:29:57 PM11/30/24
to NWChem Forum
You can add the decomp DFT input keyword https://nwchemgit.github.io/Density-Functional-Theory-for-Molecules.html#xc-and-decomp-exchange-correlation-potentials to get Exchange and Correlation energies to be printed separately.
Topic already discussed here in

Niri Govind

unread,
Nov 30, 2024, 8:30:29 PM11/30/24
to nwchem...@googlegroups.com
Hi Hong,

This should be possible by adding the decomp directive within the DFT block in the input.

Best,
Niri

Niri Govind
PNNL

--
You received this message because you are subscribed to the Google Groups "NWChem Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nwchem-forum...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/nwchem-forum/1ada1d6f-c15b-4960-8e16-04eb7aa98c08n%40googlegroups.com.

Hong Tang

unread,
Dec 13, 2024, 11:00:21 PM12/13/24
to NWChem Forum
Great!
Thanks!

Best,
Hong
Reply all
Reply to author
Forward
0 new messages