Solve a solution from the command prompt
This example shows how to solve a Simcenter 3D solution from the command prompt instead of starting the TMG Executive Menu user interface.
Set the required environment variables for the software from which you run the TMG thermal-flow solvers: Simcenter 3D or Simcenter Femap. for more information, see Environment variables.
This task assumes that you run a TMG Executive Menu included with Simcenter 3D. Similar commands can be used with Simcenter Femap instead of Simcenter 3D when you change the environment variable and the executable name and location.
-
In the command prompt, type the following command to launch the TMG Executive Menu application and press Enter:
$UGII_TMG_DIR/com/tmgnx.cmd
This starts the TMG Executive Menu application in the text mode directly in the command prompt, which lists command prompt switches and prompts you to enter the desired switch. For each switch you use, the application guides you through all the information it requires. The switches are not case sensitive.
-
Type
NX
and press Enter.TheNX
switch is equivalent to the Run analysis from XML, in solution's run directory process listed in Solve processes. Through the command prompt you can solve only one solution at a time. - Type the absolute or relative path to the solution input XML file and press Enter.
Alternatively, you can combine the first two steps as follows in the command prompt, which requests the path to the XML file before solving:
$UGII_TMG_DIR/com/tmgnx.cmd nx
You can also combine all three steps as follows:
$UGII_TMG_DIR/com/tmgnx.cmd nx -inPath [path to the XML file]
$UGII_TMG_DIR/com/tmgnx.cmd nx -inPath Test1/Simulation1-Solution1.xml
Because the solution input file in the Simcenter 3D
Multiphysics solver environment has the .mpdat extension, use mp
or mn
switches instead nx
:
$UGII_TMG_DIR/com/tmgnx.cmd mp -inPath [path to the MPDAT file]