bottling_superModelΒΆ

This class contains all variables and time-dependent behavior of the bottling module. Not all variables are included in the bottling_partial class.

Time dependent fault induction can be changed under // error induction.

Threshold for the state-graph can be changed under // bottling process control

 1 model bottling_superModel
 2     Real valve_V402_simulator(start = 0);
 3     Real valve_V405_simulator(start = 0);
 4     Real valve_clogging_simulator(start = 1);
 5     Real valve_leaking_simulator(start = 0);
 6     Real pump_P401_simulator(start = 100);
 7     Real bottle_volume;         //in m^3
 8     Real reload_time;           //in s
 9     Real minVolPercentage;
10     Real maxVolPercentage;
11     Real volumeFlow_factor;
12 equation
13     // CPPS parameters
14     valve_V402_simulator = 0;
15     valve_V405_simulator = 0;
16     pump_P401_simulator = 150;
17
18     // bottling process control
19     bottle_volume = 0.01;
20     reload_time = 10;
21     minVolPercentage = 0.2;
22     maxVolPercentage = 0.8;
23     volumeFlow_factor = 0.3;
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 bottling_superModel;