{"id":166814,"date":"2023-04-05T14:32:09","date_gmt":"2023-04-05T14:32:09","guid":{"rendered":"\/knowledge\/forums\/topic\/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\/"},"modified":"2023-07-31T12:27:43","modified_gmt":"2023-07-31T12:27:43","slug":"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","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/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\/","title":{"rendered":"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?"},"content":{"rendered":"<p>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 &#8220;runtime&#8221; directory, e.g. example_001.dir. You can stop the solver by   cfx5stop  -dir  <directory>  -dir <directory>     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 &#8220;stp&#8221; 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 &#8220;trn&#8221; in the runtime directory, which will save a backup file. Creating a &#8220;bak&#8221; 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<\/p>\n","protected":false},"template":"","class_list":["post-166814","topic","type-topic","status-publish","hentry","topic-tag-4391","topic-tag-cfx","topic-tag-fluid-dynamics","topic-tag-general-cfx"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["5\/4\/2023 20:20"],"_bbp_forum_id":["27796"],"_bbp_author_ip":["209.182.204.162"],"_btv_view_count":["2618"],"siebel_km_number":["2056478"],"product_version":["19"],"km_published_date":["2018-09-25T00:00:00.000Z"],"family":["Fluid Dynamics"],"application_name":["CFX"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/166814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/166814\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=166814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}