QuantumATK W-2024.09 version released on Sep 9, 2024
0 Members and 1 Guest are viewing this topic.
ed = nlread('analysis.nc', ElectronDensity)[0] cut = 20 s = ed[:, :, :].sum() print ed[:,:, :cut].sum()/s print ed[:,:, cut:].sum()/s
Hmm, an alternative to the Mulliken population could be using the ElectronDensity. A rough example I have made: Codeed = nlread('analysis.nc', ElectronDensity)[0] cut = 20 s = ed[:, :, :].sum() print ed[:,:, :cut].sum()/s print ed[:,:, cut:].sum()/sWhere 20 is some grid number in the z-direction. Also take a look at the manual entry for ElectronDensity