Phi is 360deg, but Theta is only 180. Why such limitation?

Give some feedback on openEMS.

Moderators: thorsten, sebastian

Post Reply
Hale_812
Posts: 172
Joined: Fri 13 May 2016, 02:54

Phi is 360deg, but Theta is only 180. Why such limitation?

Post by Hale_812 » Wed 11 Apr 2018, 02:42

I started modelling with a slightly different excitation direction than in the examples.
When choosing Y direction, as it is traditional in literature, the horizontal plane (let it call H-plane for a horizontal horn) pattern is calculated by sweeping Theta, which works just fine.
But the vertical plane (E-plane in our case) is calculated by sweeping Theta.

And when plotting Theta cartesian pattern, I found that it is displayed only from 0 deg to 180 deg. No more no less.

Is it possible to equalise capabilities for both, Phi and Theta spherical angles?

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

Re: Phi is 360deg, but Theta is only 180. Why such limitatio

Post by thorsten » Thu 12 Apr 2018, 20:16

There is no limitation. These are just the defauls for spherical coordinates. But the nf2ff will accept whatever angle setup you specifiy and happily calculate the fields there.
I'm pretty sure that in same tutorials I do a phi=0/90 and theta=-180..180 (xz- and yz-plane) cut for example.

Hale_812
Posts: 172
Joined: Fri 13 May 2016, 02:54

Re: Phi is 360deg, but Theta is only 180. Why such limitatio

Post by Hale_812 » Mon 16 Apr 2018, 02:38

well, it appears, the limitation is only in plotFFdB().
Yes, nf2ff() accepts any angular range, but plotFFdBsimply could not draw it. So I replaced it with a regular plot from manual gain calculation.

Post Reply