Its function is to define the common elements needed for different type of pumps, providing just few equations between them.
Parameters:
- forceSpeed=false. If made true, the pump speed will be made equal to the manual defined parameter, or to the speed received via a connector, depending on the selection made.
- useExternalSpeed=false. If made true, the speed received at the connector is used. Otherwise the manually filled parameter will be used. (the forceSpeed parameter must be true for calculation to apply).
- fixedSpeed. The manually fixed speed request.
- numParallelUnits=1. The number of identical pumps working in parallel.
- directFlow=true. If true, the flow will be from port A to port B. And the reverse if false.
Variables:
- N. for the pump speed. In order to assign it, a conditional RealInput connector 'Speed' connected to a protected RealInput connector 'SpeedIn' are used. I 'useExternalSpeed' is false the 'Speed' connector and its connection disappears, and N is made equal to 'fixedSpeed'.
- Qunit and Qtotal. For the volumetric flow of each individual pump, and of all parallel pumps. They are related by Qtotal = Qunit * numParallelUnits. And Qtotal is related to the mass flow by PortA.G = Qtotal * Rho.
- A ThermodynamicState 'State' is defined in order to gate the physical properties of the fluid. The state is defined at the enthalpy and pressure of PortA, as we do not expect too much change for the physical properties between the ports.
- The variables Rho and T, get the density and the temperature of the State.
- The variables specific energy: 'SE', pump efficiency: 'Efficiency', total absorbed power: 'Wabs'. Two equations are provided here, one comes from the definition of efficiency, and the other relates 'Wabs' with flow, differential pressure and efficiency.
- A pump impulsion height variable 'Dh' that express the differential pressure between ports a liquid height. An equation relating Dh with the differential pressure and density is given.
An equation is missing for finding Efficiency, and it is missing also an equation relating N, Qunit and Dh.
Generated at 2024-12-21T19:25:56Z
by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos