+47 67 57 21 00
+46 21 470 35 50
ANSYS Tutorial - APDL and Remote Solve
ANSYS Workbench 12.1 Tutorial: Now you can run ANSYS Mechanical APDL input files through the Remote Solve Manager (RSM). Read step-by-step instructions and see the tutorial video in this article...
ANSYS Workbench has had the capability of submitting jobs to a remote server though RSM (Remote Solver Manager) since release 11. This means that a Workbench user can:
- Perform Preprocessing on a local machine
- Submit to a more powerful remote server
- Downloads the result files back to the local machine and continue the post processing.
For Mechanical APDL, it has not available prior to the release of V12.1. Here is detailed description on how to do it!
V12.1 brings us a lot of bright news and to submit a Mechanical APDL job to a remote server through RSM is one of them. To be honest, this function is not perfect but I am still quite satisfied. This is the first step and we have reasons to expect more in future releases.
First define a directory as working directory. In the directory it contains two files: “remote.dat” and “rsmtest.dat”. “remote.dat” is a remote solver controlling file and should look like the one shown in Figure 1. “remote.dat” must not be changed to other names. “rsmtest.dat” is the job we intend to submit to a remote server. There is no limitation with the filename but the extension must be “dat”.
Figure 1. contents of “remote.dat”
In “remote.dat” there are several ANSYS parameters: -m and –dp define total size of workspace and database, -np assigns number of processors to be used and –p defines which ANSYS product will run during the session. More detailed descriptions for parameters are found in the ANSYS Help:
// Operations Guide // 3. Running the ANSYS Program // 3.1. Starting an ANSYS Session from the Command Level
Submit the job
We can submit job directly in Workbench. But for Mechanical APDL, we have to do it manually:
Figure 2. Submit job manually.
There are three items required to submit a job. In Queue, the drop down list contains: Local, Immediate and all available remote servers. Here we choose a remote server with name “monster2”. In Template, we point it to the job template file. Working Directory is that one we defined in the first step.
Figure 3. SubmitForm.
After clicking “Submit” button, we will see log messages in the progress pane as in Figure 4. When the job is finished, RSM will automatically download three files back to the working directory: “file.err”, “solve.out” and “file.rst”. I tried to use different jobnames and to download more files without success. Maybe it will be possible in next version.
Figure 4. Log messages in the progress pane.
In the SubmitForm, if we choose Local or Immediate instead of a remote server, we can have any extensions for the input file of the submitted job such as “rsmtest.inp”, “rsmtest.txt” or whatever. When the solution is finished, we will get all files in the working directory. It looks like we submit the job though Batch model in ANSYS Product Launcher. One advantage to submit job through RSM is to run batch processing. In “remote.dat”, we can input several input files such as
and change jobnames in corresponding input files by commands “/filname”. We will get result files for all jobs in the working directory when all jobs are finished.
Do you want to learn more?
EDR provides a training course that covers basic Workbench operations, as well as other interesting topics.
Or contact our ANSYS Support to ask for hints!