hexagon logo

How can I run quasar in batch mode?

Built model in Lunar and saved project to get Simulation.qsr file but want to run next step outside of Lunar.
 
C:\WORK\Test is my project folder, the csv files are created and ready.
 
Running from the installed directory and using the argument list results in import error:
quasarengine_2.exe c:\WORK\Test\Simulation.qsr c:\WORK\Test X_FILE.csv VALIDATION_FILE.csv XN_FILE.csv -2
 
  • Dear Doug,
     
    The argument list is not correct. To find it, open the “Simulation.log” file in your ODYSSEE CAE project: "C:\Users\...\Documents\ODYSSEE\CAE\Lunar\NameOfProject"
    All the arguments sent in the command prompt are displayed between String[] arguments and Computing results at the right of the equal symbol.
     
    Here an example:
    image
     
    As the list is long, we have a faster way to use it:
     
    1)    Open simulation.log file
    a.    copy the lines from String[] arguments included to the end of the argument list arguments[ ]=  (stop before the dashed line)
     
    2)    Open Simulation.qs file
    a.    search the line 57: String[] arguments <-> $args
    image
    b.    Replace this line by the copy, should get the following result
    image
    c. Save Simulation.qsr the file
     
     
    3)    Finally, in the batch file, run this command line:
    cd "C:\Users\...\Documents\ODYSSEE\CAE\Lunar\NameOfProject"
    "C:\Program Files\ODYSSEE\CAE\QuasarEngine_2.exe" Simulation.qsr
  • Thanks Benjamin,
     
    I have Lunar, not CAE so when I run the corrected script in a command prompt it show the same import error as before:
     
    Error at line 48:8 in Simulation_mod.qsr : Unable to find library "QuasarMatrix". Note that environement variable QUASAR_LIBS have not been set
     import "QuasarMatrix"
         ^
    An error occured while script compilation. Please correct it and try again.
     
    If I add the QUASAR_LIBS environmental variable I can get a bit further, but new error being:
     
    Computing results of Dataset #1 with POD solver
    INTEL MKL ERROR: The specified module could not be found. mkl_avx2.dll.
    Intel MKL FATAL ERROR: Cannot load mkl_avx2.dll or mkl_def.dll.
     
    Is there something else needed to setup the environment?
     
    Thanks!
  • Dear Doug,
     
    Indeed, with an old version of Lunar, the environment variable is necessary.
     
    For the problem of libraries, we will contact you via ODYSSEE support.