syned.beamline.optical_elements.ideal_elements package
Submodules
syned.beamline.optical_elements.ideal_elements.ideal_element module
- class syned.beamline.optical_elements.ideal_elements.ideal_element.IdealElement(name='Undefined', boundary_shape=None)[source]
Bases:
OpticalElement
syned.beamline.optical_elements.ideal_elements.ideal_fzp module
- class syned.beamline.optical_elements.ideal_elements.ideal_fzp.IdealFZP(name='Undefined', focusing_direction=3, focal=1.0, nominal_wavelength=1e-10, diameter=0.001)[source]
Bases:
IdealElementDefines an ideal Fresnel Zone Plate.
Constructor.
- Parameters:
name (str, optional) – The name of the optical element.
focusing_direction (int) – 0=None, 1=x (sagittal), 2=z (meridional), 3=2D focusing.
focal (float) – The focal length in meters.
nominal_wavelength (float) – The nominal wavelength in m for where the focal length is defined.
diameter (float) – The FZP diameter in m.
- focusing_direction()[source]
Returns the focusing direction.
- Returns:
0=None, 1=1D along X, 2=1D along Z, 3=2D.
- Return type:
int
- n()[source]
Returns the zone number for a outermost zone (approximated calculation).
- Return type:
float
- n_exact()[source]
Returns the zone number for a outermost zone (exact calculation using n_exact_vs_r() ).
- Return type:
float
- n_exact_vs_r(r)[source]
Returns the zone number for a given distance r (exact calculation solving n from rn = sqrt( n lambda f + (n lambda / 2)**2).
- Return type:
float
- n_vs_r(r)[source]
Returns the zone number for a given distance r (approximated calculation).
- Return type:
float
- r0()[source]
Returns the innermost radius (approximated calculation r0=sqrt(wavelength * focal)).
- Return type:
float
syned.beamline.optical_elements.ideal_elements.ideal_lens module
- class syned.beamline.optical_elements.ideal_elements.ideal_lens.IdealLens(name='Undefined', focal_x=1.0, focal_y=1.0)[source]
Bases:
IdealElementDefines an ideal lens. It converts a plane wave into: * an spherical converging wave (if focal_x=focal_y). * a toroidal converging wave (if focal_x != focal_y). * a cylindrical wave (if focal_x or focal_y is infinity).
Constructor.
- Parameters:
name (str, optional) – The name of the optical element.
focal_x (float) – The focal length in meters along the X direction.
focal_y (float) – The focal length in meters along the Y direction.
syned.beamline.optical_elements.ideal_elements.screen module
- class syned.beamline.optical_elements.ideal_elements.screen.Screen(name='Undefined')[source]
Bases:
IdealElementDefines an ideal screen (a plane perpendiculat to the optical axis).
Constructor.
- Parameters:
name (str, optional) – The name of the optical element.