Defining Imported and Exported Scalar Values

The FMU model defines the scalar variables that are exchanged in the co-simulation. To define the exchanged quantities in Simcenter STAR-CCM+, you import the variable settings defined in the FMU.

In this simulation, Simcenter STAR-CCM+ exports the target temperature value and the current temperature at the outlet to the FMU, and receives the PI controller temperature computed by the FMU. The computed temperature is applied as boundary condition at the inlet.

To import the FMU variable settings:

  1. Right-click the External Links > Link 1 node and select Import Settings.
    Simcenter STAR-CCM+ automatically populates the Link 1 > Exported Values and Imported Fields nodes based on the FMU input and output variables.

For the exported value nodes, specify the field function that stores the temperature data to be exported:
  1. Select the Exported Values > Expected_Temperature node and set Value to ${TargetTemperatureReport}.
  2. Select the Exported Values > Sensor_Temperature node and set Value to ${CurrentTemperatureReport}.
Simcenter STAR-CCM+ automatically saves the inlet temperature value imported from the FMU in a field function. Use this field function to set the total temperature boundary condition at the inlet:
  1. Expand the Regions > Fluid > Boundaries > inlet1 > Physics Values node.
  2. Select the Total Temperature node and set Value to ${Link 1.PID_Temperature}.
To monitor the imported temperature, create a report:
  1. Right-click the Reports node and select New > User > Expression.
  2. Rename the report, PIDTemperature, and set its Definition to ${Link 1.PID_Temperature}.
Finally, create a monitor and plot from the temperature reports:
  1. Expand the Reports node and multi-select all reports.
  2. Right-click one of the selected reports and select Create Monitor and Plot from Report.
  3. In the dialog, choose Single Plot.
To monitor the thermal solution in Simcenter STAR-CCM+, also create a temperature scene:
  1. Right-click the Scenes node and select New > Scalar.
  2. Expand the Scenes > Scalar Scene 1 > Scalar 1 node and set the following properties:
    Node Property Setting
    Parts Parts Regions > Fluid
    Scalar Field Function Temperature
    Units K
  3. Save the simulation.