Hi,
If you need to run multiple analysis sequentially you can use this script.
automatedMultiRun.py : Automated analysis runs for multiple .inp files.
What this code does?
This script helps you to run multiple analyses sequentially.
Usage Instructions
- Generate
.inpFiles
Generate your analysis files by exporting as.inpfiles. 'analysis_1.inp, analysis_2.inp, analysis_3.inp etc.` - Set Working Directory
Set the path to.inpfiles in the Python script @line#7 ---->working_directory = "C:\\Users\\ABCDEF\\Desktop\\Analysis\\" - Set CalculiX Executable Path
Set the path toccxVERSION.exeexecutable in the Python script @line#10 ---->ccx_executable = "C:\\Users\\ABCDEF\\Desktop\\Calculix\\bin\\ccx\\ccx213.exe" - Add Files to Run List
Add .inp file names to list in the Python script @line#13 ---->inp_files = ["analysis_1", "analysis_2", "analysis_3"]" - Specify Number of Processors You Want to Use
Edit variable ‘numberOfCores’ in the Python script @line#18numberOfCores = 4 - Run the Script When you run the script, it will send
.inpfiles one by one toCalculixfolder. You will be able to see elapsed time for each run and also total time for all analysis. - See Result Files Result files are going to be created in the working directory you set @step#2.
optional You can also use getResultsFromFRD.py script to work easily with nodal stress\strain\force\displacement results. PrePoMax_CalculiX_OpenSource/getResultsFromFRD at main · mhayrettin/PrePoMax_CalculiX_OpenSource · GitHub