How to import a complicated wire geometry into CADFEKO?

oussama1
oussama1 Altair Community Member
edited October 2020 in Community Q&A

Hello

I want to plot an analytical curve which has integrals in its parametric equations. I couldn't find the integral function in CADFEKO. I have generated this analytical curve in MATLAB and I want to import it to CADFEKO, is that possible? 

suppose the analytical function for the curve is given as

phi(l)=integration(0 to l, alpha(l))  where alpha(l) is a complicated function where the integral cannot be evaluated analytically.

x,y, and z= are function of alpha(l)

any suggestion will be much appreciated. 

Tagged:

Answers

  • oussama1
    oussama1 Altair Community Member
    edited February 2019

    Since no one has answered my question, I would like to answer it by myself. 

    fist of all, the wire geometry should be programmed in MATLAB software. then,  the x,y,z components should be saved in a matrix as

    A=[x; y; z] where x, y, z are row vectors. then the function dlmwrite() is used. see the attached pictures.

     

    in Feko software, we should import the text file (check the attached image).

     

    <?xml version="1.0" encoding="UTF-8"?>2222.PNG

    <?xml version="1.0" encoding="UTF-8"?>feko_11.PNG

  • oussama1
    oussama1 Altair Community Member
    edited February 2019

    downsimple function is used to reduce the number of point data in x,y, z components (number of data/10). my data was 1000 which is a huge data that makes feko slow, as consequence,  i have reduced the data point to 1000/10=100 points which convenient for feko.

    if anything is not clear, you are free to ask me.

    i m here to help