Simulation superModelsΒΆ
The simulation superModels are motherclasses of the simulation models. Their task is the hyperparametrization of the simulation models.
Within the superModels time-dependent faults can be induced. A superModel is always structured similarly:
1 model *_superModel
2 Real valve_V001_simulator(start = 0);
3 Real valve_V002_simulator(start = 0);
4 Real valve_clogging_simulator(start = 1);
5 Real valve_leaking_simulator(start = 0);
6 Real pump_P001_simulator(start = 100);
7
8 Real x_volume; //in m^3
9 Real y_time; //in s
10 Real minVolPercentage;
11 Real maxVolPercentage;
12
13 equation
14 // CPPS parameters
15 valve_V001_simulator = 0;
16 valve_V002_simulator = 0;
17 pump_P001_simulator = 150;
18
19 // bottling process control
20 x_volume = 0.01;
21 y_time = 10;
22 minVolPercentage = 0.2;
23 maxVolPercentage = 0.8;
24
25 // error induction:
26 valve_leaking_simulator = if time >= 2000 then 0.0001 else 0; // leaking
27 valve_clogging_simulator = if time >= 2000 then 0.01 else 1; // clogging
28 end *_superModel;
A declaration of all hyperparameters are followed by an equation
block.
Within the equation block the initialization of the hyperparameters and time-dependent behavior can be introduced.