Replies: 2 comments 11 replies
-
Sorry if I deviated too much from your suggestions, but I feel like I need more info. The way the current probes work, is they perform a mode matching integral along the given area (or there is another way). So instinctively, my first question would be, what line\s are you current probing? Microstrip? Differential? Co-planar waveguides? That will help me answer a bit... |
Beta Was this translation helpful? Give feedback.
-
Sorry I did not see this earlier as this is clearly a question I should answer. Voltage probes integrate the electric field along a line to get the potential difference (aka voltage) between the start and stop points. Thus this probes start/stop is snapped to the primary (electric) mesh. The current probes are a bit more difficult. They calculate the current through a surface by integrating the magnetic fields along a closed! loop (aka the closed edge of the surface the current flows through). That means ultimately this (edge) curve is snapped to the secondary/dual (magnetic) mesh (which is not shown to the user but calculated from the primary user-defined mesh). This is always identical regardless of the mesh type (Cartesian vs cylindrical) I hope this helps. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to probe the voltages and currents manually in a non-standard simulation in openEMS, but I find the official examples show two conflicting approaches.
The first approach is to place a voltage probe on mesh line
idx
, and two current probes on mesh linesidx - 1
, andidx
. The true current (in phase with the voltage) is obtained by averaging both readings, so you can interpolate the current atidx - 0.5
. But recall that in the Yee grid, the magnetic grid already has a built-in offset of 0.5 cells in the algorithm, so current at mesh coordinateidx - 0.5
is in fact located atidx
.You can see an example of this approach in Coax_CylinderCoords.m. The voltage probe is located at z = 9, and the current probes are located at z = 8 and z = 9.
The second approach is to place a voltage probe at an exact mesh line, and place two current probes in the middle of this line and the previous/next mesh line (0.5 line offset). You average the adjacent probes to interpolate the current at the center, in alignment of the voltage probe on the grid line.
You can see an example of this approach inside
class MSLPort
in python/openEMS/ports.py.MSLPort
also uses finite-difference to extract the characteristic impedance, so it has additional probes, but the current calculate is performed as described here.Both solutions look reasonable in isolation, but only one must be correct. Now there's the question - which calculation is the correct and rigorous one?
Beta Was this translation helpful? Give feedback.
All reactions