diff --git a/scripts/demos/sud/demo_sud.py b/scripts/demos/sud/demo_sud.py index 28f9c25..12d2098 100644 --- a/scripts/demos/sud/demo_sud.py +++ b/scripts/demos/sud/demo_sud.py @@ -102,6 +102,8 @@ if __name__ == '__main__': _stirrer_speed = [] _heater_power_set = [] _heater_power_eff = [] + _plant_M = [] + _plant_C = [] wait_user_elapsed = 0.0 t = 0.0 @@ -142,6 +144,8 @@ if __name__ == '__main__': _stirrer_speed.append(stirrer.speed * stirrer.isOn) _heater_power_set.append(heater.power_set) _heater_power_eff.append(heater.power_eff) + _plant_M.append(plant.M) + _plant_C.append(plant.C) t += dt steps += 1 @@ -181,6 +185,16 @@ if __name__ == '__main__': legend(["stirrer speed (effective)"]) grid(True) + figure(3) + subplot(2, 1, 1) + plot(_t_arr, _plant_M, '-b', linewidth=1) + legend(["plant M (kg)"]) + grid(True) + subplot(2, 1, 2) + plot(_t_arr, _plant_C, '-b', linewidth=1) + legend(["plant C (J/(kg*K))"]) + grid(True) + show() print("End of program") diff --git a/sude/sud_0010.json b/sude/sud_0010.json index 40408f2..d69c2b4 100644 --- a/sude/sud_0010.json +++ b/sude/sud_0010.json @@ -95,6 +95,7 @@ } }, { + "water_mass" : 20, "descr": "Heizen Abmaischen", "ramp": { "rate": 1.0, @@ -102,7 +103,7 @@ } }, { - "water_mass" : 21, + "water_mass" : 20, "descr": "Halten Abmaischen", "user_message": "Quittieren zum Abmaischen", "user_wait_for_continue": true,