I am generating a PrePomax compatible .inp file and would like to run it without importing the file in PrePoMax and clicking in the file to run it.
Is this possible to do?
I read apost which I think are related to what I am asking, but I am a bit new with this program and not sure if they are talking about the same thing (Launch Calculix solver from PrePoMax?)
If you only want to prepare a simulation in PrePoMax, export it and run from the input file using CalculiX solver outside of PrePoMax (after completion you can import the results to PrePoMax or another postprocessor) then the thread linked in your post is for you.
Yes, use the command prompt to navigate to your .inp file, then call CalculiX with its full path (if you are using PrePoMax it can be found in Tools → Settings → CalculiX → Executable) and add the name of the .inp file without extension as an argument:
Good morning,
I tried running one .inp file that I generated from a tutorial I made and cannot it make it work from the cmd.
Should I put the .inp file in the same folder as the .exe file of calculix solver? should I add or modify any varables of the system?
You can either put the solver binary in the same folder as the input file or set the PATH environment variable so that it’s not necessary to have those files in the same folder.
DId not completely understood all you told me, but I reached to make it work with this command in cmd: ccx_dynamic prueba\Analysis-42_gears_Aurea
I runned this inside the location of the calculix solver and put my inputs in a folder named “prueba” to test.
It worked, so I will work this way! I prefer not to change path or variables in the computer.
To determine the number of CPUs, I read you have to write this in cmd, but not sure I make it work properly.
Should I run it in the same way??
The setx command just sets this environment variable needed for parallel computations with CalculiX. You could use the set command instead to set it temporarily.
You may have to reopen the command line to have it available after setx. You can also use the echo command mentioned in that other forum thread or check in environment variables editor to see if it’s saved.