Skip to content

Vpython physutil package released with documentation

May 22, 2011

In the past couple of weeks, when I’ve been swamped with end of year stuff, Danny Cabellero and the computer science undergraduates working with him have managed to publish physutil, a vpython package that is designed specifically for physics teaching and learning.

Physutil allows you to do things like add a timer or axes to a simulation you create in vpython, and drop breadcrumbs to track objects as they move through a simulation. You can also drop any vector you want (like a velocity or force vector) as the object moves, and so you can literally create a simulation of a comet orbiting a star and see how the the velocity changes as the comet orbits the star.

In order to use physutil, you’ll need to install both python and vpython on your computer, and you can find plenty of documentation about that process on

Here’s a video I created to show off some of the features of physutil. The blue arrow represents the net force, and the yellow arrow is the velocity. Total time to code this was less than 15 minutes.

About these ads
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 269 other followers

%d bloggers like this: