We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
General

General

How can I stop an ANSYS CFX Solver run smoothly directly from the command line without using the ANSYS CFX Solver Manager or the Workbench/Remote Solver Manager (RSM) interrupt button? Also, how can I create a backup file from the command line?

    • FAQFAQ
      Participant

      The following commands will stop the ANSYS CFX solver at the end of the next timestep and the solver will write a result file (res file). The solver runs in the “runtime” directory, e.g. example_001.dir. You can stop the solver by cfx5stop -dir -dir Name of directory in which the ANSYS CFX Solver is running. When the supplied directory is the the overall run directory for a multi-configuration or operating point case, prevent the run from starting new configurations or individual operating points, but allow running configurations or operating points to complete. E.G: cfx5stop -dir example_001.dir Alternatively you can use the following Unix command on Linux to create the file “stp” in the runtime directory, which will have the same result as using cfx5stop: touch example_001.dir/stp On Windows, the equivalent command would be: type nul > example_001.dir/stp Saving a backup You can use the following Unix command on Linux to create the file “trn” in the runtime directory, which will save a backup file. Creating a “bak” file in the runtime directory will also save a backup file. touch example_001.dir/trn OR touch example_001.dir/bak On Windows, the equivalent command would be: type nul > example_001.dir/trn OR type nul > example_001.dir/bak