6.1 Draining of a Tank
225
end PIController;
The class (component) that we created is inherited; it inherits variables and equations from the parent class BaseController. Let us check the model for balance and
create, as usual, an icon, Fig. 6.27.
We have created a complete hierarchical structure of our component model. Now,
it should look like this (Fig. 6.28).
You can start compiling a system model by dragging and dropping components
onto a diagram (Fig. 6.29).
You can go to the text view. We will see the program code of the TankPI model
in Modelica, as shown in Fig. 6.30.
Create an icon using the ready-made drawing of the tank and adding the PI
signature to the field in text mode, Fig. 6.31.
Fig. 6.27 PIController icon
Fig. 6.28 Structure of the
component model of the tank
with a PI controller
Précédent

- 236/274

Suivant