Jump to content
hykr

Extracting MoM Matrix

Recommended Posts

Hello hykr,

 

It is possible to write out the impedance matrix that FEKO creates. In CADFEKO, this option is enabled on the "Solver settings" dialog, "General" tab. It writes out a *.mat file.

Reading the file can be done easily in Fortran or it can be converted to ASCII for reading in other environments. See the website page "How to read the *.mat, *.lud, *.rhs files and *.str files" for more details. If you don't have access to this link, let me know so that I can make it available to you. Update: There is a section in the User Guide in FEKO 2018 and later on "How to read MAT, LUD, RHS and STR files".

 

Regards

JIF

Share this post


Link to post
Share on other sites

Hi, JIF

 

I also want to know how to output the RHS file, do you have a clue?

 

I tried to add "set initfeko_FEKO_WRITE_RHS=1" in initfeko.dat, i not working.

 

Thanks. 

Cris

Share this post


Link to post
Share on other sites

Below is an extract from the FEKO User manual:

Quote

FEKO_WRITE_RHS
If this environment variable is set (value arbitrary), FEKO writes the right side of the set of linear equations to a *.rhs file. This is only useful for test purposes, such as when one wants to analyse this vector with another program.

 

Thus, you just need to set an environment variable, nl. FEKO_WRITE_RHS.

 

Please don't edit initfeko (ever). If you need to apply some environment variables or apply settings, you should probably add entries to FEKOenvironmentFromSetup.lua, but you can read more about options for these settings in the FEKO Installation guide.

Share this post


Link to post
Share on other sites

I still have difficulty in reading the *.mat file. I downloaded the utility and it only open and closes immediately on my system. Is there any idea on how to proceed?

Share this post


Link to post
Share on other sites

Hi
You are running in parallel (parallel 2 in this case). If you want to get access to the mat file contents, I would suggest that you rather run sequential. I don't know of any way to reconstruct the original (sequential) mat file from the parallel mat files.

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