10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-07-05 19:05:50 +02:00
QCaml/SCF/HartreeFock_type.mli

32 lines
1.4 KiB
OCaml
Raw Normal View History

2019-02-26 12:47:23 +01:00
open Lacaml.D
2018-03-03 22:29:08 +01:00
(** Data structure representing the output of a Hartree-Fock caculation *)
2018-07-20 16:09:06 +02:00
type s =
2018-02-23 18:44:31 +01:00
{
2018-07-20 16:09:06 +02:00
simulation : Simulation.t; (** Simulation which was used for HF calculation *)
2018-05-30 18:07:05 +02:00
guess : Guess.t; (** Initial guess *)
2019-02-26 12:47:23 +01:00
eigenvectors : Mat.t ; (** Final eigenvectors *)
eigenvalues : Vec.t ; (** Final eigenvalues *)
occupation : Vec.t ; (** Diagonal of the density matrix *)
iterations : (float * float * float) array;
2018-05-30 18:07:05 +02:00
energy : float ; (** Final energy *)
nuclear_repulsion : float ; (** Nucleus-Nucleus potential energy *)
kin_energy : float ; (** Kinetic energy *)
eN_energy : float ; (** Electron-nucleus potential energy *)
coulomb_energy : float ; (** Electron-Electron potential energy *)
exchange_energy : float ; (** Exchange energy *)
2019-02-26 12:47:23 +01:00
nocc : int ; (** Number of occupied MOs *)
2018-05-30 18:07:05 +02:00
(** Energy, convergence and HOMO-LUMO gap of all iterations *)
2018-02-23 18:44:31 +01:00
}
2018-07-20 16:09:06 +02:00
type t =
| RHF of s (** Restricted Hartree-Fock *)
| ROHF of s (** Restricted Open-shell Hartree-Fock *)
| UHF of s (** Unrestricted Hartree-Fock *)
2018-05-30 18:07:05 +02:00
val to_string : t -> string
(** Results of a Hartree-Fock calculation pretty-printed in a string. *)
2018-02-23 18:44:31 +01:00