


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Computational Lab # Abstract: During the first part we got to practice using vpython to create 3d objects, arrows, understand what the error messages meant, objects attributes and naming objects and using object attributes. These certain techniques as a group we could create an animation of a ball bouncing in a box. As for part two we created a vpython program to show projectile motion. Using the similar algorithm approach in the textbook on the momentum principle discussing the iterative prediction of motion. After opening the vpython folder located on the desktop which bought up vpthon environment on the desktop and displayed the program in a window, which made the python shell also appear wherein the error messages are displayed as well as the output. The program which was given to us was had fragment containing g the framework for coding the graphical output of a ball shooting problem. The code which was provided was a graphical output, parameter initialization and processing code. With this we wrote the code for the physics of the simulation. After reviewing the code fragments and understanding the graphing and initialization code works we were able to fill out the data sheets for plotting velocity, maximum height, time to impact and x-distance to impact. Introduction: The purpose of the first part was to become familiar with Vpython programming language as well as develop simple programs to display visual objects. By the end of the lab out group was able to understand how to use Vidle development environment. Understand how to code in Vpython programming language as well as modelling objects using Vpython. The first part of the lab taught us that Vpython is a programming language that allowed us to very easily make 3D graphics and animations to analyze and visualize the behavior of physical systems like the lab wanted us. As for the second part of the lab we used multiple concepts that affect an object kinematically like force, momentum principle, position, velocity and acceleration to predict motion. As well as develop simple programs to observe motion. After going through the second part of the lab we were able to understand how acceleration, velocity, position, force and
Conclusion: Today we learned how to produce a simple program using VPYTHON and by utilizing this program we learned how a ball will act when bouncing off of a wall with certain parameters given by the code. Therefore expanding our current knowledge on how systems work and what the various forces can do when acting upon said system. For the first part of the lab, we learned that Vpython is a programming language that allows us to create 3D graphics and animations to analyze and visualize the behavior of physical systems. As for the second part of the lab we were required to use multiple concepts that affect an object kinematically like force, momentum principle, position, velocity and acceleration to predict motion. As the lab went on, we were required to observe how the ball was affected by motion every time we added another wall or more balls. In each step we learned how to edit the code on VPYTHON and all of its mechanics, which also taught us a certain amount of more complex coding, so in the future be able to continue with future computational labs due to the knowledge that we acquired from this one lab.