syned 1.0.40__tar.gz → 1.0.41__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {syned-1.0.40 → syned-1.0.41}/PKG-INFO +1 -1
- {syned-1.0.40 → syned-1.0.41}/setup.py +1 -1
- syned-1.0.41/syned/beamline/optical_elements/ideal_elements/ideal_fzp.py +183 -0
- {syned-1.0.40 → syned-1.0.41}/syned.egg-info/PKG-INFO +1 -1
- {syned-1.0.40 → syned-1.0.41}/syned.egg-info/SOURCES.txt +1 -0
- {syned-1.0.40 → syned-1.0.41}/LICENSE +0 -0
- {syned-1.0.40 → syned-1.0.41}/MANIFEST.in +0 -0
- {syned-1.0.40 → syned-1.0.41}/README.rst +0 -0
- {syned-1.0.40 → syned-1.0.41}/examples/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/examples/example_beamline.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/examples/example_double_slit.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/examples/example_get_source.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/examples/example_json_input_output.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/setup.cfg +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/optical_elements/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/optical_elements/examples_crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/optical_elements/examples_crystal_asymmetric.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/optical_elements/examples_crystal_yb66.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/optical_elements/examples_ideal_lens.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/optical_elements/examples_mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/optical_elements/examples_screen.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/sources/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/sources/example_bending_magnet_als_infrared.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/sources/example_bending_magnet_esrf1.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/sources/example_source_undulator.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/sources/example_wiggler_als_infrared.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/sources/examples_source_gaussian.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/sources/examples_source_geometrical.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/examples/sources/examples_sources_file_io.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/setup.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beam/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beam/s4_beam.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/absorbers/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/absorbers/s4_screen.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_additional_numerical_mesh_crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_conic_crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_ellipsoid_crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_hyperboloid_crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_numerical_mesh_crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_paraboloid_crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_plane_crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_sphere_crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_toroid_crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_additional_numerical_mesh_grating.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_conic_grating.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_ellipsoid_grating.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_grating.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_hyperboloid_grating.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_numerical_mesh_grating.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_paraboloid_grating.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_plane_grating.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_sphere_grating.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_toroid_grating.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/ideal_elements/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/ideal_elements/s4_beam_movement.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/ideal_elements/s4_empty.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/ideal_elements/s4_ideal_lens.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_additional_numerical_mesh_mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_conic_mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_ellipsoid_mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_hyperboloid_mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_numerical_mesh_mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_paraboloid_mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_plane_mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_sphere_mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_toroid_mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/refractors/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/refractors/s4_conic_interface.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/refractors/s4_crl.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/refractors/s4_interface.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/refractors/s4_lens.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/s4_beamline.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/s4_beamline_element.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/s4_beamline_element_movements.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/s4_optical_element_decorators.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/optical_surfaces/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/optical_surfaces/s4_conic.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/optical_surfaces/s4_mesh.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/optical_surfaces/s4_mesh_old.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/optical_surfaces/s4_optical_surface.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/optical_surfaces/s4_toroid.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/physical_models/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/physical_models/bragg/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/physical_models/bragg/bragg.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/physical_models/mlayer/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/physical_models/mlayer/mlayer.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/physical_models/prerefl/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/physical_models/prerefl/prerefl.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/bending_magnet/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/bending_magnet/s4_bending_magnet.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/bending_magnet/s4_bending_magnet_light_source.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/s4_electron_beam.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/s4_light_source.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/s4_light_source_base.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/source_geometrical/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/source_geometrical/probability_distributions.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/source_geometrical/source_gaussian.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/source_geometrical/source_geometrical.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/source_geometrical/source_grid_cartesian.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/source_geometrical/source_grid_polar.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/hankel_example_srio.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/s4_undulator.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/s4_undulator_light_source.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/source_undulator_factory.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/source_undulator_factory_pysru.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/source_undulator_factory_srw.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/source_undulator_input_output.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/wiggler/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/wiggler/s4_wiggler.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/wiggler/s4_wiggler_light_source.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/tools/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/tools/arrayofvectors.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/tools/graphics.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/tools/sync_f_sigma_and_pi.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/beamline.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/beamline_element.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/element_coordinates.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_element.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_element_with_surface_shape.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/absorbers/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/absorbers/absorber.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/absorbers/beam_stopper.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/absorbers/filter.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/absorbers/holed_filter.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/absorbers/slit.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/crystals/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/crystals/crystal.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/gratings/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/gratings/grating.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/gratings/tmp1.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/ideal_elements/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/ideal_elements/ideal_element.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/ideal_elements/ideal_lens.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/ideal_elements/screen.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/mirrors/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/mirrors/mirror.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/refractors/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/refractors/crl.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/refractors/interface.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/refractors/lens.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/tmp.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/beamline/shape.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/storage_ring/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/storage_ring/electron_beam.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/storage_ring/empty_light_source.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/storage_ring/light_source.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/storage_ring/magnetic_structure.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/storage_ring/magnetic_structures/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/storage_ring/magnetic_structures/bending_magnet.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/storage_ring/magnetic_structures/insertion_device.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/storage_ring/magnetic_structures/undulator.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/storage_ring/magnetic_structures/wiggler.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/syned_object.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/util/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/util/json_tools.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/version.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/widget/__init__.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned/widget/widget_decorator.py +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned.egg-info/dependency_links.txt +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned.egg-info/not-zip-safe +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned.egg-info/requires.txt +0 -0
- {syned-1.0.40 → syned-1.0.41}/syned.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import numpy
|
|
2
|
+
from syned.beamline.optical_elements.ideal_elements.ideal_element import IdealElement
|
|
3
|
+
|
|
4
|
+
class IdealFZP(IdealElement):
|
|
5
|
+
"""
|
|
6
|
+
Defines an ideal Fresnel Zone Plate.
|
|
7
|
+
|
|
8
|
+
Constructor.
|
|
9
|
+
|
|
10
|
+
Parameters
|
|
11
|
+
----------
|
|
12
|
+
name : str, optional
|
|
13
|
+
The name of the optical element.
|
|
14
|
+
focusing_direction : int
|
|
15
|
+
0=None, 1=x (sagittal), 2=z (meridional), 3=2D focusing.
|
|
16
|
+
focal : float
|
|
17
|
+
The focal length in meters.
|
|
18
|
+
nominal_wavelength : float
|
|
19
|
+
The nominal wavelength in m for where the focal length is defined.
|
|
20
|
+
diameter : float
|
|
21
|
+
The FZP diameter in m.
|
|
22
|
+
|
|
23
|
+
"""
|
|
24
|
+
def __init__(self,
|
|
25
|
+
name="Undefined",
|
|
26
|
+
focusing_direction=3, # 0=None, 1=x (sagittal), 2=z (meridional), 3=2D focusing.
|
|
27
|
+
focal=1.0, # focal distance (m)
|
|
28
|
+
nominal_wavelength=1e-10, # nominal wavelength in m
|
|
29
|
+
# r0=10.0e-6, # inner zone radius (m)
|
|
30
|
+
diameter=0.001, # FZP diameter in m
|
|
31
|
+
):
|
|
32
|
+
IdealElement.__init__(self, name=name)
|
|
33
|
+
self._focusing_direction = focusing_direction
|
|
34
|
+
self._focal = focal
|
|
35
|
+
self._nominal_wavelength = nominal_wavelength
|
|
36
|
+
self._diameter = diameter
|
|
37
|
+
|
|
38
|
+
# support text containg name of variable, help text and unit. Will be stored in self._support_dictionary
|
|
39
|
+
self._set_support_text([
|
|
40
|
+
("name" , "Name" , ""),
|
|
41
|
+
("boundary_shape" , "" , ""),
|
|
42
|
+
("focusing_direction", "Focusing direction: 0=None, 1=1D along X, 2=1D along Z, 3=2D", ""),
|
|
43
|
+
("focal" , "Focal length" , "m"),
|
|
44
|
+
("nominal_wavelength", "Nominal wavelength" , "m"),
|
|
45
|
+
("diameter" , "FZP diameter" , "m"),
|
|
46
|
+
] )
|
|
47
|
+
|
|
48
|
+
def focusing_direction(self):
|
|
49
|
+
"""
|
|
50
|
+
Returns the focusing direction.
|
|
51
|
+
|
|
52
|
+
Returns
|
|
53
|
+
-------
|
|
54
|
+
int
|
|
55
|
+
0=None,
|
|
56
|
+
1=1D along X,
|
|
57
|
+
2=1D along Z,
|
|
58
|
+
3=2D.
|
|
59
|
+
"""
|
|
60
|
+
return self._focusing_direction
|
|
61
|
+
|
|
62
|
+
def focal(self):
|
|
63
|
+
"""
|
|
64
|
+
Returns the focal length.
|
|
65
|
+
|
|
66
|
+
Returns
|
|
67
|
+
-------
|
|
68
|
+
float
|
|
69
|
+
|
|
70
|
+
"""
|
|
71
|
+
return self._focal
|
|
72
|
+
|
|
73
|
+
def nominal_wavelength(self):
|
|
74
|
+
"""
|
|
75
|
+
Returns the nominal wavelength.
|
|
76
|
+
|
|
77
|
+
Returns
|
|
78
|
+
-------
|
|
79
|
+
float
|
|
80
|
+
|
|
81
|
+
"""
|
|
82
|
+
return self._nominal_wavelength
|
|
83
|
+
|
|
84
|
+
def diameter(self):
|
|
85
|
+
"""
|
|
86
|
+
Returns the FZP diameter.
|
|
87
|
+
|
|
88
|
+
Returns
|
|
89
|
+
-------
|
|
90
|
+
float
|
|
91
|
+
|
|
92
|
+
"""
|
|
93
|
+
return self._diameter
|
|
94
|
+
|
|
95
|
+
#
|
|
96
|
+
# calculated. The exact expression is rn = sqrt( n lambda f + (n lambda / 2)**2 )
|
|
97
|
+
#
|
|
98
|
+
def rn(self):
|
|
99
|
+
return 0.5 * self.diameter()
|
|
100
|
+
|
|
101
|
+
def r0(self):
|
|
102
|
+
"""
|
|
103
|
+
Returns the innermost radius (approximated calculation r0=sqrt(wavelength * focal)).
|
|
104
|
+
|
|
105
|
+
Returns
|
|
106
|
+
-------
|
|
107
|
+
float
|
|
108
|
+
|
|
109
|
+
"""
|
|
110
|
+
return numpy.sqrt(self.nominal_wavelength() * self.focal())
|
|
111
|
+
|
|
112
|
+
def r0_exact(self):
|
|
113
|
+
"""
|
|
114
|
+
Returns the innermost radius (exact calculation r0=sqrt(wavelength * focal + (wavelength/2)**2)).
|
|
115
|
+
|
|
116
|
+
Returns
|
|
117
|
+
-------
|
|
118
|
+
float
|
|
119
|
+
|
|
120
|
+
"""
|
|
121
|
+
return numpy.sqrt(self.nominal_wavelength() * self.focal() + (0.5 * self.nominal_wavelength())**2)
|
|
122
|
+
|
|
123
|
+
def n_vs_r(self, r): # approximated if f >> diameter; eq 855 in Michette
|
|
124
|
+
"""
|
|
125
|
+
Returns the zone number for a given distance r (approximated calculation).
|
|
126
|
+
|
|
127
|
+
Returns
|
|
128
|
+
-------
|
|
129
|
+
float
|
|
130
|
+
|
|
131
|
+
"""
|
|
132
|
+
return (r ** 2 / self.nominal_wavelength() / self.focal())
|
|
133
|
+
|
|
134
|
+
def n_exact_vs_r(self, r): # Exact, solving n from rn = sqrt( n lambda f + (n lambda / 2)**2 )
|
|
135
|
+
"""
|
|
136
|
+
Returns the zone number for a given distance r
|
|
137
|
+
(exact calculation solving n from rn = sqrt( n lambda f + (n lambda / 2)**2).
|
|
138
|
+
|
|
139
|
+
Returns
|
|
140
|
+
-------
|
|
141
|
+
float
|
|
142
|
+
|
|
143
|
+
"""
|
|
144
|
+
nn = -2 * self.focal() + 2 * numpy.sqrt(self.focal()**2 + r**2)
|
|
145
|
+
return nn / self.nominal_wavelength()
|
|
146
|
+
|
|
147
|
+
def n(self):
|
|
148
|
+
"""
|
|
149
|
+
Returns the zone number for a outermost zone (approximated calculation).
|
|
150
|
+
|
|
151
|
+
Returns
|
|
152
|
+
-------
|
|
153
|
+
float
|
|
154
|
+
|
|
155
|
+
"""
|
|
156
|
+
return self.n_vs_r( self.rn() )
|
|
157
|
+
|
|
158
|
+
def n_exact(self):
|
|
159
|
+
"""
|
|
160
|
+
Returns the zone number for a outermost zone (exact calculation using n_exact_vs_r() ).
|
|
161
|
+
|
|
162
|
+
Returns
|
|
163
|
+
-------
|
|
164
|
+
float
|
|
165
|
+
|
|
166
|
+
"""
|
|
167
|
+
return self.n_exact_vs_r(self.rn())
|
|
168
|
+
|
|
169
|
+
if __name__ == "__main__":
|
|
170
|
+
fzp = IdealFZP(
|
|
171
|
+
name = "Undefined",
|
|
172
|
+
focusing_direction = 3, # 0=None, 1=x (sagittal), 2=z (meridional), 3=2D focusing.
|
|
173
|
+
focal = 1.0, # focal distance (m)
|
|
174
|
+
nominal_wavelength = 1e-10, # nominal wavelength in m
|
|
175
|
+
diameter = 0.001, # FZP diameter in m
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
print(fzp.info())
|
|
179
|
+
print("r0, r0_exact: ", fzp.r0(), fzp.r0_exact())
|
|
180
|
+
print("rn: ", fzp.rn())
|
|
181
|
+
print("n, n_exact: ", fzp.n(), fzp.n_exact())
|
|
182
|
+
|
|
183
|
+
|
|
@@ -150,6 +150,7 @@ syned/beamline/optical_elements/gratings/grating.py
|
|
|
150
150
|
syned/beamline/optical_elements/gratings/tmp1.py
|
|
151
151
|
syned/beamline/optical_elements/ideal_elements/__init__.py
|
|
152
152
|
syned/beamline/optical_elements/ideal_elements/ideal_element.py
|
|
153
|
+
syned/beamline/optical_elements/ideal_elements/ideal_fzp.py
|
|
153
154
|
syned/beamline/optical_elements/ideal_elements/ideal_lens.py
|
|
154
155
|
syned/beamline/optical_elements/ideal_elements/screen.py
|
|
155
156
|
syned/beamline/optical_elements/mirrors/__init__.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/examples/optical_elements/examples_crystal_asymmetric.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/examples/sources/example_bending_magnet_als_infrared.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/absorbers/__init__.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/absorbers/s4_screen.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_conic_crystal.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_crystal.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/crystals/s4_plane_crystal.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_conic_grating.py
RENAMED
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_grating.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/gratings/s4_plane_grating.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/ideal_elements/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/ideal_elements/s4_empty.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_conic_mirror.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_mirror.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_plane_mirror.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_sphere_mirror.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/mirrors/s4_toroid_mirror.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/refractors/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/refractors/s4_crl.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/refractors/s4_interface.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/beamline/optical_elements/refractors/s4_lens.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/source_geometrical/source_geometrical.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/source_geometrical/source_grid_cartesian.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/source_geometrical/source_grid_polar.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/s4_undulator_light_source.py
RENAMED
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/source_undulator_factory_pysru.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/source_undulator_factory_srw.py
RENAMED
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/shadow4/shadow4/sources/undulator/source_undulator_input_output.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syned-1.0.40 → syned-1.0.41}/syned/beamline/optical_elements/ideal_elements/ideal_element.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|