mixer_superModelΒΆ
This class contains all variables and time-dependent behavior of the mixer
module.
Not all variables are included in the mixer_partial
class.
Time dependent fault induction can be changed under // error induction
.
Threshold for the state-graph can be changed under // mixer process control
1 model mixer_superModel
2 Real valve_V201_simulator(start = 1);
3 Real valve_V202_simulator(start = 1);
4 Real valve_V203_simulator(start = 1);
5 Real valve_V204_simulator(start = 0);
6 Real valve_V205_simulator(start = 0);
7 Real valve_V206_simulator(start = 0);
8 Real valve_V207_simulator(start = 0);
9 Real valve_V209_simulator(start = 0);
10 Real valve_V210_simulator(start = 0);
11 Real valve_V211_simulator(start = 0);
12 Real valve_clogging_simulator(start = 1);
13 Real valve_leaking_simulator(start = 0);
14 Real pump_P201_simulator(start = 150);
15 Real pump_P202_simulator(start = 0);
16 Real minVolPercentage;
17 Real minVolPercentageMixer;
18 Real maxVolPercentage;
19 equation
20 // mixer process control
21 minVolPercentage = 0.01;
22 minVolPercentageMixer = 0.2;
23 maxVolPercentage = 0.85;
24 valve_V201_simulator = 1;
25 valve_V202_simulator = 1;
26 valve_V203_simulator = 1;
27 pump_P201_simulator = 150;
28 // CPPS parameters
29 valve_V204_simulator = 0;
30 valve_V205_simulator = 0;
31 valve_V206_simulator = 0;
32 valve_V207_simulator = 0;
33 valve_V209_simulator = 0;
34 valve_V210_simulator = 0;
35 valve_V211_simulator = 0;
36 pump_P202_simulator = 0;
37 // error induction
38 valve_leaking_simulator = if time >= 4000 then 0.0001 else 0; // leaking
39 valve_clogging_simulator = if time >= 4000 then 0.8 else 1; // clogging
40 end mixer_superModel;