openEMS on cloudHPC: validating FDTD against measured microstrip antennas

Published by Ruggero Poletto on

Sheen patch: Ez in the substrate as the Gaussian pulse runs down the feed and rings in the patch, openEMS v0.37.0 on cloudHPC

openEMS v0.37.0 on cloudHPC reproduces measured microstrip antennas within 0.2–0.6 % in resonant frequency, and the whole validation study below cost €1.83 of compute. We tested it against two classic references with published measurements: the line-fed patch antenna of Sheen et al. (1990), the benchmark nearly every FDTD code is checked against, and the NASA parasitic microstrip arrays of Lee et al. (1987), which add gain and beamwidth to the comparison.

Key results:

  • Sheen patch: main resonance at 7.56 GHz, as in the paper; coarse and fine meshes agree within 0.5 dB.
  • NASA single patch: resonance 12.675 GHz against 12.70 GHz measured (−0.2 %); beamwidths within 6°.
  • NASA arrays (3, 7 and 5 elements): gain within ±1.2 dB of the measurement, and the H-plane narrowing with array size reproduced (86° → 53° → 16° against 80° → 47° → 16°).
  • Meshing lesson: gaps between radiating edges must be resolved; gaps between non-radiating edges can stay coarse.

All the scripts are plain openEMS Python, run on cloudHPC exactly as written: no wrapper, no GUI, no licence.

Sheen patch: Ez in the substrate as the Gaussian pulse runs down the feed and rings in the patch, openEMS v0.37.0 on cloudHPC

openEMS and FDTD in a nutshell

openEMS is an open-source finite-difference time-domain (FDTD) solver for Maxwell’s equations, developed by Thorsten Liebig and distributed under the GPL. It solves the fields on a rectilinear Yee grid, step by step in time, and is driven from Python or Octave through the CSXCAD geometry library.

FDTD has one big advantage for antenna work: a single run gives the whole frequency response. The model is excited with a Gaussian pulse, the time signals at the port are recorded, and a Fourier transform turns them into S-parameters and input impedance over the whole band. A frequency-domain FEM code needs one solve per frequency point. Far-field patterns come from a near-field to far-field (NF2FF) transformation on a box around the antenna, at as many frequencies as you ask for.

How cloudHPC runs it

The cloudHPC openEMS app takes the case folder as you would run it on your own PC:

  • Python mode: every *.py in the folder is run, in alphabetical order, inside a virtual environment with the openEMS and CSXCAD libraries; a requirements.txt is installed if present.
  • Several cases in one job: one subfolder per case; they run one after the other, and a relaunch skips the cases already completed.
  • Threads: openEMS is multi-threaded and uses all the vCPU of the machine. FDTD is memory-bandwidth bound, so the speed-up flattens beyond 8–16 threads: all the runs here used 8 vCPU.
  • Results: everything the scripts write is packed in OPENEMS.tar.gz.

One detail worth knowing if you start from the openEMS tutorials: FDTD.Run() changes the working directory to the simulation folder, so save your plots and CSV files with absolute paths, or they end up inside it.

Case 1: the Sheen line-fed patch antenna

The line-fed rectangular patch of Sheen, Ali, Abouzahra and Kong (1990) resonates at 7.56 GHz in openEMS, matching the ~7.5 GHz of the original paper. It is the reference case for 3D FDTD on planar circuits: a patch on Duroid fed by a microstrip line close to one edge.

ParameterValue
Substrateεr = 2.2, h = 0.794 mm, infinite ground plane
Patch12.45 mm across the feed × 16 mm along the feed
Feed line2.46 mm wide, 2.09 mm from the patch edge
Band0–20 GHz, Gaussian pulse
PortopenEMS microstrip (MSL) port, reference plane 4 mm before the patch
BoundariesPEC below the ground, 8-cell PML on the other five faces
Sheen et al. (1990) line-fed patch, top view with dimensions

Setup in openEMS

The mesh follows the openEMS “thirds rule” at every metal edge: a line 1/3 of a cell inside the metal and one 2/3 outside, which captures the edge singularity without a very fine mesh. The substrate gets four cells across its thickness. The run stops when the field energy has decayed by 50 dB.

Results and mesh convergence

MeshCells per λ at 20 GHzCellsSolver time (8 vCPU)S11 dip
Coarse150.34 M24 s7.56 GHz
Fine302.1 M173 s7.56 GHz, −20.3 dB

The coarse and fine meshes agree within about 0.5 dB over the whole 0–20 GHz band, so 15 cells per wavelength is already converged for this case.

Sheen patch |S11| from 0 to 20 GHz, coarse and fine meshes, openEMS v0.37.0

Case 2: the NASA parasitic microstrip arrays

NASA TM-100168 (Lee, Acosta, Dahele and Lee, 1987) measured identical rectangular patches where only the centre one is driven and the others are excited by coupling alone. Table 1 of the memo gives resonant frequency, gain and both 3 dB beamwidths for four layouts, which makes it a far richer test than an S11 curve.

