Buildings.Templates.Components.Interfaces
Interface classes
Information
This package contains interface classes.
Extends from Modelica.Icons.InterfacesPackage (Icon for packages containing interfaces).
Package Content
Name | Description |
---|---|
Bus | Control bus |
PartialCoil | Interface class for coil |
PartialFan | Interface class for fan |
PartialHeatPump | |
PartialHeatPumpEquationFit | Interface for heat pump using equation fit model |
PartialPump | Base class for all pump models |
PartialPumpMultiple | Interface class for multiple pumps in parallel arrangement |
PartialPumpSingle | Interface class for single pump |
PartialSensor | Interface class for sensor |
Buildings.Templates.Components.Interfaces.Bus
Control bus
Information
This expandable connector provides a standard interface for all control signals of the component models.
Extends from Modelica.Icons.SignalBus (Icon for signal bus).
Modelica definition
Buildings.Templates.Components.Interfaces.PartialCoil
Interface class for coil
Information
This partial class provides a standard interface for coil models.
Extends from Buildings.Fluid.Interfaces.PartialTwoPortInterface (Partial model with two ports and declaration of quantities that are used by many models).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
replaceable package MediumAir | Buildings.Media.Air | Air medium | |
replaceable package MediumSou | Buildings.Media.Water | Source-side medium | |
Coil | dat | dat(final have_sou=have_sou,... | Design and operating parameters |
Nominal condition | |||
MassFlowRate | m_flow_nominal | mAir_flow_nominal | Nominal mass flow rate [kg/s] |
Configuration | |||
Coil | typ | Equipment type | |
Valve | typVal | Type of valve | |
Assumptions | |||
Boolean | allowFlowReversal | allowFlowReversalAir | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Boolean | allowFlowReversalAir | true | = true to allow flow reversal, false restricts to design direction - Air side |
Boolean | allowFlowReversalLiq | true | = true to allow flow reversal, false restricts to design direction - CHW and HW side |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Dynamics | |||
Nominal condition | |||
Time | tau | 20 | Time constant at nominal flow [s] |
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Connectors
Type | Name | Description |
---|---|---|
replaceable package Medium | Medium in the component | |
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
replaceable package MediumAir | Air medium | |
replaceable package MediumSou | Source-side medium | |
FluidPort_a | port_aSou | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_bSou | Fluid connector b (positive design flow direction is from port_a to port_b) |
Bus | busWea | Weather bus |
Bus | bus | Control bus |
Modelica definition
Buildings.Templates.Components.Interfaces.PartialFan
Interface class for fan
Information
This partial class provides a standard interface for fan models.
Extends from Buildings.Fluid.Interfaces.PartialTwoPortInterface (Partial model with two ports and declaration of quantities that are used by many models).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Fan | dat | dat(final typ=typ, final nFa... | Design and operating parameters |
Nominal condition | |||
MassFlowRate | m_flow_nominal | dat.m_flow_nominal | Nominal mass flow rate [kg/s] |
Configuration | |||
Fan | typ | Equipment type | |
Boolean | have_senFlo | false | Set to true for air flow measurement |
Integer | nFan | Number of fans | |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Dynamics | |||
Nominal condition | |||
Time | tau | 1 | Time constant of fluid volume for nominal flow, used if energy or mass balance is dynamic [s] |
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Graphics | |||
FanSingle | typSin | Buildings.Templates.Componen... | Type of single fan |
Integer | text_rotation | 0 | Text rotation angle in icon layer |
Boolean | text_flip | false | True to flip text horizontally in icon layer |
Connectors
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
Bus | bus | Control bus |
Modelica definition
Buildings.Templates.Components.Interfaces.PartialHeatPump
Information
This partial class provides a standard interface for heat pump models.
Extends from Buildings.Fluid.Interfaces.PartialTwoPortInterface (Partial model with two ports and declaration of quantities that are used by many models).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
replaceable package MediumHeaWat | Buildings.Media.Water | HW medium | |
replaceable package MediumSou | Buildings.Media.Water | Source-side medium | |
replaceable package MediumAir | Buildings.Media.Air | Air medium | |
HeatPump | dat | dat(typ=typ, is_rev=is_rev, ... | Design and operating parameters |
Nominal condition | |||
MassFlowRate | m_flow_nominal | max(mHeaWat_flow_nominal, mC... | Nominal mass flow rate [kg/s] |
Configuration | |||
HeatPump | typ | Equipment type | |
Boolean | is_rev | Set to true for reversible heat pumps, false for heating only | |
HeatPumpModel | typMod | Buildings.Templates.Componen... | Type of heat pump model |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Boolean | allowFlowReversalSou | true | Source side flow reversal: false to simplify equations, assuming, but not enforcing, no flow reversal |
Boolean | have_preDroChiHeaWat | true | Set to true for CHW/HW pressure drop computed by this model, false for external computation |
Boolean | have_preDroSou | true | Set to true for source fluid pressure drop computed by this model, false for external computation |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Dynamics | |||
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Connectors
Type | Name | Description |
---|---|---|
replaceable package Medium | Medium in the component | |
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
replaceable package MediumHeaWat | HW medium | |
replaceable package MediumSou | Source-side medium | |
replaceable package MediumAir | Air medium | |
FluidPort_a | port_aSou | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_bSou | Fluid connector b (positive design flow direction is from port_a to port_b) |
Bus | bus | Control bus |
Bus | busWea | Weather bus |
Modelica definition
Buildings.Templates.Components.Interfaces.PartialHeatPumpEquationFit
Interface for heat pump using equation fit model
Information
This is a model for an air-to-water heat pump where the capacity
and drawn power are computed based on the equation fit method.
The model can be configured with the parameter is_rev
to represent either a non-reversible heat pump (heating only) or a
reversible heat pump.
This model uses
Buildings.Fluid.HeatPumps.EquationFitReversible,
which the user may refer to for the modeling assumptions.
Control points
The following input and output points are available.
-
Heat pump on/off command signal
y1
: DO signal, with a dimensionality of zero - For reversible heat pumps only (
is_rev=true
), Heat pump operating mode command signaly1Hea
: DO signal, with a dimensionality of zero
(y1Hea=true
for heating mode,y1Hea=false
for cooling mode) -
Heat pump supply temperature setpoint
TSet
: AO signal, with a dimensionality of zero
(for reversible heat pumps, the setpoint value must be switched externally between HW and CHW supply temperature) -
Heat pump status
y1_actual
: DI signal, with a dimensionality of zero
Extends from Buildings.Templates.Components.Interfaces.PartialHeatPump.
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package MediumHeaWat | Water | HW medium | |
replaceable package MediumSou | Water | Source-side medium | |
replaceable package MediumAir | Air | Air medium | |
HeatPump | dat | Design and operating parameters | |
Configuration | |||
HeatPump | typ | Equipment type | |
Boolean | is_rev | Set to true for reversible heat pumps, false for heating only | |
HeatPumpModel | typMod | Buildings.Templates.Componen... | Type of heat pump model |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Boolean | allowFlowReversalSou | true | Source side flow reversal: false to simplify equations, assuming, but not enforcing, no flow reversal |
Boolean | have_preDroChiHeaWat | true | Set to true for CHW/HW pressure drop computed by this model, false for external computation |
Boolean | have_preDroSou | true | Set to true for source fluid pressure drop computed by this model, false for external computation |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Dynamics | |||
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Connectors
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
FluidPort_a | port_aSou | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_bSou | Fluid connector b (positive design flow direction is from port_a to port_b) |
Bus | bus | Control bus |
Bus | busWea | Weather bus |
Modelica definition
Buildings.Templates.Components.Interfaces.PartialPump
Base class for all pump models
Information
This partial class provides a standard interface for pump models.
Parameters
Type | Name | Default | Description |
---|---|---|---|
Boolean | addPowerToMedium | false | Set to false to avoid any power (=heat and flow work) being added to medium (may give simpler equations) |
Configuration | |||
Pump | typ | Equipment type | |
Boolean | have_var | true | Set to true for variable speed pump, false for constant speed pump |
Boolean | have_varCom | true | Set to true for single common speed signal, false for dedicated signals |
Boolean | have_valChe | true | Set to true to include a check valve in pump line |
Dynamics | |||
Nominal condition | |||
Time | tau | 1 | Time constant of fluid volume for nominal flow, used if energy or mass balance is dynamic [s] |
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Graphics | |||
Integer | text_rotation | 0 | Text rotation angle in icon layer |
Boolean | text_flip | false | True to flip text horizontally in icon layer |
Connectors
Type | Name | Description |
---|---|---|
Bus | bus | Control bus |
Modelica definition
Buildings.Templates.Components.Interfaces.PartialPumpMultiple
Interface class for multiple pumps in parallel arrangement
Information
This partial class provides a standard interface for models of multiple pumps in parallel arrangement. Note that the inlet and outlet manifolds are not included in this model. This way, the same interface can be used to model both headered pumps and dedicated pumps.
Extends from Buildings.Templates.Components.Interfaces.PartialPump (Base class for all pump models).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Boolean | addPowerToMedium | false | Set to false to avoid any power (=heat and flow work) being added to medium (may give simpler equations) |
replaceable package Medium | Buildings.Media.Water | Medium in the component | |
PumpMultiple | dat | dat(final nPum=nPum, final t... | Design and operating parameters |
Configuration | |||
Pump | typ | Equipment type | |
Boolean | have_var | true | Set to true for variable speed pump, false for constant speed pump |
Boolean | have_varCom | true | Set to true for single common speed signal, false for dedicated signals |
Boolean | have_valChe | true | Set to true to include a check valve in pump line |
Integer | nPum | Number of pumps | |
Nominal condition | |||
PressureDifference | dpValChe_nominal[nPum] | fill(Buildings.Templates.Dat... | Check valve pressure drop at design conditions [Pa] |
Dynamics | |||
Nominal condition | |||
Time | tau | 1 | Time constant of fluid volume for nominal flow, used if energy or mass balance is dynamic [s] |
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Graphics | |||
Integer | text_rotation | 0 | Text rotation angle in icon layer |
Boolean | text_flip | false | True to flip text horizontally in icon layer |
Integer | icon_dy | 300 | Distance in y-direction between each unit in icon layer |
Connectors
Type | Name | Description |
---|---|---|
Bus | bus | Control bus |
replaceable package Medium | Medium in the component | |
FluidPorts_a | ports_a[nPum] | Vectorized fluid connector a (positive design flow direction is from port(s)_a to port(s)_b) |
FluidPorts_b | ports_b[nPum] | Vectorized fluid connector b (positive design flow direction is from port(s)_a to port(s)_b) |
Modelica definition
Buildings.Templates.Components.Interfaces.PartialPumpSingle
Interface class for single pump
Information
This partial class provides a standard interface for single pump models.
Extends from Buildings.Templates.Components.Interfaces.PartialPump (Base class for all pump models), Buildings.Fluid.Interfaces.PartialTwoPortInterface (Partial model with two ports and declaration of quantities that are used by many models).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Boolean | addPowerToMedium | false | Set to false to avoid any power (=heat and flow work) being added to medium (may give simpler equations) |
replaceable package Medium | PartialMedium | Medium in the component | |
PumpSingle | dat | dat(final typ=typ) | Design and operating parameters |
Configuration | |||
Pump | typ | Equipment type | |
Boolean | have_var | true | Set to true for variable speed pump, false for constant speed pump |
Boolean | have_varCom | true | Set to true for single common speed signal, false for dedicated signals |
Boolean | have_valChe | true | Set to true to include a check valve in pump line |
Nominal condition | |||
PressureDifference | dpValChe_nominal | Buildings.Templates.Data.Def... | Check valve pressure drop at design conditions [Pa] |
Dynamics | |||
Nominal condition | |||
Time | tau | 1 | Time constant of fluid volume for nominal flow, used if energy or mass balance is dynamic [s] |
Conservation equations | |||
Dynamics | energyDynamics | Modelica.Fluid.Types.Dynamic... | Type of energy balance: dynamic (3 initialization options) or steady state |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Graphics | |||
Integer | text_rotation | 0 | Text rotation angle in icon layer |
Boolean | text_flip | false | True to flip text horizontally in icon layer |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Connectors
Type | Name | Description |
---|---|---|
Bus | bus | Control bus |
replaceable package Medium | Medium in the component | |
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
Modelica definition
Buildings.Templates.Components.Interfaces.PartialSensor
Interface class for sensor
Information
This partial class provides a standard interface for sensor models.
Extends from Buildings.Fluid.Interfaces.PartialTwoPortInterface (Partial model with two ports and declaration of quantities that are used by many models).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package Medium | PartialMedium | Medium in the component | |
Nominal condition | |||
MassFlowRate | m_flow_nominal | Nominal mass flow rate [kg/s] | |
Configuration | |||
Boolean | have_sen | true | Set to true for sensor, false for direct pass through |
Boolean | isDifPreSen | false | Set to true for differential pressure sensor, false for any other sensor |
Assumptions | |||
Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Advanced | |||
MassFlowRate | m_flow_small | 1E-4*abs(m_flow_nominal) | Small mass flow rate for regularization of zero flow [kg/s] |
Diagnostics | |||
Boolean | show_T | false | = true, if actual temperature at port is computed |
Graphics | |||
Integer | text_rotation | 0 | Text rotation angle in icon layer |
Boolean | text_flip | false | True to flip text horizontally in icon layer |
IconPipe | icon_pipe | Buildings.Templates.Componen... | Pipe symbol |
Connectors
Type | Name | Description |
---|---|---|
FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_b | Fluid connector b (positive design flow direction is from port_a to port_b) |
output RealOutput | y | Connector for measured value |