Importing FMU into the 1D Simulation

Now that you have an FMU representing the flapper valve, you can place it within the 1D system simulation in Simcenter Amesim.

Make sure that your Simcenter Amesim version is 2020.2 or later.
  1. To load the Simcenter Amesim 1D simulation file:
    1. Launch Simcenter Amesim.
    2. From the top menubar, select File > Open.
    3. In the Open dialog, navigate to the designExploration folder of the downloaded tutorial files and select flapperValve_1DAmesim.ame.
    4. Click Open.
To import the FMU as a component in Simcenter Amesim:
  1. From the top menubar, select Interfaces > FMU import assistant....
  2. In the FMU Import Assistant dialog:
    1. Activate the Submodel name check box and set the properties of Functional Mock-up Unit as follows:
      Property Setting
      FMU Navigate to the folder where the exported FMU file from Simcenter STAR-CCM+ and select flapper_surrogates.fmu
      Submodel storage directory Select the folder where the FMU file is stored.
      Submodel name FLAPPER
    2. Click Next.
    3. Set the properties of Import settings as follows:
      Property Setting
      Compilation settings The active compiler is detected automatically. No user specification is required.

      For example, GNU GCC (64-bit) is selected automatically for windows.

      Preferred mode for mixed-type FMUs Activate

      model exchange

    4. Click Generate.
    5. Click Finish.
    The FMU component is added to the Library tree. To view the component, in the Search box, enter flapper.


To obtain a better overview of the system sketch, the flapper valve sub-model is extracted and described in a sub-sketch. The input and output ports are connected to the corresponding ports in the system sketch with the same colors and numbering.
  1. To add the FMU in the 1D simulation sketch, in the Library tree, click the FLAPPER component only once and drag it to the blank space in the flapper valve sub-sketch with specified inputs and outputs.


    The 1D system sketch is shown below. The 4 marked ports correspond to the ports of the FMU sub-sketch:



  2. To check the consistency of the imported parameters from Design Manager with the ports in the FMU sub-sketch, right-click the fmu component and select External variables...


    NoteThe positions of input parameters and responses in the imported FMU component must match the ports in the FMU sub-sketch. In case of position mismatching, swap the ports in the FMU sub-sketch.
  3. To save the file, select the File > Save as.... In the Save As dialog, set File name to flapperValve_1DAmesim_run.ame, then click Save.