-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Description
A user has pointed out an unusual result - the sputtering yield curves for normal incidence when M1 >> M2 have an unphysical appearance:
It is not yet clear if this is only happening using the default settings, implying a configuration error, or if there is a deeper, more subtle bug. Further investigation is warranted.
To Reproduce
from libRustBCA import *
import numpy as np
import matplotlib.pyplot as plt
from scripts.materials import *
carbon = {
'symbol': 'C',
'name': 'graphite',
'Z': 6.0,
'm': 12.011,
'n': 1.136e29,
'Es': 7.41,
'Eb': 0.0,
'Ec': 3.0
}
num_samples = 10000
angle = 0.0
energies = np.linspace(1, 500, 25)
ycsb = [sputtering_yield(cesium, boron, energy, angle, num_samples) for energy in energies]
yxec = [sputtering_yield(xenon, carbon, energy, angle, num_samples) for energy in energies]
plt.plot(energies, ycsb, label='Cs on B')
plt.plot(energies, yxec, label='Xe on C')
plt.title('Sputtering with libRustBCA')
plt.xlabel('E [eV]')
plt.ylabel('Y [at/ion]')
plt.legend
plt.gca().set_yscale('log')
plt.show()
Expected behavior
The sputtering yield curve should monotonically increase as a function of energy until the sputtering yield peak.
Error messages, output files, or figures
N/A
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested
