AixLib.Fluid.FMI.ExportContainers.ReplaceableTwoPort

# .AixLib.Fluid.FMI.ExportContainers.ReplaceableTwoPort

Container to export thermofluid flow models with two ports as an FMU

## Information

Block that serves as a container to export a thermofluid flow component. This block contains a replaceable model `com` that needs to be redeclared to export any model that has as its base class AixLib.Fluid.Interfaces.PartialTwoPort. This allows exporting a large variety of thermofluid flow models with a simple redeclare.

See for example AixLib.Fluid.FMI.ExportContainers.Examples.FMUs.PressureDrop or AixLib.Fluid.FMI.ExportContainers.Examples.FMUs.HeaterCooler_u for how to use this block.

Note that this block must not be used if the instance `com` sets a constant pressure. In such a situation, use AixLib.Fluid.FMI.ExportContainers.PartialTwoPort together with AixLib.Fluid.FMI.Adaptors.Inlet and AixLib.Fluid.FMI.Adaptors.Outlet and set the pressure to be equal to the port `p` of AixLib.Fluid.FMI.Adaptors.Outlet.

## Revisions

- November 8, 2014, by Michael Wetter:
  First implementation.

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos