This project defines a reproducible benchmark suite for RF and microwave wave ports. It validates two related but different formulations:
- Modal wave ports represent the eigenmodes of a cross-section. They are the natural benchmark basis for hollow metallic guides, dielectric guides, substrate-integrated guides, and other structures described by TE, TM, or hybrid modes.
- Terminal wave ports represent voltages and currents on distinct signal and reference conductors. They are the natural benchmark basis for coaxial, planar, balanced, differential, and multiconductor transmission lines.
Every example has two independently organized stages:
2D_Modevalidates the cross-section, mesh, port definition, mode identity, cutoff behavior, impedance, and propagation quantities.3D_Sparamextrudes the accepted cross-section into a uniform fixture and compares only the complete complex S-matrix.
Each stage has its own Convergence_study and Comparison directories.
Convergence exploration must not be hidden inside the primary comparison
scripts.
Important
This repository currently defines the benchmark architecture and templates. It does not yet contain validated example results. A result is not a standard merely because a solver completed; its reference source, confidence, convergence, conventions, inputs, and version must all be recorded.
The project envelope is the interval from the quasi-static limit through
300 GHz. This does not mean that one geometry, one port, or one simulation
must cover the whole interval.
- Store
0 Hzonly as an analytical or quasi-static limit. Power-wave S-parameters and time-domain excitations use a finite positive lower frequency. - Give every example its own validated frequency band.
- For a cutoff mode, distinguish below-cutoff, cutoff-guard, and propagating regions.
- For a TEM or quasi-TEM fundamental mode, record
fundamental_cutoff: noneand bound the high-frequency range using the first higher-order mode, radiation/leakage, dispersion, and material-model validity. - Use multiple scaled examples to cover the project envelope. Standard rectangular waveguide alone requires different guide sizes as frequency changes.
- Above
110 GHz, dimensional tolerance, surface roughness, conductivity, dielectric dispersion, connector/interface definitions, and reference-plane uncertainty become increasingly important and must be preserved in the example provenance.
A useful planning split is:
| Project region | Primary benchmark emphasis |
|---|---|
| Quasi-static limit to 1 GHz | Coaxial, parallel-plate, stripline, twin-lead, and other terminal lines |
| 1–30 GHz | Terminal lines plus classical hollow and substrate-integrated guides |
| 30–110 GHz | Millimeter-wave hollow, dielectric, integrated, and planar guides |
| 110–300 GHz | Scaled metallic guides, on-wafer planar lines, dielectric guides, and fabrication-sensitive structures |
These are organizational regions, not universal operating limits.
Choose the benchmark basis from the conductor topology and the desired network definition.
| Cross-section | Preferred benchmark port | Fundamental behavior |
|---|---|---|
| Closed hollow guide without signal/reference terminals | Modal | TE/TM modes with cutoff |
| Open or closed dielectric guide without circuit terminals | Modal | TE/TM/hybrid modes; cutoff depends on the family |
| SIW or related TE-like integrated guide | Modal | TE-like modes with cutoff |
| Inner conductor enclosed by an outer reference conductor | Terminal | TEM fundamental; higher-order cutoff |
| Signal conductor referenced to one or more ground conductors | Terminal | TEM/quasi-TEM fundamental; higher-order cutoff |
| Balanced or multiconductor line | Terminal | Common, differential, and coupled terminal bases |
| Ambiguous or discontinuous cross-section | Review required | Move the plane or justify the basis |
A modal solver can mathematically solve modes of many multiconductor lines. That does not make its raw modal S-matrix identical to a terminal S-matrix. Compare modal and terminal results only after matching:
- port reference planes and de-embedding;
- time-harmonic and traveling-wave conventions;
- reference impedance and power normalization;
- channel ordering and mode count;
- an explicit modal-to-terminal basis transformation, when required.
Never force a terminal port onto a hollow TE/TM guide that has no defensible signal and reference terminals.
Group examples first by port family and then by physical structure:
examples/
├── Modal_Wave_Port/
│ └── {example}/
└── Terminal_Wave_Port/
└── {example}/
Every {example} uses this structure:
{example}/
├── README.md
├── 2D_Mode/
│ ├── Convergence_study/
│ │ ├── Mesh.md
│ │ ├── Port.md
│ │ ├── Frequency_Sweep.md
│ │ └── Recommended_Setup.yaml
│ └── Comparison/
│ ├── Mode_Simulation.py
│ ├── Standard_Mode_Results.py
│ ├── Comparison_plot.py
│ └── Results/
│ ├── manifest.json
│ ├── simulated_modes.csv
│ ├── standard_modes.csv
│ └── comparison_metrics.csv
└── 3D_Sparam/
├── Convergence_study/
│ ├── Mesh.md
│ ├── Port.md
│ ├── Domain.md
│ ├── Runtime.md
│ ├── Line_Length.md
│ └── Recommended_Setup.yaml
└── Comparison/
├── SMatrix_Simulation.py
├── Standard_SMatrix_Results.py
├── Comparison.py
└── Results/
├── manifest.json
├── simulated.sNp
├── standard.sNp
└── comparison_metrics.csv
Use examples/_template as the copyable
starting point.
2D_Mode/Convergence_study determines the recommended 2D setup:
Mesh.mdstudies transverse grid resolution, conductor/gap resolution, and numerical stability of complex mode quantities.Port.mdstudies port extent, boundary connectivity, integration paths, mode count, polarization, and mode sorting/tracking.Frequency_Sweep.mdstudies frequency sampling, cutoff localization, mode crossings, and field-overlap tracking.Recommended_Setup.yamlcontains only values accepted by those studies.
2D_Mode/Comparison keeps three responsibilities separate:
Mode_Simulation.pybuilds and runs the candidate 2D mode solver usingRecommended_Setup.yaml.Standard_Mode_Results.pygenerates or loads the independent standard mode results and their confidence metadata.Comparison_plot.pyaligns the two datasets, applies validity masks, computes errors, and generates comparison plots.
Mode_Simulation.py must never silently generate the standard against which
it is judged.
3D_Sparam/Convergence_study determines the recommended 3D setup:
Mesh.mdstudies the 3D spatial grid and local feature refinements.Port.mdstudies port-plane inset, port extent, channel count, normalization, reference planes, and de-embedding.Domain.mdstudies transverse padding and absorber/PML distance.Runtime.mdstudies source bandwidth, run time, shutoff, and energy decay.Line_Length.mdstudies whether the fixture length gives resolvable phase and attenuation without unnecessary numerical loss or cost.Recommended_Setup.yamlcontains only values accepted by those studies.
3D_Sparam/Comparison also separates three responsibilities:
SMatrix_Simulation.pybuilds and runs the candidate uniform 3D fixture.Standard_SMatrix_Results.pygenerates or loads the independent standard complex S-matrix and its confidence metadata.Comparison.pyaligns reference planes, conventions, impedances, frequency samples, and bases before computing comparison metrics.
The 3D release benchmark compares S-parameters only. Three-dimensional field monitors may be used for debugging but are not part of the standard comparison.
The word standard means the comparison reference, not necessarily an international standard. Every standard dataset must record:
reference_method;confidence;- source title, URL, DOI, or report number;
- equations or source-code repository and exact commit;
- software version and input-file hashes;
- geometry, material, boundary, mesh, and frequency assumptions;
- units, time convention, impedance normalization, and reference planes;
- convergence evidence;
- license and redistribution status;
- the code path that created the committed standard table.
| Reference method | Default confidence | Requirements |
|---|---|---|
| Exact analytical solution | High | The implemented equations are exact for the modeled assumptions, limiting cases are tested, and units/conventions are explicit |
| Reliable open-source solver | Medium | The code is publicly auditable, version/commit and inputs are pinned, convergence is demonstrated, and at least one relevant published paper is cited |
| CST or Ansys HFSS | Medium | The complete model/export, solver version, mesh convergence, port basis, normalization, and reference planes are available |
| Other commercial software | Low | Lower confidence by default; preserve the same provenance fields and do not promote screenshots or plots to numerical standards |
Confidence belongs to a specific dataset, not to a product name. Downgrade or reject a reference when its assumptions, inputs, mesh, convergence, reference planes, or complex convention are missing.
Use an analytical standard whenever the modeled geometry and materials satisfy its assumptions. Typical examples include:
- PEC rectangular and circular waveguide cutoff and propagation constants;
- ideal coaxial and parallel-plate TEM impedance and propagation;
- ideal homogeneous stripline or twin-lead limits;
- dielectric slab characteristic equations;
- the uniform matched-line relation (S_{21}=S_{12}=e^{-\gamma L}) with (S_{11}=S_{22}=0), after convention and reference-plane alignment.
An approximation is not promoted to high confidence merely because it is a closed-form expression. Mark conformal-mapping, quasi-static, empirical, and curve-fit formulas with their approximation range.
Use a reliable open-source solver when no exact solution exists or when the benchmark includes loss, dispersion, periodicity, or complex geometry.
Candidate tools include:
- openEMS for FDTD S-parameter references;
- MPB for eigenmodes and dispersion of dielectric or periodic guides;
- Meep for time-domain propagation and mode decomposition;
- another open solver only after its formulation, tests, license, and maintenance status are reviewed.
For every open-source standard:
- Pin the exact release and commit.
- Commit or hash the complete input.
- Run an independent mesh/domain/runtime convergence study.
- Preserve the raw complex numerical output.
- Cite at least one paper relevant to the solver method and one paper relevant to the physical waveguide example whenever available.
- Explain any conversion from the solver's native convention.
A digitized plot without reproducible input remains low confidence.
CST and HFSS data are medium confidence only when they are reproducible. Required evidence includes:
- exact software/version and solver type;
- native project or a complete parameterized reconstruction;
- adaptive-mesh or refinement history;
- material models and units;
- port geometry, mode/terminal ordering, impedance, and renormalization;
- reference planes and de-embedding;
- raw complex CSV or Touchstone export;
- frequency interpolation policy.
A screenshot, manually copied curve, or undocumented Touchstone file is low confidence. Results from other commercial tools are low confidence by default.
When references disagree:
- verify geometry, units, materials, conventions, and reference planes;
- compare each source only inside its documented validity range;
- rerun convergence independently;
- retain all conflicting datasets and explain the decision;
- never average incompatible results to manufacture a standard.
If no defensible standard exists, label the example reference_pending
instead of assigning a pass/fail result.
This chapter is the initial catalog, not a declaration that every policy is already validated. Each family will receive its own example README, references, dimensions, material range, cutoff table, and convergence evidence later.
These examples are compared in a modal TE/TM/hybrid basis.
| Family | Typical mode behavior | Cutoff and reference strategy | 0–300 GHz relevance |
|---|---|---|---|
| Rectangular PEC waveguide | Dominant TE10 with higher TE/TM modes | Exact analytical cutoff, propagation, and impedance for the ideal guide | Core benchmark from microwave through 300 GHz using scaled standard guide sizes |
| Circular PEC waveguide | Dominant degenerate TE11 pair; TE/TM hierarchy | Exact Bessel-root cutoff; explicitly track polarization and degeneracy | Common feed, antenna, and metrology guide |
| Elliptical metallic waveguide | TE/TM-like modes described with elliptical coordinates | Analytical/semi-analytical characteristic equations plus numerical validation | Useful degeneracy-breaking extension of circular guide |
| Single- and double-ridged waveguide | Lower dominant cutoff and wider single-mode range than an equivalent hollow guide | Numerical standard plus published paper; analytical approximations are secondary | Broadband microwave and millimeter-wave benchmark |
| Dielectric-loaded metallic waveguide | TE/TM or hybrid modes altered by the dielectric loading | Exact result only for special symmetric cases; otherwise converged numerical reference | Tests material interfaces, dispersion, and mode tracking |
| Substrate-integrated waveguide (SIW) | TE-like mode confined by top/bottom metal and via fences | Approximate equivalent-width formulas plus converged full-wave reference | Important planar microwave/mmWave guide |
| Half-mode, ridged, folded, or empty SIW | Modified TE-like or hybrid SIW modes | Converged open-source/commercial result and a relevant paper | Advanced integrated-guide coverage |
| Dielectric slab waveguide | TE/TM families; the ideal fundamental slab mode may have no cutoff | Exact characteristic equation for ideal isotropic layers | Clean dielectric-interface and open-boundary benchmark |
| Circular dielectric rod | Hybrid HE/EH modes; fundamental behavior depends on materials and boundary model | Characteristic equation for ideal rods, otherwise numerical | Low-loss millimeter-wave guide |
| Rectangular dielectric rod | Hybrid modes with no simple general closed form | Converged eigenmode reference plus paper | Fabrication-friendly dielectric guide |
| Image guide and NRD guide | Dielectric mode confined by one or two conducting planes | Special-case theory plus converged eigenmode reference | Classical millimeter-wave dielectric guides |
| Goubau or single-conductor surface-wave line | Bound surface mode without a separate circuit reference terminal | Modal eigenmode reference and field-containment checks | Tests open, slowly decaying surface modes |
| Ridge/groove gap waveguide | Bandgap-confined quasi-TE or hybrid propagation | Dispersion/eigenmode calculation plus finite 3D reference | Contactless millimeter-wave interconnect family |
| Corrugated, spoof-plasmon, and periodic slow-wave guide | Dispersive Bloch/surface modes and stopbands | Unit-cell dispersion plus finite-length S-matrix; no universal cutoff formula | Advanced broadband/slow-wave coverage |
Special cautions:
- A modal port row/column represents a port-mode pair, so the matrix dimension changes when the requested channel set changes.
- Circular and square guides can contain degenerate modes whose orientation is not determined by mode index alone.
- Dielectric and surface guides need a port-domain convergence study because their fields extend into open space.
- Periodic guides need both unit-cell dispersion and finite-length S-parameter validation.
These examples are compared in a conductor-terminal basis. Differential and common-mode channels are derived only after confirming terminal labels.
| Family | Typical mode behavior | Cutoff and reference strategy | 0–300 GHz relevance |
|---|---|---|---|
| Circular coaxial line | Exact TEM fundamental with no low-frequency cutoff | Exact impedance/propagation for the ideal line; calculate first TE/TM higher-order cutoff | Primary near-DC-to-mmWave terminal benchmark |
| Rectangular or square coaxial line | TEM fundamental with higher-order modes | Analytical/conformal result where valid, otherwise converged numerical reference | Tests noncircular closed terminal geometry |
| Parallel-plate line | TEM fundamental plus higher-order TE/TM modes | Exact ideal TEM result; finite-width fringing requires numerical validation | Simplest two-terminal benchmark |
| Twin-lead/two-wire line | Balanced TEM/quasi-TEM open mode | Exact or quasi-static homogeneous-medium reference plus domain convergence | Balanced-line benchmark |
| Microstrip | Dispersive quasi-TEM fundamental with no strict geometric cutoff | Quasi-static formulas are approximate; use a converged solver/paper for broadband standard | Core planar line from RF through mmWave |
| Centered or offset stripline | TEM in an ideal homogeneous dielectric; asymmetry changes impedance | Analytical/quasi-static reference for ideal cases, numerical reference otherwise | Shielded planar benchmark |
| Open CPW | Quasi-TEM signal-to-coplanar-ground mode | Conformal/quasi-static formulas plus open-domain numerical convergence | On-wafer and broadband planar benchmark |
| Grounded CPW | Quasi-TEM mode with side grounds and a separate reference plane | Converged numerical reference; check reference connectivity and via fences | PCB and on-wafer benchmark |
| Slotline and coplanar strip | Balanced/odd quasi-TEM slot modes | Analytical approximation plus converged numerical standard | Complements CPW with different terminal symmetry |
| Suspended stripline and inverted microstrip | Quasi-TEM mode with increased air-field fraction | Numerical/paper standard and domain convergence | Low-loss microwave/mmWave planar guides |
| Edge-coupled microstrip | Coupled even/odd terminal modes | Multiconductor quasi-TEM or numerical reference; transform to common/differential basis explicitly | Coupled-line and differential benchmark |
| Differential stripline | Differential and common terminal modes | Multiconductor reference with exact terminal ordering and mixed-mode transform | High-speed and RF differential interconnect |
| Multiconductor CPW | Coupled terminal modes and non-diagonal impedance matrix | Converged terminal-basis reference | Tests matrix impedance and basis transforms |
| Substrate-integrated coaxial line | TEM-like signal conductor enclosed by via/plane reference | Numerical reference plus higher-order cutoff study | Integrated closed terminal guide |
| Finline or antipodal finline | Hybrid/slot-like propagation | Use a terminal benchmark only when signal/reference conductors and paths are unambiguous; otherwise classify as modal | Conditional mmWave transition/guide example |
Special cautions:
- “No fundamental cutoff” does not mean “simulate exactly at 0 Hz.”
- Open lines need sufficient port extent and domain padding for field decay.
- A
TerminalWavePortrequires a defensible voltage/current definition that does not intersect unintended metal. - The first higher-order mode, radiation onset, substrate mode, connector limit, or material-model limit sets the upper benchmark frequency.
- Coupled structures require a documented single-ended-to-mixed-mode transformation before matrix comparison.
Implement the catalog in increasing order of ambiguity:
- rectangular PEC waveguide;
- circular PEC waveguide;
- circular coaxial line;
- parallel-plate line;
- ideal stripline;
- microstrip;
- open and grounded CPW;
- dielectric slab;
- dielectric rod and SIW;
- ridged, gap, periodic, and multiconductor families.
This order establishes exact analytical gates before introducing open boundaries, dispersion, degeneracy, periodicity, and coupled terminal bases.
- Construct the canonical cross-section in explicit units.
- Assign conductors, dielectrics, background, and boundaries.
- Place the port plane in a straight, locally uniform section.
- Plot materials, conductors, boundaries, integration paths, and propagation direction from the exact solver inputs.
- Load only the accepted settings from
2D_Mode/Convergence_study/Recommended_Setup.yaml.
For every requested frequency and channel, record:
- complex effective index (n_\mathrm{eff});
- effective permittivity when physically meaningful;
- propagation constant (\gamma=\alpha+j\beta) under the documented convention;
- field wave impedance for TE/TM modes;
- terminal characteristic-impedance matrix for terminal modes;
- normalized 2D electric and magnetic fields;
- mode label, polarization/symmetry, sorting rule, and overlap with the prior frequency.
Do not store field wave impedance and terminal characteristic impedance in one
ambiguous impedance column.
Track modes by field overlap and physical symmetry, not only by solver index.
Comparison_plot.py must:
- load candidate and standard tables independently;
- verify compatible units and conventions;
- match modes by label, symmetry, and field overlap;
- apply cutoff and confidence masks;
- compute complex and scalar errors;
- plot candidate, standard, difference, and validity region;
- write machine-readable metrics and a manifest.
For every TE/TM or higher-order mode:
-
calculate analytical cutoff when available;
-
estimate numerical cutoff from the solved propagation behavior;
-
record both and their relative difference;
-
divide the sweep into:
- below cutoff: (f < 0.95f_c);
- cutoff guard band: (0.95f_c \le f \le 1.05f_c);
- propagating band: (f > 1.05f_c).
The five-percent guard is a default. Widen it when reference uncertainty, dispersion, degeneracy, or numerical sensitivity requires more margin.
Below cutoff, the mode is evanescent. In the guard band, impedance, normalization, group velocity, mode ordering, and finite-run accuracy can be highly sensitive. Therefore:
- show below-cutoff and guard-band results, but exclude them from the default propagating S-parameter gate;
- use a separate evanescent reference if below-cutoff transmission is an intended benchmark;
- split a sweep at each higher-order cutoff when the propagating matrix dimension changes;
- never compare matrices of different dimensions solely because their frequency coordinates match.
Record fundamental_cutoff: none, select a finite positive lower frequency,
and report the first higher-order cutoff or other upper-band limit. A
quasi-TEM line may still become dispersive, radiative, leaky, or multimode.
- Extrude the accepted 2D cross-section by length (L).
- Place equivalent ports at uniform cross-sections on both ends.
- Use compatible channel definitions, materials, and frequency samples.
- record both reference planes and every de-embedding distance/sign.
- load only the accepted settings from
3D_Sparam/Convergence_study/Recommended_Setup.yaml.
Choose (L) long enough to resolve propagation phase and attenuation, but not so long that numerical loss and cost dominate. For a matched uniform single-mode line, the analytical standard is approximately (S_{11}=S_{22}=0) and (S_{21}=S_{12}=e^{-\gamma L}) after convention and reference-plane alignment.
Before comparison, verify the same:
- frequency samples;
- port reference planes and de-embedding;
- time and traveling-wave convention;
- reference impedance and renormalization;
- channel ordering and count;
- modal, terminal, single-ended, or mixed-mode basis.
Save and compare:
- linear magnitude and dB magnitude;
- unwrapped phase where the magnitude is above the numerical noise floor;
- insertion and return loss;
- complex residual (S_{ij}^{test}-S_{ij}^{standard});
- reciprocity error for reciprocal fixtures;
- passivity error for passive fixtures.
Do not gate the phase of a nearly zero reflection coefficient. Use absolute linear reflection or complex residual instead.
Keep three errors separate:
- standard accuracy: candidate versus the independent standard;
- port-formulation difference: compatible modal versus terminal results after basis conversion;
- numerical convergence: accepted setup versus extra-refined setup.
Agreement between two candidate solvers or two port formulations is not proof that either is correct.
Each convergence file changes one setup family at a time. Keep the physical geometry, materials, comparison convention, and all unrelated settings fixed.
Every study must record:
- coarse, nominal, and extra-refined variants;
- exact changed values;
- mode or S-matrix comparison over the valid frequency mask;
- worst channel and frequency;
- mesh/cell count, runtime, and estimated or actual cost;
- failed, divergent, or incomplete variants;
- selected setting and engineering justification;
- input and result hashes.
For 3D S-parameters, the suggested setup-convergence target is accepted versus
extra-refined agreement within 0.2 dB magnitude and 5° phase over the
declared propagating passband. Each example may tighten or replace these
values with justification.
The convergence documents write their accepted settings to the stage-specific
Recommended_Setup.yaml. Primary comparison scripts read that file and do not
contain hidden convergence loops.
Every 2D and 3D result directory must contain a manifest with:
- example and port-family name;
- input and geometry hashes;
- solver, adapter, package, and reference-code versions;
- geometry/material provenance;
- standard method and confidence;
- paper citations and code commit where applicable;
- requested/detected channel labels;
- cutoff values and validity masks;
- port geometry, direction, basis, impedance, and reference planes;
- mesh statistics and convergence source files;
- runtime and termination reason;
- complex convention and every conjugation, renormalization, de-embedding, or basis transformation;
- acceptance thresholds and metrics;
- remote task identifiers, logs, and cost when applicable.
Never start a paid cloud run merely because a model serializes. Inspect the 2D ports and 3D model locally, record the exact model hash and estimate, and obtain explicit approval for that model before submission.
- The example is placed under
Modal_Wave_PortorTerminal_Wave_Portwith a stated physical reason. - Geometry, materials, units, boundaries, and frequency range are documented.
- The standard method, confidence, source, code/version, and paper references are recorded.
- 2D mesh, port, and frequency convergence studies are separate.
- 2D modes are tracked by physical identity across frequency.
- Fundamental and higher-order cutoffs are reported or marked
none. - 2D candidate and standard results are generated independently.
- 3D mesh, port, domain, runtime, and line-length studies are separate.
- The 3D fixture is uniform and its reference planes are recorded.
- The complete complex S-matrix is preserved.
- Modal/terminal or single-ended/mixed-mode bases are aligned explicitly.
- Below-cutoff and guard-band points are labeled.
- Standard accuracy and numerical convergence are reported separately.
- Raw outputs, compact tables, manifests, and input hashes are preserved.
Port and result definitions:
Traceable and high-frequency waveguide references:
- NIST review of IEEE 1785 rectangular-waveguide standards above 110 GHz
- NIST TN 2109: physical models and dimensional traceability of WR15 standards
- NIST guided-wave electromagnetics program
- IET review of substrate-integrated waveguide circuits and antennas
Open-source numerical references: