missing python interface DumpFF2VTK #151
Replies: 5 comments 12 replies
-
this is great, love it! I want to try that using a most simple model - a center-fed half wave dipole - which is well understood and for which I can already compute a number of interesting data/plots with openEMS, and I could (basically) verify values expected from theory - which is what creates "trust" for me. I have now added some some directivity measures, however I do not fully understand those pieces yet though. Hence, I don't have a valid/trusted basis yet to add even more, like a 3D radiation plot! Which I do want;) In any case, I will do some experimentation, and I also post complete code and results below. Code: complete working and self-contained code is here https://gist.github.com/oberstet/ce57c9579591d6d1b1f9222afa00bccc Results: Open questions (well, "open" for me;):
Well yes, and that's what it is used for, but what is the definition of Theta/Phi? Obviously, it could mean "theta = angle between FF and Z axis" .. or it could mean sth else. Ultimately, I want to render a picture like the following (which aligns the dipole along Z axis, not X like I do): |
Beta Was this translation helpful? Give feedback.
-
alright, I've added above function and the VTK file dump at the end to above example. full updated source is here: https://gist.github.com/oberstet/8e771e2466395d6f164d93fe8f7a7d32 this runs into the following error:
as the nf2ff object attribute dump https://gist.github.com/oberstet/8e771e2466395d6f164d93fe8f7a7d32#file-dipole2-py-L571 above shows, the nf2ff object neither has a
|
Beta Was this translation helpful? Give feedback.
-
I just recognize that you are using #
# nf2ffBoxList[<name>] - NF2FF box structure which should be calculated
# INPUT ANGLES ARE IN DEGREES for python interface!
#
nf2ff = nf2ffBoxList['nf2ffbox_1_-_farfield_1'].CalcNF2FF(Sim_Path, plotFrequency, thetaRange, phiRange, outfile='3D_Pattern.h5', verbose=True, read_cached=False) whereas I am using nf2ff = fdtd.CreateNF2FFBox("nf2ff-box", start=start, stop=stop, opt_resolution=[mesh_res_farfield] * 3) Where does nf2ffBoxList come from? |
Beta Was this translation helpful? Give feedback.
-
alright, is seems I've got that fixed https://gist.github.com/oberstet/3ec68a8348494452c2347764f1920bdd
let me now check paraview .. I guess .. |
Beta Was this translation helpful? Give feedback.
-
mmmh .. I mean, it does look interesting;) what do I need to do in paraview, which of the 4 files to open? what rendering/filter settings to set? sorry, I'm pretty much a paraview newbie ... |
Beta Was this translation helpful? Give feedback.
-
Hi, in current python interface there is missing DumpFF2VTK function to be able generate 3D field vizualization from NF2FF function so I have reworte matlab/octave one and test it, here it is:
Beta Was this translation helpful? Give feedback.
All reactions