Interactive.Examples.BBall

Bouncing ball

Information



This is the bouncing ball virtual lab, which is based on a Modelica model extracted from (Dynasim 2004).

Package Content

Name Description
Interactive.Examples.BBall.BBModel BBModel Virtual-lab model
Interactive.Examples.BBall.BBInteractive BBInteractive Interactive model
Interactive.Examples.BBall.BBView BBView Virtual-lab view description

Interactive.Examples.BBall.BBModel

Virtual-lab model

Information



This model has been extracted from (Dynasim 2004). It has been adapted for interactive simulation. The interactive variables of the models are shown in Table 1.

Table 1. Interactive variables.
x Ball position.
v Ball velocity.
ebounce Elasticity coefficient.


References

Dynasim (2004): Dymola. User's Manual. Dynasim AB.Version 5.3a.

Parameters

NameDescription
xStart[m]
vStart[m/s]
m[kg]
ebounceIniInitial value of the elasticity coefficient
vsmall 

Interactive.Examples.BBall.BBInteractive

Interactive model

Information



This model has been composed by instantiating the VirtualLab Model, which is included in the Interactive library. The BBInteractive model includes the equations required to link the model and the view variables.

Interactive.Examples.BBall.BBView Interactive.Examples.BBall.BBView

Virtual-lab view description

Information



This model has been composed by extending the PartialView class and by instantiating and connecting the required components of the VirtualLabBuilder library. The connection rules are described in the documentation of the ViewElements package.

Extends from Interactive.VLabModels.PartialView (Super-class of the model describing the virtual-lab view).

Parameters

NameDescription
TcomCommunication interval
serverPortServer Port number
launchView0/1 not/yes launch the view
ipAddressip Address
sourceCodePathPath where the C-functions, Library.dll and pRun.exe are located
numberGUINumber of GUIs
fileNameCpp file name
compilation 
Initialization
refreshViewTrue only when the model-view communication is established
Automatically generated Thu Apr 28 12:24:21 2022.