thompson_sigmund_sampleΒΆ

A sample plot for T-S sputtered particle.

''' A sample plot for T-S sputtered particle.
'''
import numpy as np
import matplotlib.pyplot as plt

from irfpy.util.sputtering import ThompsonSigmund

def main():
    '''Main script'''
    n0 = 1
    yld = 5
    Eb = 1.5
    Ein = 1000.
    m1 = 1
    m2 = 25

    ts0 = ThompsonSigmund(n0, yld, Eb, Ein, m1, m2)

    elist = np.logspace(-1, 4, 1000)

    f = ts0.f(elist)

    plt.plot(elist, f)
    plt.xscale('log')
    plt.yscale('log')

    plt.axvline(ts0.ei)
    


if __name__ == "__main__":
    main()