10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-06-28 08:02:09 +02:00
QCaml/Utils/Coordinate_type.ml

25 lines
359 B
OCaml
Raw Normal View History

2018-02-13 17:36:25 +01:00
let bohr_to_angstrom { Bohr.x ; y ; z } =
2018-02-24 23:57:38 +01:00
let b_to_a b = Constants.a0 *. b in
2018-02-13 17:36:25 +01:00
Angstrom.make
{
Point.
x = b_to_a x ;
y = b_to_a y ;
z = b_to_a z ;
}
2018-02-24 23:57:38 +01:00
2018-02-13 17:36:25 +01:00
let angstrom_to_bohr { Angstrom.x ; y ; z } =
2018-02-24 23:57:38 +01:00
let a_to_b a = Constants.a0_inv *. a in
2018-02-13 17:36:25 +01:00
Bohr.make
{
Point.
x = a_to_b x ;
y = a_to_b y ;
z = a_to_b z ;
}
2018-02-24 23:57:38 +01:00