VirtualFCS.Fluid.SimplePump

A simple pump for liquids or gases with small pressure difference

Model Description and References

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.

Governing Equations

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;
QuantityDescription
headThe pump head in length of fluid column
powerThe power consumed by the pump

Parameters

NameTypeUnitDefaultDescription
useHeatPortBoolean1false= true, if heatPort is enabled (inherited)
TModelica.Units.SI.TemperatureK293.15Fixed device temperature if useHeatPort = false (inherited)
etaReal11.0Pumping efficiency

Interfaces and Connections

NameKindTypeUnitDescription
heatPortConnectionModelica.Thermal.HeatTransfer.Interfaces.HeatPort_aK; WConditional heat port
pin_pConnectionModelica.Electrical.Analog.Interfaces.PositivePinV; APositive electrical terminal
pin_nConnectionModelica.Electrical.Analog.Interfaces.NegativePinV; ANegative electrical terminal
uInput signalModelica.Blocks.Interfaces.RealInput-Control input, can be replaced by whatever the manipulated variable is
port_aConnectionModelica.Fluid.Interfaces.FluidPort_aPa; kg/s; J/kg-
port_bConnectionModelica.Fluid.Interfaces.FluidPort_bPa; kg/s; J/kg-