Run SimSolid on Linux
The Linux version of SimSolid works without any user-interface and is meant to run jobs on HPC clusters.
- Use the installer to install SimSolid on any Linux machine.
- Once the installation is successful, you can use the command line below to
run SimSolid jobs.
<installation folder>/altair/scripts/SimSolid -s <Path to .js file>/<filename>.js -p <path to SSP file>/<SSP filename> -l <path to log file>/log.txt
- Command Breakdown
<installation folder>/altair/scripts/SimSolid- The path to the SimSolid executable.
-s <Path to .js file>/<filename>.js- Specifies the path to the JavaScript (.js) file containing the batch commands.
-p <path to SSP file>/<SSP filename>- Specifies the path to the SimSolid Project (.ssp) file that the JavaScript will operate on. This acts as a parameter (%1%) within the JavaScript.
-l <path to log file>/log.txt- Specifies the path where the log file will be generated, capturing the execution details.
-
General Analysis Execution (Solve All Analyses)
// open project Project.open({ file: '%1%.ssp'}); //Set number of logical cores for the solution Project.setOptions({ numOfCoresToUse: 24 }); // Adjust 24 to your desired number of cores // initialize solutions within the project Project.initializeSolutions(); // solve all analyses in the project Project.solveAllAnalyses(); // save project with a modified filename Project.save({ file: '%1%_solved.ssp'});The above script performs a series of actions namely - opens an SSP file, initializes the solution, runs all the analysis, and saves the SSP by appending _solved to the original file name. It is also set to run the jobs using 24 cores.
-
Executing a Specific Analysis in a Specific Design Study
This script demonstrates how to target and solve a particular analysis within a designated design study.
// open project Project.open({ file: D:/fin2.ssp}); //Set number of logical cores for the solution Project.setOptions({ numOfCoresToUse: 24 }); // Adjust 24 to your desired number of cores // run specific analysis var analysisSpecific = null; for (var study of Project.getDesignStudies()) { if (study.getName() == 'Design study 1') { // Specify the exact name of your design study for (var analysis of study.getAnalyses()) { if (analysis.getName() == 'Modal 1') { // Specify the exact name of your analysis analysisSpecific = analysis; break; } } break; } } if (analysisSpecific) { analysisSpecific.solve(); // Solve the identified specific analysis } else { // Optional: Add logging or error handling if the specified analysis is not found Log.write ('Error: Specified design study or analysis not found.'); } // save project Project.save({ file: '%1%_solved.ssp'});The above script performs a series of actions namely - opens an SSP file, runs Modal 1 analysis in Design study 1, and saves the SSP by appending _solved to the original file name.