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!
An antenna that is not correctly tuned will degrade your input signal. Ie you will get lower signal levels and less SNR. This will degrade your position solution, but not consistently so. Ie if you have a consistent offset in your position, this is more likely due to reflections (aka multipath) of buildings/trees/objects in the vicinity and not due to your antenna. Multipath is worse with chip antennas than with patch antennas as the latter are circular polarized antennas, that dampen reflected signals to some extend, while the former are linear polarized antennas that accept direct and reflected signals with the same strength.
The book "GPS/GNSS Antennas" by Rao explains the effects and how to deal with them in details.
Though, you are saying that you are 0.1degree off, which is roughly 8km. That is a lot, even for multipath (that usually causes a few dozen meters to a few 100m). It is more likely that your GPS receiver has problems, either with the signal levels or a genuine firmware bug.
Best Answer
The scope probe should be modeled as a lossy transmission line with the resistor/capacitor divider (10x probe is assumed).
The ground lead inductance should be added and you may couple this inductor to the inductance of your AC power wiring (50 Hz) [C2 in the image below].
You may also add capacitive coupling for same said AC power wiring (50 Hz) [L2 in the image below].
Forgive my poor and lazy image editing skills, your model may look similar to the attached image.
Note the added parasitic capacitance (C2) and indutctive coupling (between L2 and the ground clip) form the AC power line.
Please read Doug Ford's: "The sectet world of oscilloscope probes" founrd in the following link, which is also the source for the image attached, for the model's detail.