modelPump
Extends from AixLib.Obsolete.BaseClasses.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions), AixLib.Fluid.Interfaces.PartialTwoPortTransport (Partial element transporting fluid between two ports without storage of mass or energy).
Information
Overview
Simple table based pump model.
Concept
Simple table based pump model with the following features:
- Table for minimal and maximal characteristic
- Choice between two control strategies: 1. dp-const; 2. dp-var
- Input for switching to night mode. During night mode, the pump follows the minimal characteristic
Example Results
AixLib.HVAC.Pumps.Examples.PumpHydraulicResistance_closedLoop
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| AixLib.DataBase.Pumps.MinMaxCharacteristicsBaseDataDefinition | MinMaxCharacteristics | AixLib.DataBase.Pumps.Pump1() | Head = f(V_flow) for minimal and maximal rotational speed |
| Modelica.Units.SI.MassFlowRate[:] | m_flowsPump | MinMaxCharacteristics.minMaxHead[:, 1]./3600.*rho_default | Convert VFlow in m3/h to kg/s |
| Modelica.Units.SI.PressureDifference[:] | dpsPump | MinMaxCharacteristics.minMaxHead[:, 3].*rho_default.*Modelica.Constants.g_n | Convert m of head to Pa |
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialTwoPort) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
| Advanced | |||
| Modelica.Units.SI.PressureDifference | dp_start (from PartialTwoPortTransport) | 0 | Guess value of dp = port_a.p - port_b.p |
| Medium.MassFlowRate | m_flow_start (from PartialTwoPortTransport) | 0 | Guess value of m_flow = port_a.m_flow |
| Medium.MassFlowRate | m_flow_small (from PartialTwoPortTransport) | Small mass flow rate for regularization of zero flow | |
| Advanced › Diagnostics | |||
| Boolean | show_T (from PartialTwoPortTransport) | true | = true, if temperatures at port_a and port_b are computed |
| Boolean | show_V_flow (from PartialTwoPortTransport) | true | = true, if volume flow rate at inflowing port is computed |
| Control strategy | |||
| Integer | ControlStrategy | 1 | Control Strategy |
| Modelica.Units.SI.Height | Head_max | max(MinMaxCharacteristics.minMaxHead[:, 3]) | Set head for the control strategy |
| Real | V_flow_max | max(MinMaxCharacteristics.minMaxHead[:, 1]) | Vmax in m3/h for the control strategy |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_a (from PartialTwoPort) | Fluid connector a (positive design flow direction is from port_a to port_b) | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_b (from PartialTwoPort) | Fluid connector b (positive design flow direction is from port_a to port_b) | |
| Modelica.Blocks.Interfaces.BooleanInput | IsNight |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.MassFlowRate | m_flow (from PartialTwoPortTransport) | Mass flow rate in design flow direction | |
| Modelica.Units.SI.PressureDifference | dp (from PartialTwoPortTransport) | Pressure difference between port_a and port_b (= port_a.p - port_b.p) | |
| Modelica.Units.SI.VolumeFlowRate | V_flow (from PartialTwoPortTransport) | m_flow/Modelica.Fluid.Utilities.regStep(m_flow, Medium.density(Medium.setState_phX(p = port_a.p, h = inStream(port_a.h_outflow), X = inStream(port_a.Xi_outflow))), Medium.density(Medium.setState_phX(p = port_b.p, h = inStream(port_b.h_outflow), X = inStream(port_b.Xi_outflow))), m_flow_small) | Volume flow rate at inflowing port (positive when flow from port_a to port_b) |
| Medium.Temperature | port_a_T (from PartialTwoPortTransport) | Modelica.Fluid.Utilities.regStep(port_a.m_flow, Medium.temperature(Medium.setState_phX(p = port_a.p, h = inStream(port_a.h_outflow), X = inStream(port_a.Xi_outflow))), Medium.temperature(Medium.setState_phX(port_a.p, port_a.h_outflow, port_a.Xi_outflow)), m_flow_small) | Temperature close to port_a, if show_T = true |
| Medium.Temperature | port_b_T (from PartialTwoPortTransport) | Modelica.Fluid.Utilities.regStep(port_b.m_flow, Medium.temperature(Medium.setState_phX(p = port_b.p, h = inStream(port_b.h_outflow), X = inStream(port_b.Xi_outflow))), Medium.temperature(Medium.setState_phX(port_b.p, port_b.h_outflow, port_b.Xi_outflow)), m_flow_small) | Temperature close to port_b, if show_T = true |
| Modelica.Units.SI.Height | Head | Pumping head | |
| Modelica.Blocks.Tables.CombiTable1Ds | table_minMaxCharacteristics | Table with Head = f(V_flow) min amd max characteristics for the pump |
Revisions
-
November 2014 by Marcus Fuchs:
Changed model to use Annex 60 base class -
01.11.2013 by Ana Constantin:
implemented