Tank with multiple state selections
| Name | Description |
|---|---|
| Physical model | |
| h: state variable | |
| V: state variable | |
| F: state variable | |
| Interactive model | |
| Virtual-lab model | |
| When clauses to change interactive parameters and input variables | |
| Virtual-lab view |
Physical model
| a | Output hole section. |
| A | Tank section. |
| k | Input valve parameter. |
| vin | Input voltage. |
| Name | Description |
|---|---|
| isState[3] | This vector allows controlling the state selection |
| hIsState | true: h is the state variable |
| VIsState | true: V is the state variable |
| FIsState | true: F is the state variable |
| aInitial | Initial value of the output hole section |
| AInitial | Initial value of the tank section |
| KInitial | Initial value of the pump parameter |
| vInitial | Initial value of the pump voltage |
| hInitial | Initial value of the liquid level |
| VInitial | Initial value of the liquid volume |
| FInitial | Initial value of the liquid flow |
| g | Constant of gravity [cm/s2] |
h: state variable
Extends from setParamVar (When clauses to change interactive parameters and input variables).
| Name | Description |
|---|---|
| isState[3] | This vector allows controlling the state selection |
| hIsState | true: h is the state variable |
| VIsState | true: V is the state variable |
| FIsState | true: F is the state variable |
| aInitial | Initial value of the output hole section |
| AInitial | Initial value of the tank section |
| KInitial | Initial value of the pump parameter |
| vInitial | Initial value of the pump voltage |
| hInitial | Initial value of the liquid level |
| VInitial | Initial value of the liquid volume |
| FInitial | Initial value of the liquid flow |
| g | Constant of gravity [cm/s2] |
V: state variable
Extends from setParamVar (When clauses to change interactive parameters and input variables).
| Name | Description |
|---|---|
| isState[3] | This vector allows controlling the state selection |
| hIsState | true: h is the state variable |
| VIsState | true: V is the state variable |
| FIsState | true: F is the state variable |
| aInitial | Initial value of the output hole section |
| AInitial | Initial value of the tank section |
| KInitial | Initial value of the pump parameter |
| vInitial | Initial value of the pump voltage |
| hInitial | Initial value of the liquid level |
| VInitial | Initial value of the liquid volume |
| FInitial | Initial value of the liquid flow |
| g | Constant of gravity [cm/s2] |
F: state variable
Extends from setParamVar (When clauses to change interactive parameters and input variables).
| Name | Description |
|---|---|
| isState[3] | This vector allows controlling the state selection |
| hIsState | true: h is the state variable |
| VIsState | true: V is the state variable |
| FIsState | true: F is the state variable |
| aInitial | Initial value of the output hole section |
| AInitial | Initial value of the tank section |
| KInitial | Initial value of the pump parameter |
| vInitial | Initial value of the pump voltage |
| hInitial | Initial value of the liquid level |
| VInitial | Initial value of the liquid volume |
| FInitial | Initial value of the liquid flow |
| g | Constant of gravity [cm/s2] |
Interactive model
Virtual-lab model
When clauses to change interactive parameters and input variables
Extends from tank1OutputModel (Physical model).
| Name | Description |
|---|---|
| isState[3] | This vector allows controlling the state selection |
| hIsState | true: h is the state variable |
| VIsState | true: V is the state variable |
| FIsState | true: F is the state variable |
| aInitial | Initial value of the output hole section |
| AInitial | Initial value of the tank section |
| KInitial | Initial value of the pump parameter |
| vInitial | Initial value of the pump voltage |
| hInitial | Initial value of the liquid level |
| VInitial | Initial value of the liquid volume |
| FInitial | Initial value of the liquid flow |
| g | Constant of gravity [cm/s2] |
Interactive.Examples.tank.tank1OutputViewVirtual-lab view
Extends from Interactive.VLabModels.PartialView (Super-class of the model describing the virtual-lab view).
| Name | Description |
|---|---|
| Tcom | Communication interval |
| serverPort | Server Port number |
| launchView | 0/1 not/yes launch the view |
| ipAddress | ip Address |
| sourceCodePath | Path where the C-functions, Library.dll and pRun.exe are located |
| numberGUI | Number of GUIs |
| fileName | Cpp file name |
| compilation | |
| liquidIX[6] | Interactive x components of the liquid polygon |
| liquidIY[6] | Interactive y components of the liquid polygon |
| vaseIX[6] | Interactive x components of the vase polygon |
| vaseIY[6] | Interactive x components of the vase polygon |
| liquidFromPipeIx[4] | Interactive x components of the liquidFromPipe polygon |
| Initialization | |
| refreshView | True only when the model-view communication is established |