mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-07-13 14:44:31 +02:00
30 KiB
30 KiB
None
<html>
<head>
</head>
</html>
Test of F12 matrix elements¶
Initialization¶
In [1]:
#cd "/home/scemama/QCaml";;
#use "topfind";;
#require "jupyter.notebook";;
#require "lacaml";;
#require "alcotest";;
#require "str";;
#require "bigarray";;
#require "zarith";;
#require "getopt";;
#directory "_build";;
#directory "_build/Basis";;
#directory "_build/CI";;
#directory "_build/MOBasis";;
#directory "_build/Nuclei";;
#directory "_build/Parallel";;
#directory "_build/Perturbation";;
#directory "_build/SCF";;
#directory "_build/Utils";;
Modules to load¶
In [2]:
#load "Constants.cmo";;
#load_rec "Util.cma";;
#load_rec "Matrix.cmo";;
#load_rec "Simulation.cmo";;
#load_rec "Simulation.cmo";;
#load_rec "HartreeFock.cmo";;
#load_rec "MOBasis.cmo";;
#load_rec "F12CI.cmo";;
open Lacaml.D;;
Printers¶
In [3]:
#install_printer AngularMomentum.pp_string ;;
#install_printer Basis.pp ;;
#install_printer Charge.pp ;;
#install_printer Coordinate.pp ;;
#install_printer Vector.pp;;
#install_printer Matrix.pp;;
#install_printer Util.pp_float_2darray;;
#install_printer Util.pp_float_array;;
#install_printer Util.pp_matrix;;
#install_printer HartreeFock.pp ;;
#install_printer Fock.pp ;;
let f ppf t = MOBasis.pp ~start:1 ~finish:0 ppf t ;;
#install_printer f;;
Out[3]:
Run¶
Simulation¶
In [4]:
let basis_filename = "/home/scemama/qp2/data/basis/cc-pvdz"
let aux_basis_filename = "/home/scemama/qp2/data/basis/cc-pvtz"
let nuclei = Nuclei.of_zmt_string "be"
let multiplicity = 1
let state = 1
let basis = Basis.of_nuclei_and_basis_filenames ~nuclei [basis_filename]
let aux_basis = Basis.of_nuclei_and_basis_filenames ~nuclei (basis_filename :: aux_basis_filename :: [])
let f12 = F12factor.gaussian_geminal 1.0
let charge = 0
let simulation =
Simulation.make
~f12 ~charge ~multiplicity ~nuclei
~cartesian:true
basis
Out[4]:
Out[4]:
Out[4]:
Out[4]:
Out[4]:
Out[4]:
Out[4]:
Out[4]:
Out[4]:
Out[4]:
Hartree-Fock¶
In [5]:
let hf = HartreeFock.make ~guess:`Hcore simulation ;;
let mo_basis = MOBasis.of_hartree_fock hf
Out[5]:
Out[5]:
FCI-F12¶
In [21]:
let fcif12 =
F12CI.make ~simulation ~frozen_core:false ~mo_basis ~aux_basis_filename ~state ()
In [7]:
%load_ext itikz
In [ ]: