@@ -81,7 +81,7 @@ def main():
81
81
print (f'RustBCA R: { len (reflected [:, 0 ])/ number_ions } Thomas R: { thomas } ' )
82
82
print (f'Time per ion: { delta_time / number_ions * 1e3 } us/{ ion ["symbol" ]} ' )
83
83
84
- #layered target version
84
+ #Next up is the layered target version. I'll add a 50 Angstrom layer of W-H to the top of the target.
85
85
86
86
#1 keV is above the He on W sputtering threshold of ~150 eV
87
87
energies_eV = 1000.0 * np .ones (number_ions )
@@ -96,6 +96,8 @@ def main():
96
96
97
97
print (f'Running RustBCA for { number_ions } { ion ["symbol" ]} ions on { target ["symbol" ]} with hydrogenated layer at { energies_eV [0 ]/ 1000. } keV...' )
98
98
print (f'This may take several minutes.' )
99
+ #Not the different argument order; when a breaking change is due, this will
100
+ #be back-ported to the other bindings as well for consistency.
99
101
output , incident , stopped = compound_bca_list_1D_py (
100
102
ux , uy , uz , energies_eV , [ion ['Z' ]]* number_ions ,
101
103
[ion ['m' ]]* number_ions , [ion ['Ec' ]]* number_ions , [ion ['Es' ]]* number_ions , [target ['Z' ], 1.0 ], [target ['m' ], 1.008 ],
@@ -121,6 +123,7 @@ def main():
121
123
heights , _ , _ = plt .hist (x [np .logical_and (incident , stopped )], bins = 100 , density = True , histtype = 'step' )
122
124
plt .plot ([50.0 , 50.0 ], [0.0 , np .max (heights )* 1.1 ])
123
125
plt .gca ().set_ylim ([0.0 , np .max (heights )* 1.1 ])
126
+
124
127
plt .show ()
125
128
126
129
if __name__ == '__main__' :
0 commit comments