ParameterValue
SubstrateCuflon, εr = 2.17, h = 10 mil (0.254 mm)
Patcha = 7.8 mm (resonant side) × b = 5.19 mm
Gap between patchesd = 0.8 mm
Layoutssingle patch, 3- and 7-element linear arrays, 5-element cross
Feedcoaxial probe on the centre patch only

In the linear arrays the patches stand side by side and couple across their non-radiating edges. The cross adds two patches above and below the centre one, coupling across its radiating edges.

NASA TM-100168 layouts: single patch, 3- and 7-element linear arrays, 5-element cross

Modelling choices

  • Probe: a 50 Ω lumped port from the ground to the patch.
  • Losses: copper as a lossy conducting sheet (σ = 5.8·10⁷ S/m, 17 µm) and Cuflon with tan δ = 0.00045.
  • Mesh: 20 cells per wavelength at 17 GHz with the thirds rule at every edge, four cells across the 10 mil substrate; 0.8–4.3 M cells depending on the layout.
  • Far field: NF2FF on 21–41 frequencies between 12.3 and 13.3 GHz, giving directivity, radiation efficiency, gain and beamwidths against frequency.
  • Resonance: read at the peak of the input resistance, which does not depend on how well the probe is matched.

What the paper does not give

Three inputs are missing from the memo and had to be assumed: the exact probe position (we placed it on the centre line, 2.8 mm from the radiating edge, about 50 Ω), the ground plane size (we tested margins of 10, 25 and 50 mm around the layout), and the connector and cable losses included in the measured gain. They set the limit on how closely any simulation can match.

Results: the single patch

The single NASA patch resonates at 12.675 GHz in openEMS against 12.70 GHz measured, an error of 0.2 %, and its beamwidths land within 6° of the measurement. Gain is the one quantity that depends strongly on what the paper leaves out.

Single patchLossless, 10 mm groundLossy, 10 mmLossy, 25 mmLossy, 50 mmMeasured
Resonance (GHz)12.72512.67512.67512.67512.70
Directivity (dBi)8.248.247.087.71–
Radiation efficiency0.9960.8630.8570.857–
Gain (dBi)8.227.606.417.044.9
Beamwidths E × H (°)71 × 8171 × 81105 × 8681 × 79100 × 80
  • The resonance does not depend on the ground plane: 12.675 GHz for every margin.
  • Copper and dielectric losses cost 0.65 dB: efficiency stays at 0.86 on the 10 mil substrate.
  • The E-plane pattern does depend on the ground plane: with a finite board, diffraction at its edges moves the E-plane beamwidth between 71° and 105° and the gain by ±0.6 dB, and not monotonically. The measured 100° points to a board of about 1 λ beyond the patch, our 25 mm case.
  • The remaining 1.5 dB of gain is plausibly the connector, cable and mismatch losses that sit inside a 1987 gain measurement but outside the simulation.

Across 12.3–13.3 GHz the single patch is well behaved: gain 6.2–6.6 dBi, efficiency 0.85–0.89, beamwidths 105–107° × 86–88°.

Results: the parasitic arrays

Every array has two coupled modes close together, and only one of them radiates well: openEMS reproduces the measured gain of that radiating mode within ±1.2 dB and the narrowing of the H-plane beam with array size. All cases below are lossy, with a 25 mm ground margin and 5 cells across each gap.

LayoutRin peak (GHz)Max gain (dBi) at GHzBeamwidths E × H (°)Measured: GHz / dB / E × H
Single patch12.6756.6 at 13.10105 × 8612.70 / 4.9 / 100 × 80
3-element linear12.8808.10 at 12.70107 × 5312.95 / 8.1 / 95 × 47
7-element linear12.9408.88 at 12.625107 × 16 (at 12.80)13.00 / 10.0 / 80 × 16
5-element cross12.7609.55 at 12.67543 × 47 (G = 8.5 dBi at Rin peak)13.19 / 8.6 / 50 × 55
Gain, directivity and efficiency against frequency for the four layouts, with the measured values

Two modes, one of them almost dark

The input resistance shows a sharp, high-Q peak (241 Ω for the 3-element array, 777 Ω without losses) a little above the main resonance. In that mode the currents on the parasitic patches largely cancel the driven one: energy stays trapped, copper losses burn it, and radiation efficiency drops to 25 % for the 3-element array and to 5 % for the 7-element one. A lossless run confirmed this is physics, not a copper model artefact: away from that mode the lossless efficiency is 1.0 and the lossy one 0.91.

Just below it sits the radiating mode, where all patches are in phase: efficiency 0.85, gain at its maximum and the narrow H-plane beam. This two-mode structure is what the loops in the memo’s measured impedance loci show. It also means a far field evaluated at a single frequency can land on the wrong mode: always sweep it.

3-element array: gain, efficiency and input resistance against frequency, lossy and lossless, 25 and 50 mm ground

Where model and measurement disagree

  • Coupling strength: the measured resonance moves up with more patches (12.70 → 13.19 GHz for the cross), more than openEMS predicts (12.675 → 12.76 GHz); the cross is 3.3 % low.
  • The 7-element array: its most directive mode (10.7 dBi at 12.90 GHz) radiates poorly in the model (efficiency 0.21), while the real antenna reached 10.0 dB of gain there.
  • Gain trend: measured gain rises 3.2 dB from single patch to 3-element array; openEMS gives about 1.6 dB.

