lua scripting for antenna coupling analysis

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

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.

Tagged:

Answers

  • JIF
    JIF
    Altair Employee
    edited September 2018

    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?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2018

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

    Unable to find an attachment - read this blog

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited September 2018

    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.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2018

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

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited September 2018

    Hi tejaswi,

     

    Could you attach an example model, please?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2018

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

    Unable to find an attachment - read this blog

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited September 2018

    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.

     

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2018

    hii.. thank you so muchhhh... 

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2018

    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.

    <?xml version="1.0" encoding="UTF-8"?>Screenshot from 2018-09-14 15-49-47.png

    <?xml version="1.0" encoding="UTF-8"?>Screenshot from 2018-09-14 15-50-10.png

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited September 2018

    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.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2018

    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 version="1.0" encoding="UTF-8"?>.xml_file_error.png

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited September 2018

    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.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2018

    hi.. i checked that the simulation is not failed.. the file is opened.. i think there must be an error between compatibility problem.. could you help me plz...

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited September 2018

    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 and execute the parameter sweep like this?
      image.png.2e166b914ae048e5375a8bf5baffc156.png
      Can you see the results in POSTFEKO?

    Unable to find an attachment - read this blog

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2018

    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.

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited September 2018

    Hi tejaswi,

     

    What happens if you copy the model to a different location (e.g. C:\test) and run the parameter sweep from there?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2018

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

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited September 2018

    Hi tejaswi,

     

    Please copy all of the text in the black window after the parameters sweep has finished and paste it to a txt file. Attach this txt file here.

  • Madelé
    Madelé
    Altair Employee
    edited September 2018

     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

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2018

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

     

     

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2018

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

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited October 2018

    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?

  • JIF
    JIF
    Altair Employee
    edited October 2018

    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.