You can use the Fluent as a Server functionality to couple ANSYS Fluent with SPT-OLGA using the ANSYS Workbench or the ANSYS Simplorer environment. The coupling is implemented through IronPython scripting that makes use of connectors/libraries that are supplied with Fluent. Both Workbench and Simplorer incorporate IronPython scripting environments. So, while the examples in this manual will show the usage in Workbench, the same approach and techniques apply to coupling through Simplorer.
The coupling is implemented as a Master/Slave model. In this model, a single process (the Master) has unilateral control over one or more other processes (the Slaves). The Slave processes do not communicate with each other and any synchronization between the Slave processes is the responsibility of the Master process. For example, in a transient simulation the Master process must manage the simulation time for all of the Slave processes.
In the OLGA-Fluent coupling implementation, the Master role can be filled by the IronPython interpreter that is available in either Workbench or Simplorer. Fluent and OLGA are the Slaves (along with any other supported Workbench components or Simplorer couplings). Several DLLs and helper applications are made available in the Software Development Kit to enable communication between the Master and Slave processes.
Figure 4.2: OLGA-Fluent Coupling Implementation shows how the Master/Slave model is employed for OLGA-Fluent coupling.
The important points to note are:
The Master role is occupied by the IronPython interpreter that is present in both Workbench and Simplorer.
The OLGA OPC Connector DLL and Fluent as a Server DLL contain modules that are used to communicate with the OLGA and Fluent Slave processes. (Master-Side Libraries)
An OLGA OPC Connector application runs on the OLGA host machine and listens for connections from the Master process. (OLGA OPC Connector)
The Fluent as a Server Connector is embedded in the Fluent application and is enabled by starting Fluent in Server mode as described in Starting Fluent In Server Mode.