This example illustrates a typical sequence in which Fluent Remote Console is used to connect to a running Fluent Server session and perform a remote simulation. It will demonstrate the following basic tasks:
Start Fluent Remote Console
Connect to a Fluent Server session using a keyfile,
such as aaS_FluentId.txt file
Upload a case file from the client machine to the Fluent Server
Get and set parameter and rpvar values for the simulation
Use TUI commands to initialize and iterate the solution
Save the case and data files to the client machine
End the Fluent session
Note: This example presumes that a Fluent Server session is running on a local or remote machine. For details on starting a Fluent Server session, see Starting Fluent In Server Mode.
Example Procedure
Start Fluent Remote Console using one of the methods in Using the Fluent Remote Console.
C:\>"\Program Files\ANSYS Inc\v182\fluent\fluent18.2.0\launcher\win64\flconsole"
Connect to a running Fluent Server session (fsm.connect_to_session).

Because a filename
was not specified with the fsm.connect_to_session command, a dialog box opens to select the aaS_FluentId.txt file.

After clicking Open, Fluent Remote Console reports the connection status and lists available parameters. In this example, no case file is loaded in the Fluent session, so no parameters are available.
Load a case file from the local (client) machine (fluent.load_case).

Because a filename
was not specified with the fluent.load_case command, a dialog box opens to select the case file.

Fluent Remote Console reports
that the case has been loaded. Note that we use the fluent.load_case command which uploads the case file to the server machine prior
to it being read into Fluent.

The case is loaded into the Fluent session. In this case, the Fluent session was started with graphics enabled so it displays the mesh as it would if running interactively.
Retrieve the current parameter values (fluent.list_parameters).
This case has 3 parameters defined: input MachNumber, and outputs Drag and Lift.

There is not
yet any solution data, so Drag and Lift values are reported as 0.000000.
Initialize the solution (TUI Command solve
initialize hyb-initialization).

Iterate the solution (TUI Command solve iterate
200).

Fluent iterates until convergence is reached and prints the iteration information to the Fluent output window.
Get the values of Drag and Lift (fluent.get_parameter).

Change the value of MachNumber and Pressure relaxation
(fluent.set_parameter, fluent.retrieve_rpvars_info,
fluent.list_rpvars_wildcards, fluent.set_rpvar).
Note: You must use fluent.retrieve_rpvars_info to update the available rpvars from Fluent before listing the
rpvars for the first time, and any time that new rpvars are created.

This case uses the Coupled Pressure-Based solver with Pseudo Transient
relaxation, so the rpvar pressure-coupled/pressure/pseudo-explicit-relax is chosen.
Direct output to the Fluent Output window and update the solution
(fluent.set_silent, solve iterate
200).
Report the values of Drag and Lift at MachNumber = 0.7.

Save the case and data files to the client machine (fluent.save_case, fluent.save_data).

Since no filename
was specified to fluent.save_case a dialog
box opens for you to select a location. The fluent.save_data command is performed the same way. Note that fluent.save_case and fluent.save_data allow you to save
the case/data files to the local (client) machine.
Terminate the Fluent session (fluent.terminate).
