Skip to content

Source Code

Jon Drobny edited this page May 29, 2020 · 10 revisions

Main

main.rs includes the core code loop, I/O, constants and imports, and the data structures Vector and Vector4.

Particle

particle.rs includes the Particle struct, used for tracking ions and atoms in the code. Functions for rotation, advancement in space, and refraction of particles are also included.

Material

material.rs contains the Material struct and associated functions. Material includes methods for determining the electronic stopping power, pulling information from the mesh, and determining whether points are inside or outside of the material.

Mesh

mesh.rs contains the Mesh2D struct and associated data structures and functions for handling inhomogeneous composition of materials.

BCA

bca.rs contains the main BCA algorithms that involve both particles and materials, including distance of closest approach calculation and scattering angle determination.

Interactions

interactions.rs contains the interatomic potentials used in the code.

Click Pages above to see all pages in the Wiki.

Start Here

Home page

Installation

Selected Benchmarks

Frequently Asked Questions

FAQ

This page is a work in progress.

Using the Standalone Code

Input Files

Output Files

Error Messages

Interaction Potentials

Standalone Code Examples

Layered Targets

2D Geometry

Spherical Geometry

3D Geometry

Gaseous Targets

Multiple Interaction Potentials

Output Histograms

Bindings

Python

C/C++

Fortran

Clone this wiki locally