SPECIMEN GALLERY · examples/*.nyx.json

Specimens & Field Atlas

Verified finite-element specimens across 2D vector photonics, cylindrical PML resonators, elastic MEMS anchor loss, and 3D open cavities.

Every specimen in this atlas is drawn directly by nyx.figure(...) from the unmodified example projects in examples/, using SI metres in the wafer frame: x and y span the wafer plane, z is the surface normal, and +y is the propagation axis of a waveguide (exp(-j beta y)). A 2D cross-section therefore lies in the (x, z) plane, and all result fields (Ex, Ey, Ez, ux, uz) are exported in wafer coordinates.

2D Vector Photonics & Cylindrical PML

  • 15_soi_wire (ems::modes, P2): A 500 nm × 300 nm silicon core (w = 5e-7 m, t = 3e-7 m, slab = 0.0) embedded in silica cladding and buried oxide, solved at lambda = 1550 nm (freq = 193.414 THz) with local near-field mesh grading (h = 40 nm in Si, 90 nm in BOX_near/clad_near, 300 nm outer). Hierarchical degree-2 Nédélec transverse edge elements paired with P2 longitudinal phi yield neff 1 = 2.671811 (n_g = 4.1969, 94.5% power in Si) and neff 2 = 2.333849 (n_g = 4.6294, 85.1% in Si) in 0.08 s across 986 triangles (2,015 DOFs).
  • 18_wgm_cylindrical_pml (ems::modes, P2): A 1.2 um radius dielectric core (eps_r = 12.0) inside a 2.2 um air cladding ringed by an 800 nm 5-layer structured quadrilateral cylindrical PML (kappa_max = 2.0, order = 2.0, target_reflection = 1e-6). The complex shift-and-invert solver resolves four whispering-gallery modes (5,225 DOFs) in 0.38 s down to a maximum algebraic residual of 8.716e-14.

Elastic Anchor Loss & 3D Open Cavities

  • 11_anchor_loss (sms::eigenfrequency, P2 plane strain): A 20 mm × 300 mm elastic beam (E = 200 GPa, nu = 0.3, rho = 7850 kg/m^3) anchored onto a 600 mm × 350 mm substrate flanked on -x, +x, and -z by 5-layer Cartesian PML wings (thickness = 0.2 m, kappa_max = 2.0, strength = 3.0). Across 4,832 DOFs (0.086 s, max residual 6.255e-12), nyx-sms separates high-Q cantilever flexure (183.703 Hz, Q = 14,444.6, layer fraction = 2.71e-7) from substrate-radiating modes (2.286–2.762 kHz, Q = 1.46–1.61, layer fraction = 0.27–0.52).
  • 20_cavity_3d_spherical_pml (ems::cavity): An open 25 mm radius air sphere wrapped in a 10 mm 5-layer spherical PML shell (r_in = 0.025 m, strength = 16.480). projected_shift_invert_complex projects out zero-frequency gradient modes and solves 3,622 DOFs in 0.68 s (max residual 1.054e-8), recovering the triply-degenerate fundamental leaky resonance at 1.642024e9 + 1.700781e9i Hz (Q = 0.483) and the higher mode at 2.824384e9 + 2.557435e9i Hz (Q = 0.552). Both cutaway3d and slice3d plates evaluate expressions on un-averaged 8-subtet P2 CellFields, preserving exact normal-field jumps across material boundaries.
18 / 18
01_capacitor DFS

Parallel-plate capacitor with two dielectrics (electrostatics, 2D)

2D dfs `electrostatic` study, P2 elements across regions [left, right] with 2 boundary conditions.

electrostatic 2 domains
nyx --batch examples/01_capacitor.nyx.json
02_cantilever SMS

Cantilever beam (solid mechanics, static, 2D plane stress)

2D sms `static` study, P2 elements across regions [plate] with 2 boundary conditions.

static 1 domains
nyx --batch examples/02_cantilever.nyx.json
03_heated_plate DFS

Heated plate with convective cooling (heat transfer, 2D, transient)

2D dfs `heat_transient` study, P2 elements across regions [plate] with 2 boundary conditions.

heat_transient 1 domains
nyx --batch examples/03_heated_plate.nyx.json
04_thermal_bar SMS

Thermal expansion of a bar (heat + solid, 2D)

2D sms `static` study (coupled: dfs + sms), P2 elements across regions [plate] with 1 boundary condition.

static 1 domains
nyx --batch examples/04_thermal_bar.nyx.json
05_block_cantilever SMS

Block cantilever (solid mechanics, 3D, a square section swept along y)

2D sms `static` study, P2 elements across regions [plate] with 2 boundary conditions.

static 1 domains
nyx --batch examples/05_block_cantilever.nyx.json
06_wr90_waveguide EMS

WR-90 rectangular waveguide modes (EM waves, 2D cross-section)

2D ems `modes` study, P2 elements across regions [plate].

modes 1 domains
nyx --batch examples/06_wr90_waveguide.nyx.json
07_loaded_waveguide EMS

Dielectric-loaded waveguide (EM waves, 2D cross-section)

2D ems `modes` study, P2 elements across regions [air, dielectric].

modes 2 domains
nyx --batch examples/07_loaded_waveguide.nyx.json
09_pml_slab EMS

Dielectric slab guide with PML ends (EM waves, complex modes)

2D ems `modes` study, P2 elements across regions [air*, slab] with 2 boundary conditions.

modes 2 domains
nyx --batch examples/09_pml_slab.nyx.json
10_plate_with_hole SMS

Plate with a hole (solid mechanics, stress concentration)

2D sms `static` study, P2 elements across regions [plate] with 3 boundary conditions.

static 1 domains
nyx --batch examples/10_plate_with_hole.nyx.json
Beam on a PML substrate: anchor loss (solid eigenfrequencies, complex frequency and Q)
11_anchor_loss SMS

Beam on a PML substrate: anchor loss (solid eigenfrequencies, complex frequency and Q)

2D sms `eigenfrequency` study, P2 elements across regions [beam, substrate*] with 5 boundary conditions.

eigenfrequency 2 domains
nyx --batch examples/11_anchor_loss.nyx.json
12_drilled_plate SMS

Plate with a drilled hole in 3D, the section swept along y (solid mechanics, stress concentration)

2D sms `static` study, P2 elements across regions [plate] with 2 boundary conditions.

static 1 domains
nyx --batch examples/12_drilled_plate.nyx.json
14_box_cavity EMS

Rectangular cavity: 3D electromagnetic eigenmodes (40 x 30 x 20 mm, perfect conductor walls)

2D ems `cavity` study, P2 elements across regions [plate].

cavity 1 domains
nyx --batch examples/14_box_cavity.nyx.json
Silicon wire on 300 nm SOI at 1550 nm: TE0 and TM0 modes with Stokes parameters and Poincare sphere (EM waves, 2D cross-section)
15_soi_wire EMS

Silicon wire on 300 nm SOI at 1550 nm: TE0 and TM0 modes with Stokes parameters and Poincare sphere (EM waves, 2D cross-section)

2D ems `modes` study, P2 elements across regions [BOX, BOX_near, Si, clad, clad_near].

modes 5 domains
nyx --batch examples/15_soi_wire.nyx.json
16_soi_hybrid_wire EMS

300 nm SOI wire with a sloped left wall: hybrid modes tilted on the Poincare sphere (EM waves, 2D cross-section)

2D ems `modes` study, P2 elements across regions [BOX, BOX_near, Si, clad, clad_near].

modes 5 domains
nyx --batch examples/16_soi_hybrid_wire.nyx.json
17_disk_anchor_loss SMS

Disk on a post on a substrate: anchor loss of a body of revolution (axisymmetric solid eigenfrequencies, complex frequency and Q)

2D sms `axisymmetric_eigenfrequency` study, P2 elements across regions [disk, post, substrate*] with 3 boundary conditions.

axisymmetric_eigenfrequency 3 domains
nyx --batch examples/17_disk_anchor_loss.nyx.json
Dielectric cylinder with outward cylindrical PML annulus (EM waves, 2D cylindrical Quad shells)
18_wgm_cylindrical_pml EMS

Dielectric cylinder with outward cylindrical PML annulus (EM waves, 2D cylindrical Quad shells)

2D ems `modes` study, P2 elements across regions [cladding*, core] with 1 boundary condition.

modes 2 domains
nyx --batch examples/18_wgm_cylindrical_pml.nyx.json
19_sphere_axisym_pml EMS

Axisymmetric dielectric sphere with outward spherical PML shell (EM waves, axisymmetric modes)

2D ems `axisymmetric_modes` study, P2 elements across regions [air*, sphere] with 1 boundary condition.

axisymmetric_modes 2 domains
nyx --batch examples/19_sphere_axisym_pml.nyx.json
3D open spherical resonator with outward spherical PML shell (EM waves, 3D cavity eigenfrequencies)
20_cavity_3d_spherical_pml EMS

3D open spherical resonator with outward spherical PML shell (EM waves, 3D cavity eigenfrequencies)

3D ems `cavity` study, P1 elements across regions [air*] with 1 boundary condition.

cavity 1 domains
nyx --batch examples/20_cavity_3d_spherical_pml.nyx.json