Interactive simulation of a liquid tank: Matlab class, source code detail

Antonio Sala, UPV

Difficulty: **** ,       Relevance: PIC,      Duration: 14:56

*Enlace a Spanish version

Materials:    [ Cód.: TankAnimInteractive.zip ] [ PDF ]

Summary:

This video details the Matlab code for interactive animation (responding to keyboard input) of filling or emptying a liquid storage tank. This animation was used in previously piublished introductory motivational videos for systems engineering ([tanksist] and [modelsintroEN] videos).

Here we discuss line by line the class (classdef) that handles the animation data and has the following methods:

Last, the code of a script that is in charge of creating the animation, simulating for a certain time and presenting input and output plots once the simulation is finished is, too, detailed.

*Link to my [ whole collection] of videos in English. Link to larger [ Colección completa] in Spanish.

© 2024, A. Sala. All rights reserved for materials from authors affiliated to Universitat Politecnica de Valencia.
Please consult original source/authors for info regarding rights of materials from third parties.