10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-07-17 00:20:23 +02:00
QCaml/particles/lib/nuclei.mli

43 lines
820 B
OCaml
Raw Normal View History

2020-12-29 18:06:54 +01:00
(* Type
*
* #+NAME: types *)
2018-03-03 22:13:14 +01:00
2020-12-29 18:06:54 +01:00
(* [[file:../nuclei.org::types][types]] *)
2020-10-09 09:47:57 +02:00
open Common
2020-09-26 12:02:53 +02:00
type t = (Element.t * Coordinate.t) array
2020-12-29 18:06:54 +01:00
(* types ends here *)
2018-03-03 22:13:14 +01:00
2020-12-29 18:06:54 +01:00
(* Conversion *)
2018-03-03 22:13:14 +01:00
2020-04-16 19:49:23 +02:00
2020-12-29 18:06:54 +01:00
(* [[file:../nuclei.org::*Conversion][Conversion:1]] *)
val of_xyz_string : string -> t
val to_xyz_string : t -> string
val of_xyz_file : string -> t
2018-03-03 22:13:14 +01:00
2018-06-29 16:04:40 +02:00
val of_zmt_string : string -> t
2020-12-29 18:06:54 +01:00
val of_zmt_file : string -> t
2018-03-03 22:13:14 +01:00
2020-12-29 18:06:54 +01:00
val to_string : t -> string
2018-03-03 22:13:14 +01:00
val of_filename : string -> t
2020-12-29 18:06:54 +01:00
(* Conversion:1 ends here *)
2018-03-03 22:13:14 +01:00
2020-12-29 18:06:54 +01:00
(* Query *)
2018-03-03 22:13:14 +01:00
2020-12-29 18:06:54 +01:00
(* [[file:../nuclei.org::*Query][Query:1]] *)
val repulsion : t -> float
val charge : t -> Charge.t
2018-07-04 18:08:38 +02:00
val small_core : t -> int
2020-12-29 18:06:54 +01:00
val large_core : t -> int
(* Query:1 ends here *)
2018-07-04 18:08:38 +02:00
2020-12-29 18:06:54 +01:00
(* Printers *)
(* [[file:../nuclei.org::*Printers][Printers:1]] *)
val pp : Format.formatter -> t -> unit
(* Printers:1 ends here *)