Skip to content

Difference in calculation increments between CIF simulator and generated HTML page

A student has developed a model of a weir, see attached. The behaviour of this model is different in ESCET simuation and browser (HTML code) simulation. My best guess to why is as follows:

In the weir model, the level of the door can be changed to allow for more or less waterflow. So for example, the door can be controlled to move from a position of 20.8 to 19.8, and will move incrementally with a defined speed from up to down.

In the model the door will stop moving when it has reached the desired position with a margin of error (+-0.01). The incremental steps of movement in the simulation in ESCET are small enough that the door will always end up between 19.81 and 19.79. However, when converted to HTML code and simulated in the browser, this might not be the case. Here it sometimes occurs that these incremental steps are too large, and therefore it happens that, for example, the door moves from 19.82 to 19.77, overshooting its desired position. This results in different model behaviour.

I was wondering this problem has occured before and if a ready solution exists. if not, is it possible to influence these incremental steps in the HTML-code/browser?

Modelsimulatie.html