modelPartialFlowMachine
Extends from IBPSA.Fluid.Interfaces.LumpedVolumeDeclarations, IBPSA.Fluid.Interfaces.PartialTwoPortInterface.
Information
This is the base model for fans and pumps. It provides an interface between the equations that compute head and power consumption, and the implementation of the energy and pressure balance of the fluid.
Optionally, the fluid volume is computed using a dynamic balance or a steady-state balance.
The parameter addPowerToMedium determines whether
any power is added to the fluid. The default is addPowerToMedium=true,
and hence the outlet enthalpy is higher than the inlet enthalpy if the
flow device is operating.
The setting addPowerToMedium=false is physically incorrect
(since the flow work, the flow friction and the fan heat do not increase
the enthalpy of the medium), but this setting does in some cases lead to simpler equations
and more robust simulation, in particular if the mass flow is equal to zero.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| IBPSA.Fluid.Movers.Data.Generic | per | ||
| Boolean | computePowerUsingSimilarityLaws | = true, compute power exactly, using similarity laws. Otherwise approximate. | |
| Boolean | addPowerToMedium | true | Set to false to avoid any power (=heat and flow work) being added to medium (may give simpler equations) |
| Boolean | nominalValuesDefineDefaultPressureCurve | false | Set to true to avoid warning if m_flow_nominal and dp_nominal are used to construct the default pressure curve |
| Control | |||
| IBPSA.Fluid.Types.InputType | inputType | IBPSA.Fluid.Types.InputType.Continuous | Control input type |
| Real | constInput | 0 | Constant input set point |
| Real[:] | stageInputs | Vector of input set points corresponding to stages | |
| Dynamics › Nominal condition | |||
| Modelica.SIunits.Time | tau | 1 | Time constant of fluid volume for nominal flow, used if energy or mass balance is dynamic |
| Dynamics › Filtered speed | |||
| Boolean | use_inputFilter | true | = true, if speed is filtered with a 2nd order CriticalDamping filter |
| Modelica.SIunits.Time | riseTime | 30 | Rise time of the filter (time to reach 99.6 % of the speed) |
| Modelica.Blocks.Types.Init | init | Modelica.Blocks.Types.Init.InitialOutput | Type of initialization (no init/steady state/initial state/initial output) |
| Real | y_start | 0 | Initial value of speed |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.IntegerInput | stage | Stage input signal for the pressure head | |
| Modelica.Blocks.Interfaces.RealOutput | y_actual | Actual normalised pump speed that is used for computations | |
| Modelica.Blocks.Interfaces.RealOutput | P | Electrical power consumed | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort | Heat dissipation to environment | |
| Modelica.SIunits.VolumeFlowRate | VMachine_flow | eff.V_flow | Volume flow rate |
| Modelica.SIunits.PressureDifference | dpMachine | -preSou.dp | Pressure difference |
| Real | eta | eff.eta | Global efficiency |
| Real | etaHyd | eff.etaHyd | Hydraulic efficiency |
| Real | etaMot | eff.etaMot | Motor efficiency |
Contents
| Name | Description |
|---|---|
| Extractorprotected | Extract scalar signal out of signal vector dependent on IntegerRealInput index |
Revisions
-
March 24, 2017, by Michael Wetter:
RenamedfilteredSpeedtouse_inputFilter.
This is for #665. -
December 2, 2016, by Michael Wetter:
Removedminattribute as otherwise numerical noise can cause the assertion on the limit to fail.
This is for #606. -
November 3, 2016, by Michael Wetter:
Set start value forVMachine_flowto avoid a warning in IBPSA.Fluid.Movers.Examples.MoverContinuous. -
July 29, 2016, by Michael Wetter:
MadeExtractorprotected so that it can be removed later with a backwards compatible change. -
July 19, 2016, by Filip Jorissen:
Created custom implementation for extractor. This is for #498. -
June 16, 2016, by Filip Jorissen:
Switched position of mixing volume and mass flow rate sensor. This is to have a consistent operating point tuple ofdpandm_flowwhen having compressible flow. This is for #458. -
February 19, 2016, by Michael Wetter and Filip Jorissen:
Refactored model to make implementation clearer. This model now includes code for both speed and flow prescribed models, eliminating the need for an additional level of partial models. This is for #417. -
Removed the parameter
dynamicBalance. This is for #411. -
November 19, 2015, by Michael Wetter:
Removed assignment of parametershowDesignFlowDirectioninextendsstatement. This is for #349. Removed assignment ofminandmaxattributes of the port mass flow rate as this is already done in the base class. Removedimportstatement. -
April 2, 2015, by Filip Jorissen:
Added code for supporting stage input and constant input. Added code for displaying constant set point in symbol. -
January 24, 2015, by Michael Wetter:
Propagatedm_flow_smallof instancevoland made all its parameters final. -
May 25, 2011, by Michael Wetter:
Revised implementation of energy balance to avoid having to use conditionally removed models. -
July 29, 2010, by Michael Wetter:
Reduced fan time constant from 10 to 1 second. -
July 27, 2010, by Michael Wetter:
Redesigned model to fix bug in medium balance. - March 24 2010, by Michael Wetter:
First implementation.