236
6 Hierarchical Component Models
Fig. 6.44 Pictograms of regulators, a PumpCntr pump, b SourceCntrq fluid source, and c HeatCntr
heater
Regulators (Fig. 6.44).
Pump regulator PumpCntr must maintain a constant rate of fluid transfer from one
tank to another and vice versa Q mass2 = 10 kg/s. To do this, we introduce two equal
in magnitude parameter of the fluid flow
parameter SI.MassFlowRate flow1 = 10 "direct fluid flow"
parameter SI.MassFlowRate flow2 = 10 "reverse fluid flow"
In accordance with the condition of the problem, we will create four events: the
beginning and completion of pumping fluid from the first tank to the second and,
similarly, the beginning and completion of pumping fluid from the second tank to
the first:
parameter SI.Time event1 = 240, "start of direct fluid transfer"
event2 = 360, "completion of direct pumping"
event3 = 720, "start of fluid transfer"
event4 = 900; "completion of fluid transfer"
In the intervals between these events, various fixed values of the totalMassFSP
flow are set, which will be transmitted as an input signal to the pump (see the
equation block of equations in the program code)
signal.s = {totalMassFSP};
6 Hierarchical Component Models
Fig. 6.44 Pictograms of regulators, a PumpCntr pump, b SourceCntrq fluid source, and c HeatCntr
heater
Regulators (Fig. 6.44).
Pump regulator PumpCntr must maintain a constant rate of fluid transfer from one
tank to another and vice versa Q mass2 = 10 kg/s. To do this, we introduce two equal
in magnitude parameter of the fluid flow
parameter SI.MassFlowRate flow1 = 10 "direct fluid flow"
parameter SI.MassFlowRate flow2 = 10 "reverse fluid flow"
In accordance with the condition of the problem, we will create four events: the
beginning and completion of pumping fluid from the first tank to the second and,
similarly, the beginning and completion of pumping fluid from the second tank to
the first:
parameter SI.Time event1 = 240, "start of direct fluid transfer"
event2 = 360, "completion of direct pumping"
event3 = 720, "start of fluid transfer"
event4 = 900; "completion of fluid transfer"
In the intervals between these events, various fixed values of the totalMassFSP
flow are set, which will be transmitted as an input signal to the pump (see the
equation block of equations in the program code)
signal.s = {totalMassFSP};
