Jump to content
Hamsalekha

How to generate a combined data for near and far field for multiple configuration

Recommended Posts

Hi, 

I have 16 sets of configuration in CADFEKO that generate near and far field in each set of configuration. Can I know how to generate a continuous result for near and far field in POSTFEKO? The result that I want is not in the form of Out file display but in the form of Cartesian graph. It is because results that are able to be plotted in the Cartesian graph can exported to clipboard as well. If there is a need to use parameter sweep in this case, can anyone help me on how to link parameter sweep with the multiple near and far field? The snapshot of the activity done in the CADFEKO and POSTFEKO will be attached as well.

Hope to hear from you soon. 

 

Thank you.

cadfeko_16set_of_configuration.JPG

Each set of configuration has different scattered angle of near and far field. 

 

postfeko_16set_of_configuration.JPG

Image of POSTFEKO.

Share this post


Link to post
Share on other sites

Thanks for the clarification,

One more question, does the near/far field request have a fixed increment between points?

Share this post


Link to post
Share on other sites

Dear Mel, 

There is no increment between points since the start and end theta and phi are fixed with the same values. The phi value of scattered near and far field are the same throughout the 16 configuration in one CADFEKO window. However, for different value of phi, I open another CADFEKO to generate the result. (There are 16 different values of phi to be generated based on Gaussian quadrature). For the plane wave, the increment of theta is based on Gaussian Quadrature rule. 

image.png.2cc06c1ad4664146b311c1444faf1116.png

I have another question. Since there are many folders of CADFEKO (as shown in figure above), how to run all the POSTFEKO folders continuously without operating one by one manually? Do we need to prepare any batch file? How to prepare it in the POSTFEKO?

 

Thank you.

Regards, 

Hamsalekha

Share this post


Link to post
Share on other sites

There are some options:

1.

Use application automation in POSTFEKO to postprocess/plot all the data from all the results files. This means that you would have to learn to write an automation script. The User Manual and example guide have more info.

 

2.

Create one CADFEKO model with all 16 files’ angles. This would mean 16x16=256 configurations.

You don’t have to create each configuration one by one. Just enable script recording, create a few configurations, and then modify the recorded script to use e.g a FOR loop over all the angles. The angles could be read from file. Lua resources are freely available on the web.

 

3. Modify your existing CADFEKO model files to output the fields to ASCII file – see Advanced tab of far fields and near fields. You will have to rerun all the models, but it should be quick if the *.str files are available. There will be multiple *.ffe files (Far fields) and *.efe/*.hfe files (near fields) corresponding to the configuration numbers. You will need to append all the files into a single *.ffe/*.hfe/*.efe file. This could be done with a script. Then use the Import function of POSTFEKO to import the combined data file.

Hamsalekha likes this

Share this post


Link to post
Share on other sites

Dear Mel, 

I face a problem on generating the lua code in the CADFEKO. There are two sets of code that I need to generate for 16x16 loop. For the first set, when I set the plane wave theta and phi value with 16x16 loop, it works. However, for the second set, the code is exactly same as the first set but the plane wave phi is set as zero. The code is successfully generated in the CADFEKO. However, an error appear in the POSTFEKO. 

image.png.d998f4390e1f6580f6f27637d2365ff2.png

 

The frequency is set as global frequency in the CADFEKO.Only a single frequency is used. However, this error appear. What is the modification that I need to do to make the POSTFEKO run successfully for the second set. As mentioned above, the first set of LUA code works.

I will attach two sets of LUA code (CADFEKO script file) in the text file so that you can take a look on it.

 

Really appreciate your help. Hope to hear from you soon.

 

ps: Both set of CADFEKO LUA script are running perfectly on CADFEKO. The first set  works well on POSTFEKO but the second set shows error as shown in figure above.

 

Thank you.

 

Regards,

Hamsalekha

SECOND SET OF CODE_ALTAIR FORUM.txt FIRST SET OF CODE_ALTAIR FORUM.txt

Share this post


Link to post
Share on other sites

The student edition is limited as per the error message.

Each configuration, although you set a single frequency, will count as a frequency.

Either then split the model into two separate models, or you would have to get access to a full (unlimited) Feko version somewhere. Perhaps your University (lecturer) could provide.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...