Monitoring an ANSYS Fluent Batch Job Remotely

Overview

This document describes the methodology to connect and monitor a Rescale ANSYS Fluent batch job remotely using ANSYS Fluent Remote Visualization Client from a Rescale or local Workstation.

Prerequisites

  • Setup SSH connectivity in Job Settings before any jobs are submitted, as described here.
  • A Rescale Batch and Workstation job are required to be submitted
  • The Rescale Workstation job can be substituted with a local workstation
  • Both the batch job (server) and workstation (client) version of Fluent must be exactly the same
    • In this document, we will use ANSYS Fluent 2022 R2.
  • The following methodology uses Linux. Windows implementation is also applicable with some modifications.
  • This is not supported in the Workbench environment; Fluent stand-alone only.

Submitting a Fluent Batch Job

The general workflow of this step can be followed here ANSYS Fluent Batch Tutorials

In order to start the Fluent Remote Visualization Server when the batch job is submitted, the following syntax is needed to be added in the command box:

-sifile=rescale_remote.txt

An example submit command would look like this:

fluent 3ddp -gu -ssh -cnf=$FLUENT_HOSTS -t$RESCALE_CORES_PER_SLOT -i run_plot.jou -sifile=rescale_remote.txt

If specifying the port range for the server is required, an additional syntax can be added:

-setenv="REMOTING_PORTS=40000/portspan=10"

A minimum of 2 ports (portspan=>1) is necessary for a successful connection.

Once the batch job is running, the rescale_remote.txt file will be created in the working directory. It contains the server’s private IP, port number, and Fluent job password. Take note of these as they will be used in the next step.

z1zQQ78 1FQi rIej ZqS1Wka9RGmg87xSED6UoR7GcuXmVtlkDoFwaXKDvAJzh1tg 8bxlKp1qQZK4ecFuHJnwTzU9vcMxrgRR9XQ4dT6xRrXNnaFlpqlRYIzHsPN1C8MDtArgMJ8 vxZgCgsJQdBp9ukl6VGtk5ZgTxvmqOsoFty2 xDmLZE367 XV4w

Connecting from a Rescale Workstation

Create a Workstation job with the ANSYS Interactive Workflow tile. Ensure the same version as the batch job is used.

Connect to the GUI interface, click Manage Desktop on the desktop, and select the batch job submitted in the previous step.

Find rescale_remote.txt in the Live Tailing window, and download the file.

A57vvZ5UscQIE2 PWX6w515aSVFbUqa sX36T2PnoWmxKpG AhJHlwIL8m8sjr0xWncMZF9D02EmMQFYW7ped5EUItYqg4j2Z5R 75BXvJezQsS8so7N l pQokIV7Q66vABskSYfe4JCO2ok0mIW1OUQcB08DIhiAfbIvowHxyZa NNGzmTUlPNTGFnLA

Setup a reverse SSH tunnel to the batch job from a terminal window (assuming ssh keys are implemented correctly).

The rescale_remote.txt file contains an IP address and port (shown above), these should be included in the following command after the -L flag, e.g.:

ssh -i id_rsa -p 22 udeprod_SBLKd@20.238.159.14 -L 
46249:10.29.3.246:46249 -v -N

In this case:

id_rsaPrivate key file for SSH
22 (or 32100)SSH connection port
udeprod_SBLKdBatch job username
20.238.159.14Batch job public IP
46249Fluent Remote Viz server port*
10.29.3.246Fluent Remote Viz server private IP

Find rescale_remote.txt downloaded previously and edit it, exchanging the IP with:

localhost

The final file should look something like this:

JrPldyLb8x9tf3TPNPAmkupvcTWOA8RNz8HEullGEiQli1Ty6I7nBNYLGVGPh3ACYkTJbCO84BjgkjSXh5MfzrDt9fXFkzsJLakYRxjePqypxXt3diqPYK80Mixb9fGRANGD k4F smdtlfw7 9oUOEZPRsoiV0sDPrDhVa90LazrVhTjHvQgthvNw4wgg

Running ANSYS Fluent Visualization Client

From a new terminal window, run the command:

flremote

When the client is loaded, select the modified rescale_remote.txt file.

pii90NJKVtcAiRmmL828 UVsAUwXStHy w9Mk3xTT4iOSPrBXb79pEoGwYg0OaP3fOGH 2D4xxK74x4T2Qsi3XsZqQrHpy1nZ0d0Jl29n2yy5pd6e5iNr3dV8o2bMB1kUvHJ3kLJDisdUes5WmB3WyAPrF81JX3Y

Click the Connect button and the client will successfully connect to the server.

R6LvGmOPrEW3JR0koe4JGyBvd qhnGDw9nQCDAY6AhrdAuQPFkHseQriqR6Nh

Check the Host’s IP address matches the server’s private IP address and the Case is the job running on the remote batch job.

Connecting from a Local Workstation

The procedure is the same as connecting from a Rescale Workstation. Ensure the required ports are open on the firewall and if necessary use the following in the batch job command to specify the ports that are allowed.

-setenv="REMOTING_PORTS=40000/portspan=10"

It may also be necessary to modify the SSH tunneled port to an open port. To check the necessary port is open, use the command:

ss -tupln |grep [port number]

This should return [port number] is LISTEN.

To check for connectivity, use the following command:

nc localhost [port number]

This should return a non-negative response.

AbZoX6idLjPb6knIudpfiT4poOoQoAx7Fa4BiSDjMKO0GlmOsA9 AR1F2iD2tY1S6pFQrFJW R7gFbkUHJ4k daZNEiBrSdLyv n0nqgXU U5umEEYZqoicxlBjXL TqlvqvaQo0XfUnHvMgTslOrtfYo0o5jfV4nNybE351R4EAlYOF1EtP3gImXwoSgw

Using ANSYS Fluent Remote Visualization Client

Up to six Remote Visualization Sessions can be made in one instance of the application. No ANSYS license is required for this application.

NX9P75tC2rzva9LgpKJWmXDB9ujKUCSCt5PTi duCDyNDsRiYjAgMwtcbefkqA9MrBaZjK8ytlQxL5xcOMTV3wPJfwjlTqJ1YBiHXmD6JnNguo06AkiJ9nUnJIIeLEcwtK7

It is possible to interact with the batch job calculation, by pausing and making changes.

Caution: Pressing Interrupt will STOP the Rescale batch job. There is NO “Are You Sure?” prompt to confirm your action.

It is also possible to show intermediate plots that have been predefined in the batch job.

zjYWoTDrDfOXjLcPJIVX3glrYz UFQz RQkveF3HTKTmpQrTpR5SzSHE9Lpa2O5LBAZMFB0wbQOA1O8dqblEOBwIbdBpFdpcjkMy9yduXLwJ7I6 C2va11mCiYxnmDYDEwjbXWbP4nd3xkc11yjC9N7 NWttcraDVttgvEu7Lk2cADsXKSUqXpyZJK Lg