filter_superModelΒΆ
This class contains all variables and time-dependent behavior of the filter
module.
Not all variables are included in the filter_partial
class.
Time dependent fault induction can be changed under // error induction
.
1 model filter_superModel
2 Real valve_V103_simulator(start = 1);
3 Real valve_V102_simulator(start = 0);
4 Real valve_clogging_simulator(start = 1);
5 Real valve_leaking_simulator(start = 0);
6 Real valve_V105_simulator(start = 0);
7 Real valve_V107_simulator(start = 0);
8 Real valve_V111_simulator(start = 0);
9 Real pump_P102_simulator(start = 0);
10 Real pump_P101_simulator(start = 500);
11 equation
12 // CPPS parameters
13 valve_V102_simulator = 0;
14 valve_V103_simulator = 1;
15 valve_V105_simulator = 0;
16 valve_V107_simulator = 0;
17 valve_V111_simulator = 0;
18 pump_P102_simulator = 0;
19 pump_P101_simulator = 150;
20 // error induction
21 valve_leaking_simulator = if time >= 4000 then 0.0001 else 0; // leaking
22 valve_clogging_simulator = if time >= 4000 then 0.01 else 1; // clogging
23 end filter_superModel;