-
Notifications
You must be signed in to change notification settings - Fork 15
Example: Spherical Geometry
RustBCA includes a homogeneous spherical target option. One can use this as such: ./rustBCA SPHERE input_file_spherical.toml
. This example reproduces the boron nitride 2D geometry case but in 3D. Due to the homoegeneous spherical geometry being mathematically defined as opposed to mesh-based, this case runs faster than Example: 2D Geometry.
Run the example using:
cargo run --release SPHERE examples/boron_nitride_sphere.toml
In the figure below, trajectories of hydrogen (medium blue) in a boron nitride dust grain can be seen. In the upper right of the image, a backreflected hydrogen ion can be seen - that is, it did not have sufficient energy to escape the local surface binding potential, so it was trapped on the surface. Sputtered atoms can be seen exiting the sphere.
Note that the trajectories exit the sphere from all directions, as opposed to the 2D geometry case which is effectively an infinite cylinder.
The input file for this simulation is located below:
To run this input file, run cargo run --release SPHERE examples/boron_nitride_sphere.toml
in the rustbca directory.