Computer Science · Computational Theory and Mathematics
AN APPROACH TO VIRTUAL-LAB IMPLEMENTATION USING MODELICA
Carla Martin, Alfonso Urquia, Sebastian Dormido
See on the mapAbstract
An approach to the implementation of virtual-labs is discussed in this manuscript. It allows describing the view (i.e., the user-to-model interface) and the model of the virtual-lab using Modelica language. To achieve this goal, the following two tasks have been completed: (1) a methodology to transform any Modelica model into a formulation suitable for interactive simulation has been proposed; and (2) VirtualLabBuilder Modelica library has been designed and programmed. VirtualLabBuilder library includes Modelica models implementing a set of graphic interactive elements, such as containers, animated geometric shapes (polygon and oval) and interactive controls (slider and radio-button). These models allow the user: (1) to define the interactive graphic elements composing the virtual-lab view; and (2) to link the model variables with the geometric properties of these graphic elements. The structure, capabilities and use of VirtualLabBuilder library are discussed in this manuscript. The library use is illustrated by means of a simple example. Finally, VirtualLabBuilder is used to implement the virtual-lab of the quadruple-tank process.