APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Vector Fields and Flow Lines JS Model Documents

Main Document

Vector Fields and Flow Lines JS Model 

written by Wolfgang Christian

The Vector Field and Flow Lines simulation displays a grid of arrows that show the direction of the field at each grid point. The arrow color and intensity change from light blue to red as as the field strength increases. Users can:

  • Change the F(x,y) and G(x,y) vector field component functions.
  • Use the slider to change the number of gid points.
  • Display the orthogonal flow by selecting the O-mode check box.
  • Resize and drag the simulation window.

Click within the vector field to select one or more starting locations and Run the simulation to observe the flow.

The Vector Field and Flow Lines simulation was developed by Wolfgang Christian (Davidson College) using the Open Source Physics code library. It was converted from Java to JavaScript by Wolfgang Christian and Robert Hanson (St. Olaf College) using the SwingJS system developed at St. Olaf College.

Published February 10, 2020
Last Modified February 12, 2020

This file has previous versions.

OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book