A simple pump for liquids or gases with small pressure difference
A bare-bones model for a pump. The input u sets the mass flow directly. The pump must be connected to a DC power supply providing voltage.
The model has one parameter, efficiency η, which defaults to 100%.
The pump has no holdup and is meant to be directional, with the higher pressure to be found at port_b.
Note: this model can be used only with either incompressible media (liquids) or with gases with minimal pressure drop (e.g. fans and blowers). To faithfully model significant pressure drops in gas phase, use a Compressor.
power = (pin_p.v - pin_n.v)*(pin_p.i); port_a.m_flow + port_b.m_flow = 0 "No mass holdup"; port_a.h_outflow = inStream(port_b.h_outflow) + head*g_n; port_b.h_outflow = inStream(port_a.h_outflow) + head*g_n; LossPower = 0; pin_p.i + pin_n.i = 0; head = (port_b.p - port_a.p)/ Medium.density(Medium.setState_phX(port_b.p, port_b.h_outflow, port_b.Xi_outflow)) / g_n; eta*power = u * head * g_n;
| Quantity | Description |
|---|---|
head | The pump head in length of fluid column |
power | The power consumed by the pump |
| Name | Type | Unit | Default | Description |
|---|---|---|---|---|
useHeatPort | Boolean | 1 | false | = true, if heatPort is enabled (inherited) |
T | Modelica.Units.SI.Temperature | K | 293.15 | Fixed device temperature if useHeatPort = false (inherited) |
eta | Real | 1 | 1.0 | Pumping efficiency |
| Name | Kind | Type | Unit | Description |
|---|---|---|---|---|
heatPort | Connection | Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | K; W | Conditional heat port |
pin_p | Connection | Modelica.Electrical.Analog.Interfaces.PositivePin | V; A | Positive electrical terminal |
pin_n | Connection | Modelica.Electrical.Analog.Interfaces.NegativePin | V; A | Negative electrical terminal |
u | Input signal | Modelica.Blocks.Interfaces.RealInput | - | Control input, can be replaced by whatever the manipulated variable is |
port_a | Connection | Modelica.Fluid.Interfaces.FluidPort_a | Pa; kg/s; J/kg | - |
port_b | Connection | Modelica.Fluid.Interfaces.FluidPort_b | Pa; kg/s; J/kg | - |