10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-06-17 10:45:20 +02:00
QCaml/perturbation/lib/mp2.mli

37 lines
662 B
OCaml
Raw Normal View History

2024-02-28 11:07:24 +01:00
(** Data structure for an MP2 calculation *)
2021-01-01 16:39:33 +01:00
2024-02-28 11:07:24 +01:00
(**
* let mp2 =
* Perturbation.Mp2.make ~frozen_core:(Mo.Frozen_core.(make Small nuclei)) mo_basis
* ;;
* val mp2 : Perturbation.Mp2.t = E(MP2)=-0.185523
*
*)
(** Type *)
2021-01-01 16:39:33 +01:00
type t
2024-02-28 11:07:24 +01:00
(** Creation *)
2021-01-01 16:39:33 +01:00
val make : frozen_core:Mo.Frozen_core.t -> Mo.Basis.t -> t
2024-02-28 11:07:24 +01:00
(** Access *)
2021-01-01 16:39:33 +01:00
val energy : t -> float
2024-02-28 11:07:24 +01:00
(* Returns the MP2 energy *)
2021-01-01 16:39:33 +01:00
val mo_basis : t -> Mo.Basis.t
2024-02-28 11:07:24 +01:00
(* Returns the MO basis on which the MP2 energy was computed *)
2021-01-01 16:39:33 +01:00
val frozen_core : t -> Mo.Frozen_core.t
2024-02-28 11:07:24 +01:00
(* Returns the frozen_core scheme used to compute the MP2 energy *)
2021-01-01 16:39:33 +01:00
2024-02-28 11:07:24 +01:00
(** Printers *)
2021-01-01 16:39:33 +01:00
val pp : Format.formatter -> t -> unit