What causes oscillating energy when running simulations? #321
-
Hello, I am relatively new to openEMS and have noticed an interesting behavior that occurs with some of the simulations I attempt to run. Sometimes, when running a simulation, the energy shown for each timestep starts oscillating. I have an example attached where this behavior is easily evident. When the stop frequency (sim_params.fstop) is set to 2GHz, the simulation runs and completes in less than 30 seconds on my machine. If I change the stop frequency to 2.2 GHz, and change nothing else, it takes 10 minutes to run. So for increasing the scan frequency 10%, the simulation time increases 20x. During that increased time, the energy printed out each time oscillates up and down, slowly trending lower until finally hitting -40dB. Does anyone know why this behavior occurs? and why the simulation time increases so dramatically above a certain point? Does it have to do with the mesh size? As I mentioned, I have seen this on other simulations I attempt to run, so I'm hoping to learn more about what's causing this issue and how I can fix it the next time I see it. If I wanted to do a 10 GHz frequency analysis on the attached simulation, is there anything I can do to avoid the simulation taking 2+ hours? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Hey there, @AJ528 Since sometimes setting up and running takes a moment (and sometimes people view this with their cell phones), be so kind as to add some images. Show us the structure, the oscillations that you see, etc. I looked at the scripts, as I won't have a chance to run them today. Your meshing seems fine, so if I had to guess, your structure resonantes somewhere near the added frequencies. I will try and verify that, but allow me to sugget two ways to verify this:
Cheers |
Beta Was this translation helpful? Give feedback.
-
I agree .. It's always trouble to get models from other users to simulate or preview, this hardly ever works out of the box. It would be nice to see an image what your model looks like in CSXCAD, to motivate others to spend time on your issue. |
Beta Was this translation helpful? Give feedback.
-
Hi all, Thank you very much for the responses so far. I got a lot going on this weekend (moving houses), but I will review your replies in depth soon. |
Beta Was this translation helpful? Give feedback.
-
Hi @gadiLhv and @VolkerMuehlhaus, Thank you both for taking the time to review my simulation. You made a good point about image previews, I will be sure to include those next time. @VolkerMuehlhaus, thank you for providing an image this time. Based on your replies, it would appear something in my simulation resonates at 2.16 GHz. So when my simulation includes that frequency, it oscillates and takes a long time to dissipate the energy. @VolkerMuehlhaus, you mention it's also possible to get resonances due to the outer box geometry because I'm using PEC as the boundary? I was using PEC because that's what the original example used as a boundary material. Is there a different material you would suggest using instead? Besides tweaking the geometry, are there any tricks to get the simulation to run through the resonance frequency and not take forever? Maybe some way to make the energy dissipate faster? Ideally, I'd like to do a wide bandwidth sweep quickly, and if there are any troublesome frequency ranges (like the Zin discontinuity in @VolkerMuehlhaus's response), I can go back and run a higher resolution sweep through that small range. Is it possible to do that? |
Beta Was this translation helpful? Give feedback.
Yes, I think you know box resonances in a metal cavity, and that's what you build if dimensions are large enough and you have PEC boundaries.
The very first step would be to place an absorbing boundary at the top. The usual answer would be MUR then, but somehow ALL of the models where I ever tried to use MUR have numerical issues and don't converge. So the other alternative would be PML_8, but that requir…