Jump to content
tejaswi

lua scripting for antenna coupling analysis

Recommended Posts

hii.. i am writing lua scripting for antenna coupling analysis. i like to know about masking ability coding. as it enables and disables the sources of two antennas. could anyone plz help me.

Share this post


Link to post
Share on other sites

Hi tejaswi,

 

I don't know what you are asking of us (the forum). Could you add more details regarding the request. What do you have and what would you like to do? What problem do you have with the API or what are you not able to do?

Share this post


Link to post
Share on other sites

hi.. thanq for your response.. actually i am trying to do coupling analysis between  multiple antennas on a platform(means ship). but i dont know how to do it as i am new to feko software.. that's  why i am trying to do analysis for " two monopole antennas on a platform".. it runs without  error but the vswr and reflection coefficient values are not coming as per standards.. at first i like to know how to solve this problem.. and next i also liked to know "lua coding for masking ability"(means i like to know the s parameter values when  the antenna2 is disabled and the antenna1 is in  active state... similiarly when the antenna1 is disabled and the antenna2 is in active state... and  finally when two antennas are active)  i may think that lua scripting may helps to solve this problem.. thats why i ask about scripting.... could u plz help me...

coupling_monopole_antennas.pdf

Share this post


Link to post
Share on other sites

Hi tejaswi,

 

Maybe a SParameterConfiguration in CADFEKO is what you're looking for? It'll take care of exciting ports while terminating others. Multiple different configurations can be set in one model, e.g. SParameterConfiguration for S11 ... S22 and a StandardConfiguration for the radiated far field of two active antennas.

image.png.90c7570700c245069a53fb8d22d52ff6.png

Note, you can set  Frequency, sources, loads and power to be per configuration instead of global. This allows you to e.g. calculate the s-parameters for a wide frequency range while calculating the far field only for single frequencies.

image.png.b13c9dce8149065bc986c6b35c301ea7.png

UserExample B.1 Antenna Coupling on an Electrically Large Object may get you going.

Share this post


Link to post
Share on other sites

hii... thank you very much  for your suggestion... i also have an problem with S-parameter  values in output...  i am not getting the standard parameter values (like VSWR and reflection coefficient values) while i am doing with "coupling between two antennas" simulation... could u help me...

Share this post


Link to post
Share on other sites

hii.. thank you for your quick response.. i am attaching here an "monopole_antenna" pdf.. please go through it..  once you observed that the antenna resonates  and also it produces the VSWR value nearly 2 and reflection coefficient value less than 10dB at my designed frequency value.. but when i like to check coupling analysis between two antennas as i posted  above(coupling_monopole_antennas.pdf) i would not getting these vswr and reflection coefficient values for the two individual monopoles..  i dont know how to solve .. that's why i am facing difficulty in performing "coupling between two antennas" simulation.. could u help me.... 

monopole_antenna.pdf

Share this post


Link to post
Share on other sites

Hi tejaswi,

 

The pics/graphs in your pdf do all come from a StandardConfiguration.

  • Figure 1: 3D view - FarField - Gain [dB]
    image.png.ea92c332fe4794c08d6f493e935b90bf.png
  • Figure 2: VoltageSource - Reflection- dB
    image.png.a1fca2276e6d1b3c30f03d128ad00a43.png
  • Figure 3: VoltageSource - VSWR - dB
    image.png.612cf2f07e1784e2589242af6e0f6d83.png

If I understand correctly you want Reflection coeficient and VSWR for both antennas while one is active and one is passive. For this you would create two StandardConfigurations. One with port 1 excited and port 2 loaded and one vice versa.

 

 

Share this post


Link to post
Share on other sites

hi... i will get an error in postfeko... could you please help me.... as i opened an "application macro" option in postfeko and i select 'parameter sweep:combine phase' option. and further i browse and select parameter sweep(.XML file) and click next. but here i will get an error 17413:shared_helper_lua:106:error 17184:unable to open.  please go through the attachments and help to rectify the problem.

Screenshot from 2018-09-14 15-49-47.png

Screenshot from 2018-09-14 15-50-10.png

Share this post


Link to post
Share on other sites

Hi tejaswi,

 

The 'parameter sweep:combine phase' script tries to load models (*.bof and *.fek files) into the session, which are specified in the *.xml file. The error message says that coupling_lua_new_freq_01.bof' can't be opened. Could you please check if this file exists and if you can open it by double-clicking. By default the parameter script stores the models and additional files in a subfolder called parameter_sweep. Look there first.

Share this post


Link to post
Share on other sites

hii.. thank you for your response.. you said that to check weather the file is existing or not.. as i checked that it is existed.. i attached an screenshot with this mail.. but i dont know the exact problem ... could u plz help me.. 

.xml_file_error.png

Share this post


Link to post
Share on other sites

Hi tejasw,

 

Could you please check if you can open it by double-clicking. When double-clicking a *.fek or a *.bof file POSTFEKO should open. I assume that the simulation of at least this model failed. You would also see error messgages in the related out file in that case. The Parameter Sweep: Combine Phase tool can only work with models that succesfully finished.

Share this post


Link to post
Share on other sites

Hi tejaswi,

  1. Do you have different versions of FEKO installed? If yes, could it be that you tried to run the Parameter Sweep: Combine Phase in an older version?
     
  2. What happens if you open the attached dipole.cfx and execute the parameter sweep like this?
    image.png.2e166b914ae048e5375a8bf5baffc156.png
    Can you see the results in POSTFEKO?

Share this post


Link to post
Share on other sites

Hii.. thank you for your response. i cant see the results in postfeko. i already shared the error (in above queries) what comes when i tried to open in postfeko. you asked whether the parameter sweep runs or not, it runs and also produces the .xml file. and also you asked about feko versions, recently we have updated the feko software. is there any problem with that update.

Share this post


Link to post
Share on other sites

hii.. thank you ... i copied the file to another location and run the simulation.. it again shows the same error (the .bof file does not exist)... as i  go through the folder of parameter sweep, it does not contain any .bof files... so how can i produce .bof files. help me to solve this error...

Share this post


Link to post
Share on other sites

 Hi tejaswi

 

Did you run FEKO, or did you only create the files for the parameter sweep to be performed? You have to run the FEKO solver to produce results.

 

When running the "Parameter Sweep: Split Phase" macro in CADFEKO, you have the option to run the solver after setting up the parameter sweep:

 

image.png.d0eddbf22bac706bd342357b7b3da7bb.png

Share this post


Link to post
Share on other sites

hi.. thank you so much.  your suggestions makes me to rectify my problem. you told to check about the licence formats and versions.. i will check in my system, i had two licencees.  that'y it wont open.. once i deactivated the 2018 version licence, it works without any error... thank you once again...

 

 

 

Share this post


Link to post
Share on other sites

Hi tejaswi,

 

I think you need to be more precise in what you're asking. What do you mean with "add an source"? Do you want to add results to a given graph? Maybe an example would be helpful. Please note, this is very off-topic, maybe you want to create a new ticket regarding this scripting question?

Share this post


Link to post
Share on other sites
23 hours ago, tejaswi said:

hi.. good morning.. i want to add an source through math script in postfeko. i have an equation.. can anyone tell me how to add in postfeko...  

Please log a new forum post related to this topic.

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...