File tree Expand file tree Collapse file tree 5 files changed +9
-0
lines changed Expand file tree Collapse file tree 5 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ pub const MICRON: f64 = 1E-6;
15
15
pub const NM : f64 = 1E-9 ;
16
16
/// One centimeter in meters.
17
17
pub const CM : f64 = 1E-2 ;
18
+ /// One milimter in meters.
19
+ pub const MM : f64 = 1E-3 ;
18
20
/// Vacuum permitivity in Farads/meter.
19
21
pub const EPS0 : f64 = 8.8541878128E-12 ;
20
22
/// Bohr radius in meters.
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ impl Geometry for Mesh0D {
52
52
let length_unit: f64 = match input. length_unit . as_str ( ) {
53
53
"MICRON" => MICRON ,
54
54
"CM" => CM ,
55
+ "MM" => MM ,
55
56
"ANGSTROM" => ANGSTROM ,
56
57
"NM" => NM ,
57
58
"M" => 1. ,
@@ -142,6 +143,7 @@ impl Geometry for Mesh1D {
142
143
let length_unit: f64 = match geometry_input. length_unit . as_str ( ) {
143
144
"MICRON" => MICRON ,
144
145
"CM" => CM ,
146
+ "MM" => MM ,
145
147
"ANGSTROM" => ANGSTROM ,
146
148
"NM" => NM ,
147
149
"M" => 1. ,
@@ -323,6 +325,7 @@ impl Geometry for Mesh2D {
323
325
let length_unit: f64 = match geometry_input. length_unit . as_str ( ) {
324
326
"MICRON" => MICRON ,
325
327
"CM" => CM ,
328
+ "MM" => MM ,
326
329
"ANGSTROM" => ANGSTROM ,
327
330
"NM" => NM ,
328
331
"M" => 1. ,
Original file line number Diff line number Diff line change @@ -381,6 +381,7 @@ where <T as Geometry>::InputFileFormat: Deserialize<'static> + 'static {
381
381
let length_unit: f64 = match particle_parameters. length_unit . as_str ( ) {
382
382
"MICRON" => MICRON ,
383
383
"CM" => CM ,
384
+ "MM" => MM ,
384
385
"ANGSTROM" => ANGSTROM ,
385
386
"NM" => NM ,
386
387
"M" => 1. ,
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ impl Geometry for ParryBall {
63
63
let length_unit: f64 = match input. length_unit . as_str ( ) {
64
64
"MICRON" => MICRON ,
65
65
"CM" => CM ,
66
+ "MM" => MM ,
66
67
"ANGSTROM" => ANGSTROM ,
67
68
"NM" => NM ,
68
69
"M" => 1. ,
@@ -186,6 +187,7 @@ impl Geometry for ParryTriMesh {
186
187
let length_unit: f64 = match input. length_unit . as_str ( ) {
187
188
"MICRON" => MICRON ,
188
189
"CM" => CM ,
190
+ "MM" => MM ,
189
191
"ANGSTROM" => ANGSTROM ,
190
192
"NM" => NM ,
191
193
"M" => 1. ,
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ impl Geometry for Sphere {
58
58
let length_unit: f64 = match input. length_unit . as_str ( ) {
59
59
"MICRON" => MICRON ,
60
60
"CM" => CM ,
61
+ "MM" => MM ,
61
62
"ANGSTROM" => ANGSTROM ,
62
63
"NM" => NM ,
63
64
"M" => 1. ,
You can’t perform that action at this time.
0 commit comments