modelPartialTwoPortVector
Partial component with two ports, one of which being vectorized
Information
This partial model defines an interface for components with two ports, of which one is vectorized.
The treatment of the design flow direction and of flow reversal are
determined based on the parameter allowFlowReversal.
The component may transport fluid and may have internal storage.
Implementation
This model is similar to
Modelica.Fluid.Interfaces.PartialTwoPort
but it does not use the outer system declaration.
This declaration is omitted as in building energy simulation,
many models use multiple media, and in practice,
users have not used this global definition to assign parameters.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| General › Ports | |||
| Integer | nPorts | Number of ports | |
| Assumptions | |||
| Boolean | allowFlowReversal | true | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
| Advanced › Diagnostics | |||
| Boolean | show_T | false | = true, if actual temperature at port is computed |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to ports_b) | |
| Modelica.Fluid.Interfaces.FluidPorts_b[nPorts] | ports_b | Fluid connectors b (positive design flow direction is from port_a to ports_b) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.ThermodynamicState | sta_a | Medium.setState_phX(port_a.p, noEvent(actualStream(port_a.h_outflow)), noEvent(actualStream(port_a.Xi_outflow))) | Medium properties in port_a |
| Medium.ThermodynamicState[nPorts] | sta_b | Medium.setState_phX(ports_b.p, noEvent(actualStream(ports_b.h_outflow)), noEvent(actualStream(ports_b.Xi_outflow))) | Medium properties in ports_b |
Contents
| Name | Description |
|---|---|
| Medium in the component |
Revisions
-
March 30, 2021, by Michael Wetter:
Added annotationHideResult=true.
This is for IBPSA, #1459. -
January 31, 2019, by Michael Mans:
Added optional temperature state calculation as diagnostics option. See #1092. -
January 18, 2019, by Jianjun Hu:
Limited the media choice. See #1050. -
July 8, 2018, by Filip Jorissen:
Added nominal value ofh_outflowinFluidPorts. See #977. -
November 19, 2015, by Michael Wetter:
Removed parametersport_a_exposesStateandport_b_exposesStatefor #351 andshowDesignFlowDirectionfor #349. -
November 13, 2015, by Michael Wetter:
Assingedstartattribute for leaving enthalpy atport_aandport_b. This was done to make the model similar to Buildings.Fluid.Interfaces.PartialFourPort. -
November 12, 2015, by Michael Wetter:
Removed import statement. -
October 21, 2014, by Michael Wetter:
Revised implementation. Declared medium in ports to befinal. -
October 20, 2014, by Filip Jorisson:
First implementation.