Hi I am new to SPICE and after doing some research into the spice software, I need some help understanding which type and how to model microwave cavities in SPICE. I want to model a microwave cavity in SPICE, however I will need to use an equivalent structure, can I just use an LC circuit to do this ?. The microwave resonator I am trying to model is just the cavity used in labs.


The answer to this question depends on why you want to model the cavity in SPICE.

A cavity resonator has a very simple equivalent circuit - it's just an LC network. If you're trying to add a cavity filter to a nonlinear simulation (such as a microwave amplifier or oscillator), then this is probably going to be the easiest way with free tools - assume ideal behaviour and model it as an LC circuit.

If you don't need nonlinear simulation (for example, you're doing frontend matching), I would recommend looking at a linear simulation tool like QUCS. The simulation will be much faster as it boils down to essentially just multiplying a bunch of s-matrices.

If, on the other hand, you want to actually model the microwave resonator itself, things get a little trickier. Most EM simulation tools fall under the "not cheap" category. If you want to do it for free, there's only a few options:

  • emGine (non-commerical use only) is a free finite difference time domain (FDTD) tool, but it hasn't been updated in a while.
  • OpenEMS is another free FDTD solver, but the frontend is a real pain in the ass to use - there's no geometry builder, so you have to specify all geometry from MATLAB or Octave scripts.
  • FEKO is an excellent commercial tool which has a free edition limited on mesh size. It does full-field FEM, MoM, and FDTD. The free edition would probably be good enough for a microwave resonator.

In terms of paid software, there really isn't anything cheap. If you're at a university, you might be able to get a cheap academic license for one of the big packages. The "big three" 3D field simulators are ANSYS HFSS, CST Microwave Studio, and Altair FEKO. They all have their pluses and minuses, but for doing a microwave resonator they should all be about equivalent.

All 3D field simulators will give S-parameters. If you're unfamiliar with S-parameters (scattering parameters), they're a set of coefficients which describe the amplitude and phase of inputs and outputs to a multiport network.

S-parameters are defined in the frequency domain, and are easiest to use with a linear simulator (like QUCS).

If you need to do a nonlinear simulation with your S-parameters extracted from the EM simulation, your options are again somewhat limited. SPICE is a time-domain simulation, and S-parameters are defined in the frequency domain. There are tools which can generate approximate SPICE models from S-parameter data, but I don't know if any of them are free.

Alternatively, you could do a nonlinear harmonic balance simulation (faster at microwave frequencies anyway), but I don't think there any free tools that do this. The two "industry standard" tools for this are Agilent ADS (expensive) and AWR Microwave Office (also expensive). If you're a student, though, you can get them for free.

Hope this helps!

  • \$\begingroup\$ Thanks you very much for detailed and very helpful answer. I think for my purposes a LC network is sufficient. \$\endgroup\$ – user63377 Nov 2 '15 at 7:56

I doubt if SPICE is a suitable program for what you want. SPICE is a circuit simulator so you would need an LC or RLC based model of your microwave structure in order to be able to do anything with that in SPICE.

In order to get a model of a microwave structure you will need an EM simulator like Keysight/Agilent Momentum. This can generate an S-parameter model or a lumped element model that you could use in a circuit simulator like SPICE. I do not use SPICE myself so I cannot say if this would actually work.

There is a freeware/open source alternative to SPICE which is called qucs, it has a microwave circuit simulator that might be of use to you.

  • \$\begingroup\$ There are two open source EM simulators, but their usefulness is probably much more limited compared to paid solutions (unlike what happens with SPICEs). They might be good enough for this use case though. \$\endgroup\$ – Fizz Nov 1 '15 at 22:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.