Extract MoM matrix for multiple frequencies

ju1995
ju1995 Altair Community Member
edited October 2021 in Community Q&A

Hello,

I carried out a field simulation at 8 different frequencies (,,linearly spaced discrete points") and want to extract the MoM matrix at each frequency via mat2ascii.exe. Unfortunately, the suggested syntax mat2ascii filename.mat [b] (see image) does not work to extract the b=1,2,...,8 different MoM matrices. I only get one single result by executing mat2ascii filename.mat, but adding [b] always gives an error.

image

How can I access the 8 different MoM matrices?

Tagged:

Answers

  • Mel
    Mel Altair Community Member
    edited October 2021

    I tested a plate with plane wave source over 8 frequencies and was able to extract the 4th frequency as an example with 

    mat2ascii.exe plate.mat 4 > plate_fr4.txt

    We would need more details such as Feko version, operating system, model details (if possible the cfx and out file) and error message obtained.

    Matrix detected as version 5 Single precision storage used. Matrix size is  1347 x  1347 Matrix elements a(m,n) for block b=  4    m: index of the weighting function (matrix row)    n: index of the basis function (matrix column)        m     n             real part                imag. part     1    1      -3.673388622701168E-03    2.047378271818161E-01     2    1       1.808913773857057E-03    9.032395482063293E-02     3    1      -3.288674633949995E-03   -2.173543535172939E-02     4    1       1.611244282685220E-03    1.216704398393631E-02 
  • ju1995
    ju1995 Altair Community Member
    edited October 2021

    Sorry for my late response!

    I should perhaps try to describe the error more precisely, as there is actually no error message:

    For example mat2ascii filename.mat > zmatrix.txt  or mat2ascii filename.mat 1 > zmatrix.txt correctly writes the MoM matrix data of the first frequency into a text file, whereas mat2ascii filename.mat 2 or higher indices lead to an empty text file (the data is only displayed in the Command Prompt).

    I'm using FEKO 2018.2.1-343574 and Windows 10.

    Thank you very much for your help!

  • Mel
    Mel Altair Community Member
    edited October 2021

    Please attach the cfx file too.

  • ju1995
    ju1995 Altair Community Member
    edited October 2021

    I'm  sorry, here you are!

  • Mel
    Mel Altair Community Member
    edited October 2021
    ju1995 said:

    I'm  sorry, here you are!

    I can create the 2nd frequency with

    mat2ascii.exe platte.mat 2 > platte_fr2.txt

    Matrix detected as version 5 Single precision storage used. Matrix size is 931 x 931 Matrix elements a(m,n) for block b= 2 m: index of the weighting function (matrix row) n: index of the basis function (matrix column)  m n real part imag. part 1 1 -3.050620667636395E-03 4.700279617309570E+01 2 1 4.405725630931556E-04 1.816418075561523E+01 3 1 1.456637983210385E-03 1.789700126647949E+01 4 1 -3.237338270992041E-03 -3.476630210876465E+00 5 1 1.458011916838586E-03 2.088384628295898E+00

    Please give a screenshot of "the data is only displayed in the Command Prompt"

    Note that in my case I have copied the mat2ascii.exe out of the bin folder to a different folder where I have full read/write access.

  • ju1995
    ju1995 Altair Community Member
    edited October 2021

    Please find attached the cmd window at its top (cmd_1) and at its bottom (cmd_2) when executing mat2ascii.exe platte.mat 2 > platte_fr2.txt

    I also put the mat2ascii file out of the bin folder to the same project folder, where the .mat file is located.

    By the way: I have the same problem concerning the MoM matrix extraction for a simple 1D wire, which I simulated with the same 8 different frequencies today. Only the first frequency is writeable to a txt file.

    Have you any idea, what the reason for my problem could be?

  • Mel
    Mel Altair Community Member
    edited October 2021

    This may be a "long shot", but we have had issues in the past with folder and file names:

    Please copy everything to C:\Temp or similar.

    Ensure there are no special characters in the folder name, or file names, and no spaces, and try again.

  • ju1995
    ju1995 Altair Community Member
    edited October 2021

    I copied everything in C:\Temp, but still the same problem. No special characters, spaces etc. in the file or folder names either. Are you running a different FEKO version or could you perhaps reproduce my problem with my specific FEKO version?

  • Mel
    Mel Altair Community Member
    edited October 2021

    I have used the same version. I have unfortunately run out of ideas.

    Please click here and then click "Contact support". There may be some more in depth debugging needed which will be better handled off-line.

  • ju1995
    ju1995 Altair Community Member
    edited October 2021

    Perhaps I will try running the mat2ascii file on a different computer today as a last attempt. If this doesn't help I will contact the support.

    Thank you very much for your efforts!