Obtaining simulation termination reason

How to use openEMS. Discussion on examples, tutorials etc

Moderator: thorsten

Post Reply
Posts: 7
Joined: Sun 22 Jan 2017, 22:39

Obtaining simulation termination reason

Post by Henkel » Tue 14 Feb 2017, 15:43

Thorsten? Quick random question - is there an easy existing way to obtain the energy remaining at simulation termination (in octave/matlab), or in general the reason for termination?

I'm running a simple binary mutation on a structure, and some sims simply don't converge. I'd like to throw those out earlier in my post processing to save cycles and eliminate red herrings.

Right now the 'invokeems.m' does not return the system text, so therefore we can't just scan that...

Thanks and regards,


Posts: 1388
Joined: Mon 27 Jun 2011, 12:26

Re: Obtaining simulation termination reason

Post by thorsten » Tue 14 Feb 2017, 18:32


you have several options.
You can run with the "--dump-statistics" option which creates some status files containing some additional information about how the simulation went. But I do not remember what kind of information is stored. But I'm pretty sure the energy estimate was part of it...
If you are on Linux, you can use the "Settings.LogFile" in RunOpenEMS which duplicates the console output into a file.
Lastly you can of course always run/execute openEMS yourself by creating your own "invoke_openEMS.m".


Post Reply