MCV

Movement in a Vertical Circle

This program was done for a graduation course. The objective was to work in teams of three students to develop a complete application. The construction of the program had to follow the traditional stages of the software development and it had to simulate a physical phenomenon of any king.

Figure: Initial screen

The team that developed the program had the following integrants: Carlos Fernando Bella Cruz, Edson Bacin and João Alberto Fabro. We chose to simulate the forces that affect a sphere that move a vertical circle.

Figure: Initial parameters of the movement

I implemented the graphic part and the initial animations using assembler for the 8088 processor. One curious thing that I implemented is that the clock that appear during the calculation phase of the movement shows the pointers in agreement with the current time and the pendulum is drawn by the use of process interruption. Edson Bacin implemented the calculations of the sphere movement and João Alberto Fabro implemented the graphic part of the Vertical Circle.

Figure: Animation while the movement is calculated

The characteristics that I find interesting about this program are that the movement was calculated before presenting the animation. The information was stored in linked list allocated dynamically. Depending on the position of the sphere different calculation types had to be made. The sphere was in contact with the circle when centrifugal force was strong enough to do so. Otherwise, the sphere would fall freely on the ground. When this happens, the calculation had to use the formula of a body falling freely on the air. The other formula was used when the sphere entered in contact with the circle again.

Figure: Animation of the movement

To execute this program I recommend the following steps:

  • install the emulation program DOSBox v0.70.

  • alter the file dosbox.conf putting machine=cga and cycles=200.

  • expand the file below in the root of the drive C:\

  • execute DOSBox and to enter with the command "mount c C:\1991-09-MCV\bin"

  • go to the C drive using the command "C:"

  • execute MCV.EXE.

Figure: Instructions on the movement and use of the program

The developed program helped us to pass the class.

Download Movement in a Vertical Circle
Information Content

Name

Movement in a Vertical Circle

Implemented on

September 1991

Size

60Kb

Executable and source code

1991-09-MCV.zip

Language and compiler

Turbo Pascal and Assembler 8088