ocelot.optics.elements

optics elements

Module Contents

Classes

OptElement

OptElement is an optics building element with an arbitrary set of parameters attached

Aperture

all optical element sizes are for circular aperture

Lense

Mirror

plane mirror

EllipticMirror

OptElement is an optics building element with an arbitrary set of parameters attached

ParabolicMirror

Grating

Crystal

Filter_freq

OptDrift

Free space

Detector

Geometry

Material

Functions

debug(*args)

warn(*args)

info(*args)

ocelot.optics.elements.debug(*args)
ocelot.optics.elements.warn(*args)
ocelot.optics.elements.info(*args)
class ocelot.optics.elements.OptElement(r, roll_ang, pitch_ang, yaw_ang, size, id)

OptElement is an optics building element with an arbitrary set of parameters attached

__hash__(self)

Return hash(self).

__eq__(self, other)

Return self==value.

class ocelot.optics.elements.Aperture(r=[0, 0, 0], d=[0, 0], no=[0, 0, 1], size=[1, 1, 0.1], id=None, type='circular')

all optical element sizes are for circular aperture add Aperture element in front to model more complex shapes/apertures

slit(self, x, y)
class ocelot.optics.elements.Lense(r=[0, 0, 0], no=[0, 0, 1], s1=0.0, s2=0.0, D=1.0, n=0.99, id='')
c_fun(self, r)
class ocelot.optics.elements.Mirror(r=[0, 0, 0], roll_ang=0.0, pitch_ang=0.0, yaw_ang=0.0, size=[1.0, 1.0, 0.1], id=None)

Bases: ocelot.optics.elements.OptElement

plane mirror

class ocelot.optics.elements.EllipticMirror(r=[0, 0, 0], roll_ang=0.0, pitch_ang=0.0, yaw_ang=0.0, size=[1.0, 1.0, 0.2], a=[1, 1], id='')

Bases: ocelot.optics.elements.OptElement

OptElement is an optics building element with an arbitrary set of parameters attached

class ocelot.optics.elements.ParabolicMirror(r=[0, 0, 0], no=[0, 0, 1], a=[1, 1], size=[1.0, 1.0, 0.1])
class ocelot.optics.elements.Grating(r=[0, 0, 0], no=[0, 1, 0], size=[1.0, 1.0, 0.1], d=0, id='')
class ocelot.optics.elements.Crystal(r=[0, 0, 0], no=[0, 0, 1], size=[1, 1, 0.1], id='')
slit(self, x, y)
class ocelot.optics.elements.Filter_freq(r=[0, 0, 0], no=[0, 0, 1], size=[1, 1, 1], id='', filename='')
class ocelot.optics.elements.OptDrift(r=[0, 0, 0], size=[0, 0, 0], id='')

Free space

class ocelot.optics.elements.Detector(r=[0, 0, 0], size=[1.0, 1.0, 0], no=[0, 0, 1], nx=101, ny=101, id='')
hit(self, r)
clear(self)
class ocelot.optics.elements.Geometry(geo=[])
__call__(self)
__getitem__(self, idx)
__setitem__(self, idx, val)
find(self, id)
create_lookup_tables(self)
get_c(self, r)
class ocelot.optics.elements.Material(n=1.0)
ocelot.optics.elements.MaterialDb