How to import mat file using 3-D Lookup Table ?

Hankeys
Hankeys New Altair Community Member
edited August 13 in Community Q&A

I have a data table (such as an attachment) that I would like to import using the 3-D Lookup Table (.mat file) in PSIM, but there is no explanation in the documentation about how to set the parameters in this function block and the formatting of the mat file, how can I use it? Thank you for your help.

image

Tagged:

Answers

  • NikosDimitrakopoulos
    NikosDimitrakopoulos
    Altair Employee
    edited August 12

    Dear Mars Pan,

    This is a correct observation. I believe the documentation of the lookup tables in PSIM requires a nice refresh. That being said, I am preparing an article that will cover the steps of working with 1D, 2D & 3D LuTs. I will also include the link here when it's finished.

    Regarding the 3D LuT case, I would suggest working with the simple 3D LuT block and not the .mat file one. The .mat file one is more oriented to work with .mat files generated from Altair Flux motor design software:

    Flux-PSIM Coupling : Leverage the system simulation speed while working around your Motor Design

    For the example you shared, the procedure to create a PSIM compatible format would be the following:
    image

    My final remarks here would be:

    1. The simple 3D LuT model only works with 3 inputs and 1output. This means that you have to use 2 of them if you are interested in generating 2 outputs.

    2. The file format can be .csv. You can load it as .csv if you select "All Files" while browsing to the file. 
    image

    You can find the above colorized csv along with the final csv attached.

     

    -Nikos

  • Hankeys
    Hankeys New Altair Community Member
    edited August 13

    Hi Nikos,

    Thanks for the reply, the LuTs look great! But I would like to know how to convert the raw data(I shared)to PSIM compatible format? Can you share your conversion method or formula? Thank you!

  • NikosDimitrakopoulos
    NikosDimitrakopoulos
    Altair Employee
    edited August 13
    Mars Pan said:

    Hi Nikos,

    Thanks for the reply, the LuTs look great! But I would like to know how to convert the raw data(I shared)to PSIM compatible format? Can you share your conversion method or formula? Thank you!

    Dear Mars Pan,

    I believe the method to convert them is illustrated in the picture I attached in my previous response. I've also included it in the attached zip file, which describes the required format. The resulting CSV is also included in the zip.

    This aligns with what is described in the 3D LuT PSIM block:

    image

    But in a more user-friendly manner.

    Best regards,

    Nikos Dimitrakopoulos