[docs] clarify FDFD-to-FDTD field reconstruction
This commit is contained in:
parent
e50637dc1c
commit
40efe7a450
5 changed files with 51 additions and 5 deletions
|
|
@ -9,9 +9,12 @@ FDFD" workflow:
|
|||
3. solve the matching FDFD problem from the analytic source phasor, and
|
||||
4. compare late real monitor slices against `fdtd.reconstruct_real_e/h(...)`.
|
||||
|
||||
Unlike the complex-source examples, this script does not use phasor extraction
|
||||
as the main output. The comparison target is the real field itself, with both
|
||||
full-plane and mode-weighted monitor errors reported.
|
||||
Unlike the phasor-based examples, this script does not use extracted phasors as
|
||||
the main output. It is a stricter diagnostic: the comparison target is the raw
|
||||
real field itself, with full-plane, mode-weighted, guided-mode, and orthogonal-
|
||||
residual errors reported. Strong phasor agreement can coexist with visibly
|
||||
larger raw-snapshot error because the latter includes weak nonguided tails on
|
||||
the monitor plane.
|
||||
"""
|
||||
|
||||
import numpy
|
||||
|
|
@ -104,7 +107,7 @@ def main() -> None:
|
|||
epsilon=epsilon,
|
||||
)
|
||||
# A small global phase aligns the real-valued source with the late-cycle
|
||||
# monitor comparison. The underlying phasor problem is unchanged.
|
||||
# raw-snapshot diagnostic. The underlying phasor problem is unchanged.
|
||||
j_mode *= numpy.exp(1j * SOURCE_PHASE)
|
||||
monitor_mode = waveguide_3d.solve_mode(
|
||||
0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue