{% extends "base.html" %} {% from "_pgm_geometry_help.html" import pgm_geometry_help %} {% from "_fourier_help.html" import fourier_help %} {% set optional_placeholders = {'mirror_surface_axis_offset_mm': 'Use beam offset', 'mirror_downstream_edge_offset_mm': 'Derived from optic separation'} %} {% block title %}PGM working range · GraxPy{% endblock %} {% block body %}

PGM working range

Define or reuse a grating and a mirror, then calculate the working range of an SX700 plane grating monochromator.

Manage saved PGMs Manage PGM runs
{% if setup and setup.note %}

{{ setup.note }}

{% endif %}
{% for material in materials %} {% endfor %}

Grating

{% with editor = grating_editor %}{% include "_pgm_grating_fields.html" %}{% endwith %}

Live preview

Updating…

Idle

Plane mirror

{% with editor = mirror_editor %}{% include "_pgm_mirror_fields.html" %}{% endwith %}

Layer stack preview

Updating…

Diffraction

This calculation uses S (TE) polarization. Groove density comes from the grating above.

Geometry and mechanical limits

{% include "_pgm_geometry_drawing.html" %}
{% for group, group_class, fields in [ ('Optics', 'optics', [ ('mirror_length_mm', 'LM', 'Mirror length', 'mm', '1'), ('grating_length_mm', 'LG', 'Grating length', 'mm', '1'), ('edge_margin_mm', 'm', 'Edge margin', 'mm', '0.1')]), ('Beam', 'beam', [ ('beam_offset_mm', 'b', 'Beam offset', 'mm', '0.1'), ('beam_height_mm', 'H', 'Beam height', 'mm', '0.1')]), ('Rotation axes', 'axes', [ ('mirror_grating_axis_dy_mm', 'v', 'Axis vertical offset', 'mm', '0.1'), ('mirror_axis_dx_mm', 'h', 'Mirror axis horizontal offset', 'mm', '0.1')]), ('Mirror position on its axis', 'position', [ ('optic_dx_mm', 'D', 'Optic separation', 'mm', '1'), ('mirror_surface_axis_offset_mm', 'c', 'Mirror surface axis offset', 'mm, optional', '0.1'), ('mirror_downstream_edge_offset_mm', 'a', 'Mirror downstream edge offset', 'mm, optional', '0.1')]), ('Mechanical limits', 'limits', [ ('theta_min_deg', 'Θmin', 'Mirror angle minimum', '°', '0.1'), ('theta_max_deg', 'Θmax', 'Mirror angle maximum', '°', '0.1'), ('beta_min_deg', '|β|min', 'Grating angle minimum', '°', '0.1'), ('beta_max_deg', '|β|max', 'Grating angle maximum', '°', '0.1'), ('crit_distance', 'dmin', 'Minimum mirror–grating distance', 'mm', '0.1')]) ] %}
{{ group }}
{% for name, symbol, label, unit, step in fields %} {% set optional = name in optional_placeholders %} {% endfor %}
{% endfor %}

Scan and solver

{% for name, label, step in [ ('energy_min_eV','Energy minimum (eV)','1'), ('energy_max_eV','Energy maximum (eV)','1'), ('c_min','CFF minimum','0.1'), ('c_max','CFF maximum','0.1'), ('n_energy','Energy map points','1'), ('n_c','CFF map points','1'), ('rcwa_energy_nodes','Grating energy nodes','1'), ('rcwa_cff_nodes','Grating CFF nodes','1'), ('rcwa_harmonics','Fourier orders','1') ] %} {% endfor %} {% include '_worker_fields.html' %}

The grating is solved at adaptive nodes and interpolated onto the displayed map.

How it works
{% endblock %}