Buildings.Obsolete.Templates.Plants.Controls.Utilities.Validation
Collection of validation models
Information
This package contains validation models.
Package Content
Name | Description |
---|---|
![]() |
Validation model for the Sort block |
Buildings.Obsolete.Templates.Plants.Controls.Utilities.Validation.SortWithIndices
Validation model for the Sort block
Information
Validation model for the block Buildings.Obsolete.Templates.Plants.Controls.Utilities.SortWithIndices.
The input u1
varies from -2 to +2, input u2
varies from -1 to +2,
input u3
varies from +2 to -2, input u4
varies from +3 to +2,
input u5
varies from 0 to +4,
Modelica definition
model SortWithIndices
"Validation model for the Sort block"
Buildings.Obsolete.Templates.Plants.Controls.Utilities.SortWithIndices sorAsc(
nin=5)
"Block that sorts signals in ascending order";
Buildings.Controls.OBC.CDL.Reals.Sources.Ramp ramp1(
duration=1,
offset=-2,
height=4)
"Block that generates ramp signal";
Buildings.Controls.OBC.CDL.Reals.Sources.Ramp ramp2(
duration=1,
offset=-1,
height=3)
"Block that generates ramp signal";
Buildings.Controls.OBC.CDL.Reals.Sources.Ramp ramp3(
duration=1,
offset=2,
height=-4)
"Block that generates ramp signal";
Buildings.Controls.OBC.CDL.Reals.Sources.Ramp ramp4(
duration=1,
offset=3,
height=-1)
"Block that generates ramp signal";
Buildings.Controls.OBC.CDL.Reals.Sources.Ramp ramp5(
duration=1,
offset=0,
height=4)
"Block that generates ramp signal";
Buildings.Obsolete.Templates.Plants.Controls.Utilities.SortWithIndices sorDes(
nin=5,
ascending=false)
"Block that sorts signals in descending order";
equation
connect(ramp1.y,sorAsc.u[1]);
connect(ramp2.y,sorAsc.u[2]);
connect(ramp3.y,sorAsc.u[3]);
connect(ramp4.y,sorAsc.u[4]);
connect(ramp5.y,sorAsc.u[5]);
connect(ramp1.y,sorDes.u[1]);
connect(ramp2.y,sorDes.u[2]);
connect(ramp3.y,sorDes.u[3]);
connect(ramp4.y,sorDes.u[4]);
connect(ramp5.y,sorDes.u[5]);
end SortWithIndices;