VECTOR FIELDS 

by 

Christopher P. Benton, Ph.D. 

 

Using the fieldplot and fieldplot3d tools from the plots package, very nice images of vector fields can easily be created. 

 

restart; -1 

with(plots); 1 

[Interactive, animate, animate3d, animatecurve, arrow, changecoords, complexplot, complexplot3d, conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, cylinderplot, densityplot, ...
[Interactive, animate, animate3d, animatecurve, arrow, changecoords, complexplot, complexplot3d, conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, cylinderplot, densityplot, ...
[Interactive, animate, animate3d, animatecurve, arrow, changecoords, complexplot, complexplot3d, conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, cylinderplot, densityplot, ...
[Interactive, animate, animate3d, animatecurve, arrow, changecoords, complexplot, complexplot3d, conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, cylinderplot, densityplot, ...
[Interactive, animate, animate3d, animatecurve, arrow, changecoords, complexplot, complexplot3d, conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, cylinderplot, densityplot, ...
[Interactive, animate, animate3d, animatecurve, arrow, changecoords, complexplot, complexplot3d, conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, cylinderplot, densityplot, ...
[Interactive, animate, animate3d, animatecurve, arrow, changecoords, complexplot, complexplot3d, conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, cylinderplot, densityplot, ...
[Interactive, animate, animate3d, animatecurve, arrow, changecoords, complexplot, complexplot3d, conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, cylinderplot, densityplot, ...
[Interactive, animate, animate3d, animatecurve, arrow, changecoords, complexplot, complexplot3d, conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, cylinderplot, densityplot, ...
 

fieldplot([x, y], x = -3 .. 3, y = -3 .. 3, fieldstrength = fixed, color = red); 1 

 

Plot 

 

fieldplot([-y, x], x = -3 .. 3, y = -3 .. 3, fieldstrength = fixed, color = red); 1 

 

Plot 

 

fieldplot3d([x, y, z], x = -3 .. 3, y = -3 .. 3, z = -3 .. 3, fieldstrength = fixed, color = red, axes = boxed, orientation = [25, 85]); 1
fieldplot3d([x, y, z], x = -3 .. 3, y = -3 .. 3, z = -3 .. 3, fieldstrength = fixed, color = red, axes = boxed, orientation = [25, 85]); 1
 

 

Plot 

 

fieldplot3d([-y, x, z], x = -3 .. 3, y = -3 .. 3, z = -3 .. 3, fieldstrength = fixed, color = red, axes = boxed, orientation = [25, 45]); 1
fieldplot3d([-y, x, z], x = -3 .. 3, y = -3 .. 3, z = -3 .. 3, fieldstrength = fixed, color = red, axes = boxed, orientation = [25, 45]); 1
 

 

Plot