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

45 lines
937 B
OCaml
Raw Normal View History

2020-12-29 18:06:54 +01:00
(* Type
2021-01-20 23:55:34 +01:00
* <<<~Nuclei.t~>>>
2020-12-29 18:06:54 +01:00
*
* #+NAME: types *)
2018-03-03 22:13:14 +01:00
2021-01-01 16:39:33 +01:00
(* [[file:~/QCaml/particles/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
2021-01-01 16:39:33 +01:00
(* [[file:~/QCaml/particles/nuclei.org::*Conversion][Conversion:1]] *)
2020-12-29 18:06:54 +01:00
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
2021-01-01 11:46:11 +01:00
(* TODO Query *)
2018-03-03 22:13:14 +01:00
2021-01-01 16:39:33 +01:00
(* [[file:~/QCaml/particles/nuclei.org::*Query][Query:1]] *)
2021-01-01 11:46:11 +01:00
val formula : t -> string
2020-12-29 18:06:54 +01:00
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 *)
2021-01-01 16:39:33 +01:00
(* [[file:~/QCaml/particles/nuclei.org::*Printers][Printers:1]] *)
2020-12-29 18:06:54 +01:00
val pp : Format.formatter -> t -> unit
(* Printers:1 ends here *)