Buildings.Obsolete.Fluid.Movers.Examples

Obsolete example models

Information

This package contains obsolete example models.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Obsolete.Fluid.Movers.Examples.MoverContinuous MoverContinuous Example model of movers using a real input for setting the stage
Buildings.Obsolete.Fluid.Movers.Examples.MoverParameter MoverParameter Example model of movers using a parameter for setting the stage
Buildings.Obsolete.Fluid.Movers.Examples.MoverStages MoverStages Example model of movers using an integer input for setting the stage

Buildings.Obsolete.Fluid.Movers.Examples.MoverContinuous Buildings.Obsolete.Fluid.Movers.Examples.MoverContinuous

Example model of movers using a real input for setting the stage

Buildings.Obsolete.Fluid.Movers.Examples.MoverContinuous

Information

This example demonstrates the use of a RealInput connector for a mover model.

Extends from Buildings.Obsolete.Fluid.Movers.Examples.MoverParameter (Example model of movers using a parameter for setting the stage).

Parameters

TypeNameDefaultDescription
MassFlowRatem_flow_nominal2Nominal mass flow rate [kg/s]
PressureDifferencedp_nominal10000Nominal pressure raise [Pa]

Modelica definition

model MoverContinuous "Example model of movers using a real input for setting the stage" extends Buildings.Obsolete.Fluid.Movers.Examples.MoverParameter( pump_Nrpm(inputType=Buildings.Fluid.Types.InputType.Continuous), pump_m_flow(inputType=Buildings.Fluid.Types.InputType.Continuous), pump_y(inputType=Buildings.Fluid.Types.InputType.Continuous), pump_dp(inputType=Buildings.Fluid.Types.InputType.Continuous)); Modelica.Blocks.Sources.Ramp ramp(duration=1) "Ramp input for all movers"; Modelica.Blocks.Math.Gain gaiNrpm(k=2000) "Nominal rpm"; Modelica.Blocks.Math.Gain gai_m_flow(k=m_flow_nominal) "Nominal mass flow rate"; Modelica.Blocks.Math.Gain gai_dp(k=dp_nominal) "Nominal pressure drop"; equation connect(gaiNrpm.y, pump_Nrpm.Nrpm); connect(gai_dp.y, pump_dp.dp_in); connect(gai_m_flow.y, pump_m_flow.m_flow_in); connect(gaiNrpm.u, ramp.y); connect(gai_m_flow.u, ramp.y); connect(gai_dp.u, ramp.y); connect(pump_y.y, ramp.y); end MoverContinuous;

Buildings.Obsolete.Fluid.Movers.Examples.MoverParameter Buildings.Obsolete.Fluid.Movers.Examples.MoverParameter

Example model of movers using a parameter for setting the stage

Buildings.Obsolete.Fluid.Movers.Examples.MoverParameter

Information

This example demonstrates the use of a Parameter set point for a mover model.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

TypeNameDefaultDescription
MassFlowRatem_flow_nominal2Nominal mass flow rate [kg/s]
PressureDifferencedp_nominal10000Nominal pressure raise [Pa]

Modelica definition

