Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Reference states

For Kohn–Sham DFT, any of the several available functionals is specified as illustrated below, see the exchange-correlation functionals page for a complete list of available functionals.

For input text files, a detailed list of keywords is available.

Restricted closed-shell

Python script

import veloxchem as vlx

molecule = vlx.Molecule.read_name("water")
basis = vlx.MolecularBasis.read(molecule, "def2-svp")

scf_drv = vlx.ScfRestrictedDriver()

scf_drv.xcfun = "b3lyp"
scf_results = scf_drv.compute(molecule, basis)

Text file

@jobs
task: scf
@end

@method settings
basis: def2-svp
xcfun: b3lyp
@end

@molecule
charge: 0
multiplicity: 1
xyz:
...
@end

Restricted open-shell

Python script

import veloxchem as vlx

molecule = vlx.Molecule.read_smiles("[N]=O")
molecule.set_multiplicity(2)

basis = vlx.MolecularBasis.read(molecule, "def2-svp")

scf_drv = vlx.ScfRestrictedOpenDriver()

scf_drv.xcfun = "b3lyp"
scf_results = scf_drv.compute(molecule, basis)

Text file

@jobs
task: roscf
@end

@method settings
basis: 6-31+G*
xcfun: b3lyp
@end

@molecule
charge: 1
multiplicity: 2
xyz:
...
@end

Unrestricted open-shell

Python script

import veloxchem as vlx

molecule = vlx.Molecule.read_smiles("[N]=O")
molecule.set_multiplicity(2)

basis = vlx.MolecularBasis.read(molecule, "def2-svp")

scfdrv = vlx.ScfUnrestrictedDriver()

scfdrv.xcfun = "b3lyp"
scf_results = scfdrv.compute(molecule, basis)

Text file

@jobs
task: uscf
@end

@method settings
basis: def2-svp
xcfun: pbe0
@end

@molecule
charge: 1
multiplicity: 2
xyz:
...
@end