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.
-
To load the Simcenter Amesim 1D simulation file:
- Launch Simcenter Amesim.
- From the top menubar, select .
- In the Open dialog, navigate to the designExploration folder of the downloaded tutorial files and select flapperValve_1DAmesim.ame.
- Click Open.
To import the FMU as a component in Simcenter Amesim:
- From the top menubar, select .
-
In the FMU Import Assistant dialog:
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.
-
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:
-
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...
Note The 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. - To save the file, select the Save As dialog, set File name to flapperValve_1DAmesim_run.ame, then click Save. . In the