Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.39 KB

File metadata and controls

58 lines (37 loc) · 1.39 KB

Examples

This directory contains simple meshes and scripts for smoke testing.

cube_cavity

Generate the mesh (requires Gmsh):

./make_mesh.sh

This creates cube_cavity.msh with exterior triangle faces tagged as physical 1.

rect_waveguide

Simulate a straight WR-90 rectangular waveguide and sweep S-parameters.

  1. Generate the mesh (requires Gmsh):

    ./make_waveguide_mesh.sh

    View the mesh with gmsh rect_waveguide.msh if desired.

  2. Build and run the demo sweep:

    ./run_waveguide_demo.sh

    This writes examples/waveguide_sparams.csv.

  3. 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 file examples/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

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.csv

This produces a polar plot of the gain pattern in the $xz$-plane.