CalcNF2FF no vtk file when using circular coordinates

How to use openEMS. Discussion on examples, tutorials etc

Moderator: thorsten

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

CalcNF2FF no vtk file when using circular coordinates

Post by MPCEngineer » Fri 01 Oct 2021, 17:57

Hi,

I am using circular coordinates and the CalcNF2FF does not produce a .vtk file

I use the following to define circular coordinates:

FDTD = InitFDTD('CoordSystem', 1); % init a cylindrical FDTD

The following is the CalcNF2FF call:

disp( 'calculating 3D far field pattern and dumping to vtk (use Paraview to visualize)...' );
thetaRange = (0:2:180);
phiRange = (0:2:360) - 180;
nf2ff = CalcNF2FF(nf2ff, Sim_Path, f_res, thetaRange*pi/180, phiRange*pi/180,'Verbose',1,'Outfile','3D_Pattern.h5');

I get the .h5 file but no .vtk file. When using Cartesian coordinates I do get a .vtk file.

Is this normal??

Thanks,

MPC.

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

Re: CalcNF2FF no vtk file when using circular coordinates

Post by thorsten » Sun 03 Oct 2021, 19:05

This function never creates a vtk file.
Maybe in your other script you use "DumpFF2VTK" as well?
As far as I see it, the ff-pattern should not care anymore what the FDTD mesh looked like...

regards
Thorsten

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

Re: CalcNF2FF no vtk file when using circular coordinates

Post by MPCEngineer » Mon 04 Oct 2021, 09:24

Hi Thorsten,

Thank you, yes you are correct. I am very grateful to you for pointing that out.

MPC.

Macuser
Posts: 3
Joined: Sat 06 Nov 2021, 19:49

Re: CalcNF2FF no vtk file when using circular coordinates

Post by Macuser » Mon 15 Nov 2021, 21:45

Hello, I was wondering if I could take a look at your code, because I am also trying to simulate the radiation pattern of a circular waveguide and I am not having any luck. I am just getting blank plots. Thanks.

Post Reply