blockReplaceableTwoPort
Extends from Buildings.Fluid.FMI.ExportContainers.PartialTwoPort (Partial block to be used as a container to export a thermofluid flow model with two ports).
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
Buildings.Fluid.Interfaces.PartialTwoPort.
This allows exporting a large variety of thermofluid flow models
with a simple redeclare.
See for example Buildings.Fluid.FMI.ExportContainers.Examples.FMUs.PressureDrop or Buildings.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
Buildings.Fluid.FMI.ExportContainers.PartialTwoPort
together with
Buildings.Fluid.FMI.Adaptors.Inlet
and
Buildings.Fluid.FMI.Adaptors.Outlet
and set the pressure to be equal to the port p of
Buildings.Fluid.FMI.Adaptors.Outlet.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | use_p_in (from PartialTwoPort) | true | = true to use a pressure from connector, false to output Medium.p_default |
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialTwoPort) | true | = true to allow flow reversal, false restricts to design direction (inlet -> outlet) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Inlet | inlet (from PartialTwoPort) | Fluid inlet | |
| Interfaces.Outlet | outlet (from PartialTwoPort) | Fluid outlet |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Fluid.Interfaces.PartialTwoPort | com | ||
| Modelica.Blocks.Sources.RealExpression | dpCom | Pressure drop of the component |
Revisions
-
November 8, 2014, by Michael Wetter:
First implementation.