10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-12-23 04:43:32 +01:00
QCaml/particles/lib/electrons.mli

42 lines
942 B
OCaml
Raw Normal View History

2020-12-28 12:43:32 +01:00
(* Type
*
* #+NAME: types *)
2018-02-24 23:57:38 +01:00
2020-12-28 23:27:33 +01:00
(* [[file:~/QCaml/particles/electrons.org::types][types]] *)
2020-12-28 12:43:32 +01:00
type t
(* types ends here *)
(* Creation *)
2020-09-26 12:02:53 +02:00
2020-12-28 12:43:32 +01:00
2020-12-28 23:27:33 +01:00
(* [[file:~/QCaml/particles/electrons.org::*Creation][Creation:1]] *)
2020-12-28 12:43:32 +01:00
open Common
2018-02-24 23:57:38 +01:00
2020-09-26 12:02:53 +02:00
val make : int -> int -> t
val of_atoms : ?multiplicity:int -> ?charge:int -> Nuclei.t -> t
2020-12-28 12:43:32 +01:00
(* @param multiplicity default is 1
@param charge default is 0
@raise Invalid_argument if the spin multiplicity is not compatible with
2018-02-24 23:57:38 +01:00
the molecule and the total charge.
2020-12-28 12:43:32 +01:00
*)
(* Creation:1 ends here *)
2018-03-03 22:13:14 +01:00
2020-12-28 12:43:32 +01:00
(* Access *)
2018-03-03 22:13:14 +01:00
2019-12-03 12:25:31 +01:00
2020-12-28 23:27:33 +01:00
(* [[file:~/QCaml/particles/electrons.org::*Access][Access:1]] *)
2020-12-28 12:43:32 +01:00
val charge : t -> Charge.t
val n_elec : t -> int
val n_alfa : t -> int
val n_beta : t -> int
val multiplicity : t -> int
(* Access:1 ends here *)
2019-02-20 19:43:16 +01:00
2020-12-28 12:43:32 +01:00
(* Printers *)
2019-02-20 19:43:16 +01:00
2020-12-28 23:27:33 +01:00
(* [[file:~/QCaml/particles/electrons.org::*Printers][Printers:1]] *)
2020-12-28 12:43:32 +01:00
val pp : Format.formatter -> t -> unit
(* Printers:1 ends here *)