Error, only a 1D/line integration is allowed

How to use openEMS. Discussion on examples, tutorials etc

Moderator: thorsten

Post Reply
MPCEngineer
Posts: 31
Joined: Thu 02 Sep 2021, 18:29

Error, only a 1D/line integration is allowed

Post by MPCEngineer » Tue 07 Sep 2021, 15:56

Hi,

Looking through the forum I found a script file for a mono pole above a prefect ground plane.

Using a fresh install on Ubuntu 20.04.3 LTS

When RunOpenEMS is called I keep getting the ERROR

Engine_Interface_FDTD::CalcVoltageIntegral: Error, only a 1D/line integration is allowed

I can not find any information on this error. Has anyone experienced this before?

Script is
Monopole_Antenna_Infinite_Ground.m
(7.59 KiB) Downloaded 73 times

MPCEngineer
Posts: 31
Joined: Thu 02 Sep 2021, 18:29

Re: Error, only a 1D/line integration is allowed

Post by MPCEngineer » Tue 07 Sep 2021, 16:14

Hi.

Looking through the code on github I can see the error is generated if a 'start' 'stop' points for a line are different in x,y,z and so the line is 2D or 3D.

What I do not understand is how this error is generated since the model has only a mono pole and a feed which are all in the z-direction.

GitHub Code is:
double Engine_Interface_FDTD::CalcVoltageIntegral(const unsigned int* start, const unsigned int* stop) const
{
if ((start[0]!=stop[0] + start[1]!=stop[1] + start[2]!=stop[2])!=1)
{
cerr << "Engine_Interface_FDTD::CalcVoltageIntegral: Error, only a 1D/line integration is allowed" << endl;
return 0;
}

https://github.com/thliebig/openEMS/blo ... d.cpp#L200

MPC.

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

Re: Error, only a 1D/line integration is allowed

Post by thorsten » Tue 07 Sep 2021, 16:48

Yes this check is new as this line integral was problematic. At some point I have to implement a proper diagonal integration.
For now make sure your voltage probes are purely 1D.

I will have a look at the mentioned model...

regards
Thorsten

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

Re: Error, only a 1D/line integration is allowed

Post by thorsten » Tue 07 Sep 2021, 16:59

The new line you mentioned had a stupid bug... I'm programming too much python these days...

I pushed a fixed version...

best regards
Thorsten

Post Reply