No output when running simulation

How to use openEMS. Discussion on examples, tutorials etc

Moderator: thorsten

Post Reply
czang
Posts: 1
Joined: Sat 25 Jul 2020, 19:50

No output when running simulation

Post by czang » Sat 25 Jul 2020, 19:55

Hello,

i am not getting any output when running a simulation (timestep, energy, etc.). Example output from the Simple_Patch_Antenna.m tutorial:
remove entire contents of tmp_Patch_Ant? (yes or no) yes
invoking AppCSXCAD, exit to continue script...
QCSXCAD - disabling editing
VTKPrimitives::AddCube: Warning, can't draw a Point Box... skipping
args = "patch_ant.xml" -vv
Operator::InitDataStorage(): Storing epsR material data...
Operator::InitDataStorage(): Storing muR material data...
Operator::CleanupMaterialStorage(): Delete epsR material data...
Operator::CleanupMaterialStorage(): Delete mueR material data...
calculating far field at phi=[0 90] deg...
----------------------------------------------------------------------
| nf2ff, near-field to far-field transformation for openEMS
| (C) 2012-2014 Thorsten Liebig <thorsten.liebig@gmx.de> GPL license
----------------------------------------------------------------------
radiated power: Prad = 4.3351e-25 Watt
directivity: Dmax = 4.7966 (6.8094 dBi)
efficiency: nu_rad = 95.0635 %
calculating 3D far field pattern and dumping to vtk (use Paraview to visualize)...
----------------------------------------------------------------------
| nf2ff, near-field to far-field transformation for openEMS
| (C) 2012-2014 Thorsten Liebig <thorsten.liebig@gmx.de> GPL license
----------------------------------------------------------------------
nf2ff: Set verbose level to 1
nf2ff: Reading planes: nf2ff_E_xn.h5 & nf2ff_H_xn.h5
nf2ff: Data-Size: 1x43x37
nf2ff: Analysing far-field for 1 frequencies.
nf2ff: Reading planes: nf2ff_E_xp.h5 & nf2ff_H_xp.h5
nf2ff: Data-Size: 1x43x37
nf2ff: Analysing far-field for 1 frequencies.
nf2ff: Reading planes: nf2ff_E_yn.h5 & nf2ff_H_yn.h5
nf2ff: Data-Size: 43x1x37
nf2ff: Analysing far-field for 1 frequencies.
nf2ff: Reading planes: nf2ff_E_yp.h5 & nf2ff_H_yp.h5
nf2ff: Data-Size: 43x1x37
nf2ff: Analysing far-field for 1 frequencies.
nf2ff: Reading planes: nf2ff_E_zn.h5 & nf2ff_H_zn.h5
nf2ff: Data-Size: 43x43x1
nf2ff: Analysing far-field for 1 frequencies.
nf2ff: Reading planes: nf2ff_E_zp.h5 & nf2ff_H_zp.h5
nf2ff: Data-Size: 43x43x1
nf2ff: Analysing far-field for 1 frequencies.
octave:9> version
ans = 5.2.0
octave:10>

I am running octave 5.2.0. Am I missing something?

Thanks in advance

rml
Posts: 12
Joined: Fri 17 Aug 2012, 14:18

Re: No output when running simulation

Post by rml » Sun 06 Sep 2020, 23:23

Hi,
I can confirm this on Windows. It seems to be a problem with the latest version, as v0.0.35-42 provides the full output and v0.0.35-62 does not.
Best regards
-rml

dom11990
Posts: 13
Joined: Mon 10 Jun 2019, 10:16

Re: No output when running simulation

Post by dom11990 » Sun 13 Sep 2020, 17:13

Is there any fix for this?

thorsten
Posts: 1425
Joined: Mon 27 Jun 2011, 12:26

Re: No output when running simulation

Post by thorsten » Sun 13 Sep 2020, 20:09

The cause is this change:
https://github.com/thliebig/openEMS/com ... 6b9a7d17fc

I think we have to revert it...
Thanks for the feedback.
regards
Thorsten

thorsten
Posts: 1425
Joined: Mon 27 Jun 2011, 12:26

Re: No output when running simulation

Post by thorsten » Sun 13 Sep 2020, 20:14

I think this is how it should be in "matlab/private/invole_openEMS.m" Lines 47-end:

Code: Select all

exitcode = system(command);
if (exitcode~=0);
    error(['openEMS binary exited with error-code ' num2str(exitcode)]);
end
This works for me, can you verify...

dom11990
Posts: 13
Joined: Mon 10 Jun 2019, 10:16

Re: No output when running simulation

Post by dom11990 » Fri 18 Sep 2020, 11:06

That did the trick! Thanks

thorsten
Posts: 1425
Joined: Mon 27 Jun 2011, 12:26

Re: No output when running simulation

Post by thorsten » Fri 18 Sep 2020, 17:36

Thanks for verifying. I will make a patch and a new version soon...

Post Reply