trapping/notebooks/cross-sections.ipynb

2.1 KiB

In [1]:
%classpath add jar ../build/install/trapping/lib/commons-math3-3.6.1.jar
%classpath add jar ../build/install/trapping/lib/trapping-dev.jar
Added jar: [commons-math3-3.6.1.jar]
Added jar: [trapping-dev.jar]
In [17]:
def scatter = inr.numass.trapping.Scatter.INSTANCE

def e = (1..20) // energy in keV

def factor = 1e-22
def sigmaEl = e.collect{scatter.sigmael(it*1000)/factor}
def sigmaIon = e.collect{scatter.sigmaion(it*1000)/factor}
def sigmaExc = e.collect{scatter.sigmaexc(it*1000)/factor}

def plot = new Plot(logY: true, yLogBase: 10)
plot << new Line(x: e, y: sigmaEl, displayName: "Elastic")
plot << new Line(x: e, y: sigmaIon, displayName: "Ionization")
plot << new Line(x: e, y: sigmaExc, displayName: "Excitation")
In [ ]: