About FEKO's Temporary Directory

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

Hi.

My simulation is getting larger and FEKO prompted as 'Not enough memory available on the disk'.

So i need to upgrade my hard drive.

I added 1TB hard drive to my computer.

So how can i change FEKO's temporary directory?

Thanks for answers...

Regards...

Tagged:

Answers

  • JIF
    JIF
    Altair Employee
    edited February 2018

    Hello mustaphos,

     

    You need to change your FEKO_TMPDIR by modifying (or adding) the following line to FEKOenvironmentFromSetup.lua:

     setEnv([[FEKO_TMPDIR__SETUP]], [[C:\Temp]], true);

    You could also simply define an environment variable FEKO_TMPDIR and let it point to where you want to let FEKO use temporary disk space.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2018

    Hello JIF, I had the same problem so I used your suggestion:

     

    You need to change your FEKO_TMPDIR by modifying (or adding) the following line to FEKOenvironmentFromSetup.lua:

      setEnv([[FEKO_TMPDIR__SETUP]], [[C:\Temp]], true);

     

    So I changed the temp directory to my D drive as it has a lot more space.

     

    To this, I got the following error:

    ERROR 33867: Error (-3) checking/creating temporary directory at D:\Temp\

     

    Any ideas on how to fix this?

     

    Thanks

     

  • JIF
    JIF
    Altair Employee
    edited June 2018

    From the error message, it sounds like D:\Temp does not exist. Have you tried creating that directory? Or does it already exist?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2018

    Hello JIF,

     

    I had created the temp directory, just had to restart the model for it to pick up the new TEMP directory location. 

     

    Thanks!

  • oussama1
    oussama1 Altair Community Member
    edited September 2019

    Hello,

    How can i access that command window in order to change the directory? i want to change my FEKO directory because my simulation is getting larger.

  • oussama1
    oussama1 Altair Community Member
    edited September 2019

    i have used the above command, but it does not work. what do you suggest ? @JIF

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

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

  • Mel
    Mel Altair Community Member
    edited September 2019

    Just use notepad to edit the FEKOenvironmentFromSetup.lua file in the 'feko' folder.

    Save it. All new instances of Feko will use the updated file.

  • oussama1
    oussama1 Altair Community Member
    edited September 2019

    @melcan you explain more how can i use notepad in feko folder?

  • Mel
    Mel Altair Community Member
    edited September 2019

    Copy the file to e.g. C:\Temp

    Edit there.

    Copy back, but you will need admin rights.

  • Mel
    Mel Altair Community Member
    edited September 2019

    Alternately you can set this and other environment variables in CADFEKO:

    component_launch_options.png