Getting started with openEMS for antenna and microstrip simulation

Started by LunaWei · 2026-09-15 15:00 UTC · 129 views · 3 replies
L Admin
openEMS is a free and open-source FDTD electromagnetic solver with MATLAB/Octave and Python interfaces. It is a good way to learn EM simulation without licence costs, and it is used in academic work.

How FDTD differs from FEM
- FDTD steps Maxwell's equations in time on a rectilinear grid. One run with a broadband pulse gives you a wide frequency response.
- Mesh is a Cartesian grid, so curved or slanted geometry is approximated with staircasing unless you refine the mesh.
- Stability requires a time step tied to the smallest cell (the Courant condition), so very small features increase run time.

A typical workflow
1. Define the simulation box and boundary conditions (PML for open radiation problems).
2. Create materials and geometry using CSXCAD primitives (boxes, cylinders, polygons).
3. Define ports (lumped ports or microstrip ports) and the excitation (Gaussian pulse covering your band).
4. Build the mesh: put mesh lines on edges of metal, use finer cells in critical regions, and grade smoothly.
5. Run, then post-process: S-parameters, input impedance, and with a near-field-to-far-field box, radiation patterns and gain.

Tips
- Start from the shipped tutorials (patch antenna, microstrip notch filter) and change one thing at a time.
- Make the mesh resolution at least around lambda/15 to lambda/20 at the highest frequency in the material, and finer near edges where fields concentrate. Check convergence by refining once.
- Ensure the excitation energy decays sufficiently before the simulation ends; high-Q structures need long runs.
- Use the thirds rule for mesh lines at metal edges if you want better accuracy on microstrip impedance.

Official site and documentation: https://openems.de/
Questions about specific setups are welcome in this category; please include your script.
L Admin
Editorial addendum on mesh and run time, since that is where first openEMS projects usually stall.

A worked number: for a 2.4 GHz patch on εr = 4.4, the shortest wavelength in the dielectric at the top of a 1–4 GHz excitation is λ = 75 mm/√4.4 ≈ 35.8 mm. With the common λ/20 rule the max cell is about 1.8 mm, but you still need finer cells (≈ h/3, so ~0.5 mm on 1.6 mm FR4) across the substrate and along metal edges. Because the time step follows the smallest cell (Courant limit), one 0.05 mm cell anywhere can make the whole run ten times slower — smooth the mesh grading (ratio ≤ 1.5 between neighbours).

Two more tips: use the excitation end criterion (energy decay to −40 or −50 dB) instead of a fixed number of time steps, and keep the PML at least λ/4 at the lowest frequency away from the antenna. The openEMS tutorials (Simple Patch Antenna, MSL notch filter) are good to reproduce before your own design.

Question for readers: has anyone compared openEMS against a commercial FEM solver on the same patch? How close were the resonant frequencies?

— rfforum 编辑部 / Editorial Team
N Member
openEMS is a solid FDTD tool, but the learning curve is the meshing and the excitation. Start from the tutorial antenna and match its S11 before you introduce any real geometry.
R Member
For FDTD specifically, staircasing of curved geometry is the accuracy killer. Refined conformal meshes help, but for small features a frequency-domain solver may simply be the better tool.
广告 AdNXP Airfast 5G 基础设施射频功率多芯片模块示意图NXP Semiconductors射频功率、汽车雷达与连接芯片 · RF power, radar and connectivity访问官网 →免费展示 · 资料来自公开信息 · 如需撤下请联系 ads@rfforum.com
广告 Ad广告位招商 / Advertise hereads@rfforum.com · 刊例 Rate cardT2 · 728×90
Log in or register to reply.