Run simulation from cmd

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?)

Thank you very much!

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.

However, if you want to automate PrePoMax usage from the command line, there is a new functionality for that: A new developer/preview PrePoMax version v2.1.7 has been released - #3 by Matej

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:

c:\Temp>c:\PrePoMax\Solver\ccx_dynamic.exe fileName

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?


Than you very much!

This is explained here: Using standalone CalculiX

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.

You have to use the file name without the extension! (.inp)

You do not have to put both files in the same folder. As I explained:

you can use the full path to call CalculiX in any 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.

I think I am doing something wrong. If I only use set command nothing works.
This way it seems something is done:

e
However, when the calculus is working, Using up to 1 cpu(s) for the stress calculation. so I think it is not working right?

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.