10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-11-09 07:33:40 +01:00
QCaml/particles/lib/nuclei.mli

40 lines
966 B
OCaml
Raw Normal View History

2018-03-03 22:13:14 +01:00
(** Data structure for the molecular geometry, represented as an array
of tuples ({!Element.t}, {!Coordinate.t}).
*)
2020-09-26 12:02:53 +02:00
open Qcaml_common
type t = (Element.t * Coordinate.t) array
2018-03-03 22:13:14 +01:00
2020-04-16 19:49:23 +02:00
val of_xyz_string : string -> t
(** Create from a string, in [xyz] format. *)
2018-03-03 22:13:14 +01:00
val of_xyz_file : string -> t
(** Create from a file, in [xyz] format. *)
2018-06-29 16:04:40 +02:00
val of_zmt_string : string -> t
(** Create from a string, in z-matrix format. *)
2018-03-03 22:13:14 +01:00
val of_zmt_file : string -> t
(** Create from a file, in z-matrix format. *)
val to_string : t -> string
(** Transform to a string, for printing. *)
val of_filename : string -> t
(** Detects the type of file ([xyz], z-matrix) and reads the file. *)
val repulsion : t -> float
(** Nuclear repulsion energy, in atomic units. *)
val charge : t -> Charge.t
(** Sum of the charges of the nuclei. *)
2018-07-04 18:08:38 +02:00
val small_core : t -> int
(** Number of core electrons in the small core model. *)
2018-06-29 16:04:40 +02:00
val to_xyz_string : t -> string
val to_t2_string : t -> string