model MoverParameter "Example model of movers using a parameter for setting the stage" extends Modelica.Icons.Example; package Medium = Buildings.Media.Water; parameter Modelica.Units.SI.MassFlowRate m_flow_nominal=2 "Nominal mass flow rate"; Buildings.Fluid.Movers.FlowControlled_m_flow pump_m_flow( redeclare package Medium = Medium, m_flow_nominal=m_flow_nominal, use_inputFilter=false, massFlowRates={0,0.5,1}*m_flow_nominal, inputType=Buildings.Fluid.Types.InputType.Constant, energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Pump with m_flow input"; Buildings.Fluid.Sources.Boundary_pT sou( redeclare package Medium = Medium, nPorts=4) "Fluid source"; Buildings.Fluid.Sources.Boundary_pT sin(redeclare package Medium = Medium, nPorts=4) "Fluid sink"; Buildings.Fluid.Movers.SpeedControlled_y pump_y( redeclare package Medium = Medium, redeclare Buildings.Obsolete.Fluid.Movers.Data.Pumps.Wilo.Stratos25slash1to4 per( speeds_rpm=1800*{0,0.5,1}, constantSpeed_rpm=1800), use_inputFilter=false, inputType=Buildings.Fluid.Types.InputType.Constant, energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Pump with normalised speed input"; Buildings.Fluid.Movers.FlowControlled_dp pump_dp( redeclare package Medium = Medium, m_flow_nominal=m_flow_nominal, redeclare Buildings.Obsolete.Fluid.Movers.Data.Pumps.Wilo.Stratos25slash1to4 per, use_inputFilter=false, heads={0,0.5,1}*dp_nominal, inputType=Buildings.Fluid.Types.InputType.Constant, dp_nominal=dp_nominal, energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Pump with pressure head input"; Buildings.Fluid.FixedResistances.PressureDrop res( redeclare package Medium = Medium, m_flow_nominal=m_flow_nominal, dp_nominal=dp_nominal) "Pressure drop component for avoiding singular system"; Buildings.Obsolete.Fluid.Movers.SpeedControlled_Nrpm pump_Nrpm( redeclare package Medium = Medium, use_inputFilter=false, redeclare Buildings.Obsolete.Fluid.Movers.Data.Pumps.Wilo.Stratos25slash1to4 per( speeds_rpm={0,1000,2000}, constantSpeed_rpm=2000), inputType=Buildings.Fluid.Types.InputType.Constant, energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState) "Pump with speed input"; parameter Modelica.Units.SI.PressureDifference dp_nominal=10000 "Nominal pressure raise"; equation connect(sou.ports[1], pump_m_flow.port_a); connect(pump_m_flow.port_b, sin.ports[1]); connect(res.port_a, pump_dp.port_b); connect(pump_y.port_b, sin.ports[2]); connect(res.port_b, sin.ports[3]); connect(pump_dp.port_a, sou.ports[2]); connect(pump_y.port_a, sou.ports[3]); connect(sou.ports[4], pump_Nrpm.port_a); connect(pump_Nrpm.port_b, sin.ports[4]); end MoverParameter;

Buildings.Obsolete.Fluid.Movers.Examples.MoverStages Buildings.Obsolete.Fluid.Movers.Examples.MoverStages

Example model of movers using an integer input for setting the stage

Buildings.Obsolete.Fluid.Movers.Examples.MoverStages

Information

This example demonstrates the use of the Integer stage connector for a mover model. Note that integer input 1 refers to the first stage, whereas input 0 switches the mover off.

Extends from Buildings.Obsolete.Fluid.Movers.Examples.MoverParameter (Example model of movers using a parameter for setting the stage).

Parameters

TypeNameDefaultDescription
MassFlowRatem_flow_nominal2Nominal mass flow rate [kg/s]
PressureDifferencedp_nominal10000Nominal pressure raise [Pa]

Modelica definition

model MoverStages "Example model of movers using an integer input for setting the stage" extends Buildings.Obsolete.Fluid.Movers.Examples.MoverParameter( pump_Nrpm(inputType=Buildings.Fluid.Types.InputType.Stages), pump_m_flow(inputType=Buildings.Fluid.Types.InputType.Stages), pump_y(inputType=Buildings.Fluid.Types.InputType.Stages), pump_dp(inputType=Buildings.Fluid.Types.InputType.Stages)); package Medium = Buildings.Media.Water; parameter Modelica.Units.SI.MassFlowRate m_flow_nominal=2 "Nominal mass flow rate"; Modelica.Blocks.Sources.IntegerTable integerTable(table=[0,1; 0.3,2; 0.6,3]) "Integer step input, 1 is off, 2 is on"; parameter Modelica.Units.SI.PressureDifference dp_nominal=10000 "Nominal pressure raise"; equation connect(integerTable.y, pump_Nrpm.stage); connect(integerTable.y, pump_m_flow.stage); connect(integerTable.y, pump_y.stage); connect(integerTable.y, pump_dp.stage); end MoverStages;