Skip to content

Phase Mask [Stitching Error]

Digital Twin Specification
Twin Code:
CF-PMST01
Twin Name:
Phase Mask [Stitching Error]
Twin Family:
Phase Masks
Family Role:
Adds randomized detour-phase errors that represent row-to-row stitching errors of a nominal linear grating.
Category:
Component
Type:
Function-Based
Version:
1.1
VLF Package:
Grating Package
Last Updated:
2026-10-03

1 Purpose

The Phase Mask [Stitching Error] models positional stitching errors that can occur when a linear grating is fabricated row by row.

The twin is intended to be placed directly behind an otherwise nominal grating. It does not replace the grating itself. Instead, it adds the phase perturbation associated with random lateral displacement of successive written stripes.

2 Geometric Support

The model represents a sequence of stripes of height \(h\). Each stripe receives an independent lateral displacement \(s\) in the range

\[ -s_{\max}\le s\le+s_{\max}. \tag{1} \]

The stripe pattern is aligned with the component x-axis. Rotate the component relative to the nominal grating when the stripe orientation needs to be aligned orthogonally to the grating grooves.

3 Supported Channels

The current SDK specification defines the following channel behavior:

Channel Behavior
+/+ Stitching-error functionality is applied.
± Not activated.
-/- Pass-through; incident light is not modified.
-/+ Not activated.

4 Simulation Model

The model is based on the detour-phase principle. A lateral displacement \(s\) of a grating stripe with nominal grating period \(d\) produces the phase shift

\[ \phi_s=\frac{2\pi s}{d}. \tag{2} \]

The incident field is decomposed according to the stripe structure. Each stripe is assigned a random displacement \(s\), and the corresponding constant phase offset is applied to that subfield.

Smooth transition edges of width \(\Delta w_e\) are used between neighboring subfields for numerical sampling.

5 Parameters Where This Sheet Adds Guidance

Period \(d\)
Role: Nominal period of the grating whose stitching error is modeled.
Spec-sheet insight: Use the period of the actual nominal grating. The same positional displacement produces a larger detour phase for a smaller period.
Height \(h\)
Role: Defines the height of the written grating rows / stripe decomposition.
Spec-sheet insight: This determines the spatial scale on which independent stitching offsets are applied.
Maximum Stitching Error \(s_{\max}\)
Role: Sets the symmetric range of the randomized lateral displacement.
Spec-sheet insight: The random displacement is drawn between \(-s_{\max}\) and \(+s_{\max}\). The resulting phase error follows directly from Eq. (2).
Beam Diameter \(D\)
Role: Supplies the transverse beam-size information required for field decomposition.
Spec-sheet insight: If the exact beam diameter is uncertain, use a conservative value that fully covers the illuminated region.
Seed
Role: Controls random-number generation.
Spec-sheet insight: According to the existing SDK specification, a positive seed reuses one generated distribution for reproducible simulations, while a negative seed creates a new distribution for each run.
Edge Width \(\Delta w_e\)
Role: Controls smoothing between neighboring stripe subfields.
Spec-sheet insight: Smaller edge width resolves a sharper stitching boundary but requires finer spatial sampling. Increase it when faster numerical evaluation is more important than modeling very sharp edge diffraction.

Use this twin when a nominal linear grating should be investigated together with random row-placement errors introduced during fabrication.

Practical Setup

  1. Build the optical system with the nominal grating.
  2. Place CF-PMST01 directly behind the grating.
  3. Set the grating period \(d\).
  4. Set the stripe height \(h\).
  5. Set the maximum stitching displacement \(s_{\max}\).
  6. Set the beam diameter large enough to cover the illuminated region.
  7. Use a positive seed for reproducible comparison studies.
  8. Use a negative seed when different random realizations are desired between runs.
  9. Reduce Edge Width only together with a sampling-convergence check.
  10. Compare the system with and without the phase mask to isolate the influence of stitching errors.
⚠️Modeling note: This twin models stitching error as a phase perturbation of an otherwise nominal grating. It is not a geometric fabrication model of the full displaced grating structure.
Related Twin Main Distinction
CF-PHMC01 - Phase Mask [Constant] Applies a spatially uniform phase shift rather than stripe-wise random detour phase.
CF-PHMV01 - Phase Mask [Vortex] Applies a deterministic azimuthal phase structure.
CF-PPUD01 - Wavefront Phase Modifier [User Defined] Provides a general user-defined phase function instead of this dedicated stitching-error model.
CS-GRRO01 - Grating [RCWA, Orders] Represents the nominal grating response rather than the additional stitching-error phase perturbation.

8 Possible Replacement Twins

Possible Replacement Twin When It Replaces This Twin
CF-PPUD01 Use when the fabrication-error phase map is known explicitly or follows a custom deterministic model.
Full structure-based grating model Use when the displaced geometry itself must be modeled rigorously rather than represented by detour phase.

9 Further Reading

  • VirtualLab Fusion 2026.2 release notes - current Twin name Phase Mask [Stitching Error].
  • A. Lohmann and B. P. Paris, "Binary Fraunhofer holograms generated by computer," Applied Optics 6(10), 1739-1748 (1967).
  • J. Bucklew and N. C. Gallagher Jr., "Comprehensive error models and a comparative study of some detour-phase holograms," Applied Optics 18(16), 2861-2869 (1979).
  • No dedicated LightTrans tutorial or use case for CF-PMST01 was found in the current documentation repository search.