adding cube files

23 views
Skip to first unread message

Rubee Soni

unread,
Oct 28, 2025, 2:16:48 AMOct 28
to cp2k
Dear cp2K,

Can one add two cube files using cube cruncher or we can only subtract the cube files.


Thanks,

Best,
Rubee

fabia...@gmail.com

unread,
Nov 5, 2025, 3:19:41 PMNov 5
to cp2k
Hi Rubee,

I don't think you can directly add two cube files. But the cubecruncher supports multiplication. So the two following commands add two cube files:
cubecruncher.x -i b.cube -multiply -1 -o minus_b.cube
cubecruncher.x -i  a.cube -subtract minus_b.cube -o a_plus_b.cube
rm  minus_b.cube

Cheers,
Fabian
Reply all
Reply to author
Forward
0 new messages