pyscfad.dft.numint.NumInt.nr_nlc_vxc#
- NumInt.nr_nlc_vxc(mol, grids, xc_code, dm, relativity=0, hermi=1, max_memory=2000, verbose=None)[source]#
Calculate NLC functional and potential matrix on given grids
- Parameters:
ni – an instance of
NumIntmol – an instance of
Molegrids – an instance of
Gridsgrids.coords and grids.weights are needed for coordinates and weights of meshgrids.xc_code – str XC functional description. See
parse_xc()of pyscf/dft/libxc.py for more details.dm – 2D array Density matrix or multiple density matrices
- Kwargs:
- hermiint
Input density matrices symmetric or not. It also indicates whether the potential matrices in return are symmetric or not.
- max_memoryint or float
The maximum size of cache to use (in MB).
- Returns:
nelec, excsum, vmat. nelec is the number of electrons generated by numerical integration. excsum is the XC functional value. vmat is the XC potential matrix in 2D array of shape (nao,nao) where nao is the number of AO functions.