Package API
This page lists main classes in this package.
beam
shadow4.beam The S4 beam
Defines the shadow4 beam and associated methods and utilities. |
sources
shadow4.sources The S4 sources
shadow4.sources.source_geometricalThe S4 geometrical sourcesGeometrical sources.
Grid source defined in cartesian coordinates.
Grid source defined in polar coordinates.
This is a Gaussian source in both space and divergence coordinates.
shadow4.sources.bending_magnetThe S4 bending magnetBending magnet magnetic structure.
shadow4.sources.bending_magnet.s4_bending_magnet_light_sourceBending magnet light source.
shadow4.sources.wigglerThe S4 wigglerS4 Wiggler magnetic structure.
Wiggler light source.
shadow4.sources.undulatorThe S4 undulatorsS4 Undulator magnetic structure.
S4 Undulator magnetic structure.
shadow4.sources.undulator.s4_undulator_gaussian_light_sourceUndulator light source.
beamline optical elements
shadow4.beamline.optical_elements The S4 optical elements
shadow4.beamline.optical_elements.absorbersThe absorbers, slits, sops, screensThe S4 screen optical element: it deals with screens, slits, beam-stoppers and absorbers (as in shadow3).
shadow4.beamline.optical_elements.mirrorsThe mirrorsThe s4 mirror base class (optical element and beamline element).
The s4 plane mirror (optical element and beamline element).
The s4 sphere mirror (optical element and beamline element).
The s4 toroid mirror (optical element and beamline element).
shadow4.beamline.optical_elements.mirrors.s4_ellipsoid_mirrorThe s4 ellipsoid mirror (optical element and beamline element).
shadow4.beamline.optical_elements.mirrors.s4_paraboloid_mirrorThe s4 paraboloid mirror (optical element and beamline element).
shadow4.beamline.optical_elements.mirrors.s4_hyperboloid_mirrorThe s4 hyperboloid mirror (optical element and beamline element).
The s4 conic mirror (optical element and beamline element).
shadow4.beamline.optical_elements.mirrors.s4_numerical_mesh_mirrorThe s4 numerical mesh mirror (optical element and beamline element).
shadow4.beamline.optical_elements.mirrors.s4_additional_numerical_mesh_mirrorThe s4 additional numerical mesh mirror (optical element and beamline element).
shadow4.beamline.optical_elements.gratingsThe gratingsThe s4 grating base class (optical element and beamline element).
The s4 plane grating (optical element and beamline element).
shadow4.beamline.optical_elements.gratings.s4_sphere_gratingThe s4 sphere grating (optical element and beamline element).
shadow4.beamline.optical_elements.gratings.s4_toroid_gratingThe s4 toroid grating (optical element and beamline element).
shadow4.beamline.optical_elements.gratings.s4_ellipsoid_gratingThe s4 ellipsoid grating (optical element and beamline element).
shadow4.beamline.optical_elements.gratings.s4_paraboloid_gratingThe s4 paraboloid grating (optical element and beamline element).
shadow4.beamline.optical_elements.gratings.s4_hyperboloid_gratingThe s4 hyperboloid grating (optical element and beamline element).
The s4 conic grating (optical element and beamline element).
shadow4.beamline.optical_elements.gratings.s4_numerical_mesh_gratingThe s4 numerical mesh grating (optical element and beamline element).
shadow4.beamline.optical_elements.gratings.s4_additional_numerical_mesh_gratingThe s4 additional numerical mesh grating (optical element and beamline element).
shadow4.beamline.optical_elements.crystalsThe crystalsThe s4 crystal base class (optical element and beamline element).
The s4 plane crystal (optical element and beamline element).
shadow4.beamline.optical_elements.crystals.s4_sphere_crystalThe s4 sphere crystal (optical element and beamline element).
shadow4.beamline.optical_elements.crystals.s4_toroid_crystalThe s4 toroid crystal (optical element and beamline element).
shadow4.beamline.optical_elements.crystals.s4_ellipsoid_crystalThe s4 ellipsoid crystal (optical element and beamline element).
shadow4.beamline.optical_elements.crystals.s4_paraboloid_crystalThe s4 paraboloid crystal (optical element and beamline element).
shadow4.beamline.optical_elements.crystals.s4_hyperboloid_crystalThe s4 hyperboloid crystal (optical element and beamline element).
The s4 conic crystal (optical element and beamline element).
shadow4.beamline.optical_elements.crystals.s4_numerical_mesh_crystalThe s4 numerical mesh crystal (optical element and beamline element).
shadow4.beamline.optical_elements.crystals.s4_additional_numerical_mesh_crystalThe s4 additional numerical mesh crystal (optical element and beamline element).
shadow4.beamline.optical_elements.multilayersThe multilayersThe s4 multilayer base class (optical element and beamline element).
shadow4.beamline.optical_elements.multilayers.s4_plane_multilayerThe s4 plane multilayer (optical element and beamline element).
shadow4.beamline.optical_elements.multilayers.s4_sphere_multilayerThe s4 sphere multilayer (optical element and beamline element).
shadow4.beamline.optical_elements.multilayers.s4_toroid_multilayerThe s4 toroid multilayer (optical element and beamline element).
shadow4.beamline.optical_elements.multilayers.s4_ellipsoid_multilayerThe s4 ellipsoid multilayer (optical element and beamline element).
shadow4.beamline.optical_elements.multilayers.s4_paraboloid_multilayerThe s4 paraboloid multilayer (optical element and beamline element).
shadow4.beamline.optical_elements.multilayers.s4_hyperboloid_multilayerThe s4 hyperboloid multilayer (optical element and beamline element).
shadow4.beamline.optical_elements.multilayers.s4_conic_multilayerThe s4 conic multilayer (optical element and beamline element).
shadow4.beamline.optical_elements.multilayers.s4_numerical_mesh_multilayerThe s4 numerical mesh multilayer (optical element and beamline element).
shadow4.beamline.optical_elements.multilayers.s4_additional_numerical_mesh_multilayerThe s4 additional numerical mesh multilayer (optical element and beamline element).
shadow4.beamline.optical_elements.refractorsThe refractorsS4 refractive interface.
The s4 refractive lens (optical element and beamline element).
The s4 compound refractive lens, CRL (optical element and beamline element).
shadow4.beamline.optical_elements.refractors.s4_transfocatorThe s4 transfocator (optical element and beamline element).
shadow4.beamline.optical_elements.refractors.s4_conic_interfaceThe s4 conic refractive interface (optical element and beamline element).
shadow4.beamline.optical_elements.refractors.s4_numerical_mesh_interfaceThe s4 numerical mesh refractive interface (optical element and beamline element).
shadow4.beamline.optical_elements.refractors.s4_additional_numerical_mesh_interfaceThe s4 additional numerical mesh refractive interface (optical element and beamline element).
shadow4.beamline.optical_elements.ideal_elementsThe ideal elementsshadow4.beamline.optical_elements.ideal_elements.s4_beam_movementThe s4 beam movement ideal element (optical element and beamline element).
The s4 empty (pass-through) ideal element (optical element and beamline element).
shadow4.beamline.optical_elements.ideal_elements.s4_ideal_lensThe s4 ideal lens (optical element and beamline element).
shadow4.beamline.optical_elements.ideal_elements.s4_ideal_fzpThe s4 ideal Fresnel zone plate (optical element and beamline element).
shadow4.beamline.optical_elements.compoundThe compound elementsThe s4 compound optical element (combination of multiple beamline elements).
beamline
shadow4.beamline The S4 beamline
Defines the S4 beamline. |
|
Defines the S4 beamline element. |
|
Container for the variables describing the movements of a S4 beamline element. |
|
Defines the functionality for shadow4 optical elements. |
sources (base classes)
shadow4.sources The S4 source base classes
Defines the a Base LightSource to support non-synchrotron sources. |
|
Defines the shadow4 synchrotron LightSource (the base class of beanding magnet, wiggler and undulator lightsources). |
|
Defines the shadow4 electron beam. |
|
Defines the a LightSource with a beam defined in a HDF5 file. |
|
Defines the a LightSource merging several beamlines. |
shadow4.sources.wigglerThe S4 wiggler (optimized)
optical surfaces
shadow4.optical_surfaces The S4 optical surface implementations
Abstract class defining the interfaces of the optical surfaces to be implemented in the subclasses. |
|
Defines the shadow4 Conic class to deal with conic surfaces (plane, sphere, ellipsoid, paraboloid and hyperboloid). |
|
Defines the shadow4 Toroid class to deal with a toroidal surface (Quartic equation). |
|
Defines the shadow4 Mesh class to deal with a numerical surfaces (defined by an array of points). |
physical models
shadow4.physical_models Physical model calculators
Crystal structure factor preprocessor for Bragg diffraction calculations. |
|
python version of the multilayer code in shadow. |
|
python version of the mirror reflectivity code and refractive index calculations in shadow. |
tools
shadow4.tools Utility modules
Operations on arrays of 3D vectors with shape |
|
Tools (functions) to operate with the beamline (instance of S4Beamline). |
|
Matplotlib-based plotting tools for shadow4 beam data. |
|
Logging verbosity helpers for shadow4. |