With the probe position and board size unknown, and fabrication tolerances on a 0.8 mm gap at 13 GHz, these differences are within what a 1987 measurement can settle.

Meshing lesson: which gaps to resolve

Refining the 0.8 mm gaps from about one cell to five changed the linear arrays by less than 0.05 dB, but moved the cross by 105 MHz and 0.4 dB. The difference is where the gap sits.

LayoutCoupling acrossRin peak, coarse → refinedMax gain, coarse → refinedSolver time, coarse → refined
3-elementnon-radiating edges12.875 → 12.880 GHz8.07 → 8.10 dBi7 → 13 min
7-elementnon-radiating edges12.935 → 12.940 GHz8.84 → 8.88 dBi16 → 34 min
5-element crossradiating edges12.865 → 12.760 GHz9.14 → 9.55 dBi10 → 25 min

Along a non-radiating edge the fringing field is weak, and a coarse cell captures the coupling. At a radiating edge the fringing field is what makes the patch radiate, and in a narrow gap it concentrates between the two edges: there the gap must be resolved. Practical rule: put at least five cells across gaps that face radiating edges; leave the others coarse and save half the run time.

A local refinement does not shorten the time step here, because the 0.064 mm cells across the substrate already set it: the extra cost is only the extra cells and the longer ringing of the better-resolved coupled modes.

Run times and costs on cloudHPC

The whole study, 23 cases in 8 jobs, cost €1.83 on 8 vCPU spot instances (AMD EPYC, standard RAM). openEMS ran at 250–430 million cell updates per second and settled on 4–7 threads.

JobCasesCells per caseSolver time per caseCost
Sheen patch, first test (4 vCPU)10.11 M16 s€0.023
Sheen patch, coarse + fine (×2)20.34 / 2.1 M24 s / 3 min€0.152
NASA single + 3-element, coarse + fine, lossless40.8–6.0 M1.5–23 min€0.355
NASA losses and ground plane sweep40.8–4.3 M1.5–15 min€0.216
NASA far-field frequency sweeps41.7–4.3 M3–14 min€0.304
NASA 7-element and cross22.4–2.5 M10–16 min€0.233
NASA gap refinement32.2–2.9 M13–34 min€0.548
Total23€1.83

The coarse meshes were enough for every conclusion except the cross, so a production study of this kind runs in a few minutes per variant. Spot instances are fine for openEMS: a preempted job is relaunched in the same folder and the cases already completed are skipped.

Conclusions and practical tips

openEMS v0.37.0 is a reliable tool for planar antennas: resonances within 0.2–0.6 % of measurement, correct beam shapes and gains in the right range, for less than a euro per study on cloudHPC.

  1. Check the geometry against the paper’s figure before comparing anything: a patch turned by 90° still gives a clean, converged and wrong answer.
  2. Read the resonance at the peak of the input resistance, not at the S11 minimum: the S11 dip depends on how the feed is matched and can point to a different feature.
  3. Sweep the far field over frequency. Coupled structures hide high-Q modes that radiate poorly; a single-frequency evaluation can land on one.
  4. Model the losses on thin substrates: on 10 mil Cuflon at 13 GHz copper and dielectric cost 0.65 dB.
  5. Report the ground plane you used: it changes the E-plane beamwidth by up to 35° and the gain by ±0.6 dB.
  6. Resolve gaps between radiating edges with at least five cells; gaps between non-radiating edges can stay coarse.
  7. Delete the NF2FF time dumps once the far field is computed: on a 6 M-cell mesh they reach several GB.

References

  1. D. M. Sheen, S. M. Ali, M. D. Abouzahra and J. A. Kong, “Application of the three-dimensional finite-difference time-domain method to the analysis of planar microstrip circuits”, IEEE Transactions on Microwave Theory and Techniques, vol. 38, no. 7, pp. 849–857, 1990.
  2. R. Q. Lee, R. Acosta, J. S. Dahele and K. F. Lee, “An experimental investigation of parasitic microstrip arrays”, NASA Technical Memorandum 100168, NASA Lewis Research Center, 1987.
  3. T. Liebig, openEMS – Open Electromagnetic Field Solver, openems.de and documentation at docs.openems.de.
  4. A. Taflove and S. C. Hagness, Computational Electrodynamics: The Finite-Difference Time-Domain Method, 3rd ed., Artech House, 2005.
  5. cloudHPC openEMS documentation: docs.cloudhpc.cloud.

CloudHPC is a HPC provider to run engineering simulations on the cloud. CloudHPC provides from 1 to 224 vCPUs for each process in several configuration of HPC infrastructure - both multi-thread and multi-core. Current software ranges includes several CAE, CFD, FEA, FEM software among which OpenFOAM, FDS, Blender and several others.

New users benefit of a FREE trial of 300 vCPU/Hours to be used on the platform in order to test the platform, all each features and verify if it is suitable for their needs