This directory contains simple meshes and scripts for smoke testing.
Generate the mesh (requires Gmsh):
./make_mesh.shThis creates cube_cavity.msh with exterior triangle faces tagged as physical 1.
Simulate a straight WR-90 rectangular waveguide and sweep S-parameters.
-
Generate the mesh (requires Gmsh):
./make_waveguide_mesh.sh
View the mesh with
gmsh rect_waveguide.mshif desired. -
Build and run the demo sweep:
./run_waveguide_demo.sh
This writes
examples/waveguide_sparams.csv. -
Plot, export Touchstone, and compare against the analytic solution:
python examples/plot_waveguide_sparams.py
The script generates a plot image (
examples/waveguide_sparams.png, not tracked in git) and writes a Touchstone fileexamples/waveguide_sparams.s2p.
Sample CSV and Touchstone outputs are included in this repository for reference; regenerate them with the commands above to verify the results locally.
patch_antenna_pattern.csv shows a sample 2D far-field pattern exported
from a patch antenna simulation. Visualize it with the helper script:
python ../tools/plot_pattern.py patch_antenna_pattern.csvThis produces a polar plot of the gain pattern in the