Skip to content

Commit c57272b

Browse files
committed
Removed accelerated ions experimental feature.
1 parent 214aab7 commit c57272b

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,4 @@ cpr_rootfinder = ["rcpr"]
4949
distributions = ["ndarray"]
5050
no_list_output = []
5151
parry3d = ["parry3d-f64"]
52-
accelerated_ions = []
5352
python = ["pyo3"]

src/bca.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@ pub fn single_ion_bca<T: Geometry>(particle: particle::Particle, material: &mate
8181
//Choose impact parameters and azimuthal angles for all collisions, and determine mean free path
8282
let binary_collision_geometries = bca::determine_mfp_phi_impact_parameter(&mut particle_1, &material, &options);
8383

84-
#[cfg(feature = "accelerated_ions")]
85-
let distance_to_target = if !material.inside(particle_1.pos.x, particle_1.pos.y, particle_1.pos.z) {
86-
let (x, y, z) = material.geometry.closest_point(particle_1.pos.x, particle_1.pos.y, particle_1.pos.z);
87-
((x - particle_1.pos.x).powi(2) + (y - particle_1.pos.y).powi(2) + (z - particle_1.pos.z).powi(2)).sqrt()
88-
} else {
89-
0.
90-
};
91-
9284
let mut total_energy_lost_to_recoils = 0.;
9385
let mut total_asymptotic_deflection = 0.;
9486
let mut normalized_distance_of_closest_approach = 0.;
@@ -176,13 +168,9 @@ pub fn single_ion_bca<T: Geometry>(particle: particle::Particle, material: &mate
176168
}
177169

178170
//Advance particle in space and track total distance traveled
179-
#[cfg(not(feature = "accelerated_ions"))]
180171
let distance_traveled = particle_1.advance(
181172
binary_collision_geometries[0].mfp, total_asymptotic_deflection);
182173

183-
#[cfg(feature = "accelerated_ions")]
184-
let distance_traveled = particle_1.advance(
185-
binary_collision_geometries[0].mfp + distance_to_target - material.geometry.get_energy_barrier_thickness(), total_asymptotic_deflection);
186174

187175
//Subtract total energy from all simultaneous collisions and electronic stopping
188176
let energy_lost_to_electronic_stopping = bca::subtract_electronic_stopping_energy(&mut particle_1, &material, distance_traveled,

0 commit comments

Comments
 (0)