Specifying the Values Exchanged with the FMU

During the co-simulation, Simcenter STAR-CCM+ exchanges data with the FMU. As FMU variables are spatially-invariant, Simcenter STAR-CCM+ must export single-value data. To convert space-dependent fields to single-values, you can use reports. You can also use reports to store imported data.

The starting simulation contains predefined reports that average the mass flow at the outlet and the fluid load on the plate surface. It also contains additional reports that you can use for storing the imported displacement and pressure data.
  1. Expand the External Links > Link 1 > Conditions > Exported Values node.
  2. Select the amesim_interface.Flowrate node and set Value to ${MassFlow1Report}.
  3. Select the amesim_interface.Force node and set Value to ${Force1Report}.
Use the remaining reports to store the values imported from the FMU:
  1. Expand the Reports node.
  2. Select the PlateDisplacement report and set Definition to:
    ${Link 1.amesim_interface.ValveDisplacement}
  3. Select the OutletPressure report and set Definition to:
    ${Link 1.amesim_interface.OutletPressure}
  4. Select the InletPressure report and set Defintion to:
    ${Link 1.amesim_interface.InletPressure}
To apply the imported pressure data to the Simcenter STAR-CCM+ inlet and outlet boundaries:
  1. Expand the Regions > Pipe > Boundaries node.
  2. In the Inlet > Physics Values > Total Pressure node, and set Value to:
    ${Link 1.amesim_interface.InletPressure}
  3. In the Outlet > Physics Values > Pressure node, and set Value to:
    ${Link 1.amesim_interface.OutletPressure}
The starting simulation includes a user-defined vertex motion that is already assigned to the plate region. Configure this motion so that the plate moves according to the displacement calculated in Simcenter Amesim.
  1. Navigate to the Regions > Plate > Physics Values > Linear Displacement > Composite > X Component node and set Value to:
    ${Link 1.amesim_interface.ValveDisplacement}
  2. Save the simulation.