Skip to content

Commit 0cc5705

Browse files
authored
Merge pull request #274 from lcpp-org/readme_fix
Fix readme
2 parents 5f4ef50 + 3daa7d5 commit 0cc5705

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,19 @@ For those eager to get started with the standalone code, try running one of the
6060
the plots located on the [Wiki], these may require some optional
6161
[Python] packages (`matplotlib`, `numpy`, `scipy`, `shapely`, and `toml`).
6262

63-
### H trajectories and collision cascades in a boron nitride dust grain
64-
63+
### H trajectories and collision cascades in boron nitride
6564
First, run the example using:
6665

6766
```bash
68-
cargo run --release examples/boron_nitride.toml
67+
cargo run --release 0D examples/boron_nitride_0D.toml
6968
```
7069

7170
Afterwords, fire up your favourite [Python] interpreter
7271
(e.g., [IPython]) and execute:
7372

7473
```python
7574
from scripts.rustbca import *
76-
do_trajectory_plot("boron_dust_grain_")
75+
do_trajectory_plot("boron_nitride_")
7776
```
7877

7978
### He implantation into a layered TiO<sub>2</sub>/Al/Si target

examples/boron_nitride_0D.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,24 @@ name = "boron_nitride_"
44
weak_collision_order = 0
55
num_threads = 4
66
track_displacements = true
7+
track_trajectories = true
8+
track_recoil_trajectories = true
79

810
[material_parameters]
911
energy_unit = "EV"
1012
mass_unit = "AMU"
1113
Eb = [ 0.0, 0.0,]
1214
Es = [ 5.76, 0.0,]
1315
Ed = [25.0, 25.0]
14-
Ec = [ 1.0, 1.0,]
16+
Ec = [ 5.0, 5.0,]
1517
Z = [ 5, 7,]
1618
m = [ 10.811, 14,]
1719

1820
[particle_parameters]
1921
length_unit = "MICRON"
2022
energy_unit = "EV"
2123
mass_unit = "AMU"
22-
N = [ 10000 ]
24+
N = [ 10 ] # Number of computational ions low for plotting trajectories
2325
m = [ 1.008 ]
2426
Z = [ 1 ]
2527
E = [ 1000.0 ]

examples/boron_nitride_wire_homogeneous.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Use with 0D geometry option only
1+
#Use with HOMOGENEOUS2D geometry option only
22
[options]
33
name = "boron_nitride_h_"
44
weak_collision_order = 0

src/input.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,6 @@ fn one_u64() -> u64 {
172172
1
173173
}
174174

175-
///This helper function is a workaround to issue #368 in serde
176-
fn three() -> usize {
177-
3
178-
}
179-
180175
fn zero_usize() -> usize{
181176
0
182177
}

0 commit comments

Comments
 (0)