Skip to content

Commit

Permalink
Update mcol example
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Dec 23, 2024
1 parent c42d041 commit 2b00680
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
17 changes: 0 additions & 17 deletions examples/dft/14-collinear_gks.py

This file was deleted.

21 changes: 21 additions & 0 deletions examples/dft/14-non_collinear_gks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#

'''
GKS with non-collinear functional
'''

from pyscf import gto

mol = gto.M(atom="H 0 0 0; F 0 0 1", basis='unc-sto3g', verbose=4)
mf = mol.GKS()
mf.xc = 'pbe'
# Enable non-collinear functional. GKS calls collinear functional by default
# mcol is short for multi-collinear functional. This is one treatment of
# non-collinear method which avoids the singularity issue in functional.
# For more details of multi-collinear method, please see
# Noncollinear density functional theory, Zhichen Pu, et. al., Rev. Research 5, 013036
mf.collinear = 'mcol'
mf.kernel()

0 comments on commit 2b00680

Please sign in to comment.