[CP2K-user] [CP2K:21950] Re: adding cube files

fabia...@gmail.com fabianducry at gmail.com
Wed Nov 5 20:19:40 UTC 2025


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

On Tuesday, 28 October 2025 at 07:16:48 UTC+1 Rubee Soni wrote:

> Dear cp2K,
>
> Can one add two cube files using cube cruncher or we can only subtract the 
> cube files.
>
>
> Thanks,
>
> Best,
> Rubee
>

-- 
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/3fec7f6e-5870-40b7-85f7-93aa936449a0n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20251105/252a75e2/attachment.htm>


More information about the CP2K-user mailing list