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 |
MoverContinuous
|
Example model of movers using a real input for setting the stage |
MoverParameter
|
Example model of movers using a parameter for setting the stage |
MoverStages
|
Example model of movers using an integer input for setting the stage |
Example model of movers using a real input for setting the stage
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
Modelica definition
model MoverContinuous
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) ;
Modelica.Blocks.Math.Gain gaiNrpm(k=2000) ;
Modelica.Blocks.Math.Gain gai_m_flow(k=m_flow_nominal)
;
Modelica.Blocks.Math.Gain gai_dp(k=dp_nominal) ;
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;
Example model of movers using a parameter for setting the stage
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
Modelica definition
model MoverParameter
extends Modelica.Icons.Example;
package Medium =
Buildings.Media.Water;
parameter Modelica.Units.SI.MassFlowRate m_flow_nominal=2
;
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)
;
Buildings.Fluid.Sources.Boundary_pT sou(
redeclare package Medium = Medium,
nPorts=4) ;
Buildings.Fluid.Sources.Boundary_pT sin(
redeclare package Medium = Medium,
nPorts=4) ;
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)
;
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)
;
Buildings.Fluid.FixedResistances.PressureDrop res(
redeclare package Medium = Medium,
m_flow_nominal=m_flow_nominal,
dp_nominal=dp_nominal)
;
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)
;
parameter Modelica.Units.SI.PressureDifference dp_nominal=10000
;
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;
Example model of movers using an integer input for setting the stage
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
Modelica definition
model MoverStages
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
;
Modelica.Blocks.Sources.IntegerTable integerTable(table=[0,1; 0.3,2; 0.6,3])
;
parameter Modelica.Units.SI.PressureDifference dp_nominal=10000
;
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;