18.1. Manual Production of ROM Files from Stand-Alone Fluent

You can generate the files required for producing a reduced order model (ROM) outside of the Ansys Workbench environment.

Producing a ROM using 3D ROM in Ansys Workbench requires that you have the following:

  • An Ansys Fluent case file with the Reduced Order Model defined

  • A ROM mesh file (rommsh)

  • Snapshot files for each of the solved input parameters

To generate these files, use the following steps:

  1. Create a Fluent case file that has the Reduced Order Model defined (Refer to Defining a ROM for additional information).

     Setup Models  Reduced Order Model Edit...

  2. Use the Execute on Demand dialog box to tell Fluent to generate the setup files required for creating the mesh and snapshot files.

     User-Defined User Defined Execute on Demand...

    1. Select write_rombuilder_setup_file::rom from the drop-down and click Execute.

    2. Close the Execute on Demand dialog box.

  3. Enter the (%rom-write-mesh-file "mesh.rommsh") command into the console and press Enter.

    This command creates the mesh.rommsh file in the Fluent working directory. This mesh is used to display the ROM.

  4. Review your input parameters to ensure they are setup as you intend. This includes setting the input parameters to the desired initial value.

     Parameters & Customization Parameters Input Parameters

  5. Initialize the solution and click OK to dismiss the Question dialog box that may appear. It is OK to clear the data that you generated before beginning the ROM process. You can always write case and data files before initializing the solution, if you have concerns.

     Solution Initialization Initialize

  6. Begin the calculation.

     Solution Run Calculation Calculate

  7. Once the calculation is complete, enter the (%rom-write-snapshot-file "snp_1.romsnp") command into the Fluent console and press Enter, to generate the snapshot file for these input parameter values.

  8. Generate snapshot files for the remaining design points that you intend to explore by following the preceding four steps (specify input parameters, initialize, calculate, create snapshot file).

  9. Save the case file with the defined ROM. (File Write Case).

Once you have generated the ROM snapshot files and ROM mesh file, you are ready to produce the ROM.

Generating a 3D ROM from Manually Produced Snapshot and Mesh Files

  1. Look in your Ansys installation directory to locate Rom.MeshProcessing.exe (<installation directory>\ANSYS inc\<version>\Addins\ROM\bin\Win64 (or Linux64)), then navigate to this location from the Windows or Linux command line.

  2. Run the following command on the Windows or Linux command line:

    Rom.MeshProcessing.exe <path to Fluent working directory>\mesh.rommsh <path to Fluent working directory>\mesh_processed.rommsh

    This command creates the mesh_processed.rommsh mesh file in the Fluent working directory.

  3. Start Ansys Workbench, open a Fluent component system, and load the case file you saved from stand-alone Fluent (with ROM defined).

  4. Double-click 3D ROM under Design Exploration to connect a 3D ROM system to the Parameter Set bar of the Fluent component system.

  5. Transfer the ROM settings of the Fluent system to the 3D ROM system by opening Fluent, then closing it again. (Double-click the Fluent Solution cell, then close Fluent once it opens). Alternatively, you can right-click the Solution cell and click Update, however this will take longer, as Fluent is re-solving for the specified design points.

  6. Double-click Design of Experiments (3D ROM) in the Project Schematic, to open the Design of Experiments (3D ROM) tab.

  7. Enable Show Advanced Options for Design Exploration in the Options dialog box (Tools Options...).

  8. Define the parametric space in the Design of Expriments (3D ROM) Outline view.

    1. Select the design point parameters that you want included in the ROM by enabling/disabling them in the Outline view (column B).

    2. Specify bounding values (such as minimum and maximum) in the Properties view for the enabled parameters.

    3. Click Preview in the toolbar to generate the design points without updating them.

  9. Load the processed ROM mesh.

    1. Select Design of Experiments (3D ROM) in the Outline view to display its properties.

    2. Click Browse... in the ROM Mesh File cell and select mesh_processed.rommsh.

    3. Click Copy and Proceed when prompted.

  10. Select Custom from the Design of Experiments Type drop-down.

  11. Right-click in the Table pane and select Set All Output Values as Editable.

  12. Enter placeholder values for the cells of columns P5 and P6 (0 is an appropriate placeholder value).

  13. Manually set the snapshot file for each design point:

    1. Right-click the Fluent ROM Snapshot cell for the first design point, browse to snp_1.romsnp and click Copy and Proceed.

    2. Repeat this process for all of the design points.

  14. Save the Ansys Workbench project and update the Design of Experiments (3D ROM) cell (by right-clicking it and selecting Update).

    This operation is fast because all of the outputs are already calculated.

  15. Click the ROM Builder cell to display its properties.

  16. Select Fluent (FLU) as the Solver System (under ROM Builder).

  17. Update the ROM Builder cell to create the ROM.

For additional information on using 3D ROMs as well as an example, refer to Manual Production of ROM Files from Standalone Fluent .