The simulation shows a current carrying wire embedded in an external field, B = 0.75*y i + 0.75*x j. The resultant field is the vector sum of these two fields. Drag the wire and observe the force vector and the force/length on the wire in the yellow message box in the lower left hand corner. Start
Caution: The scripter should insure that external fields have a
divergence of zero.
<script language="JavaScript">
function external(){ document.BField.setDefault(); document.BField.setDefaultRGB(0,0,0); w1=document.BField.addWire(0,-4,-2.0); document.BField.setDrag(w1,true); document.BField.setShowForce(w1,true); document.BField.setBFunctions("0.75*y", "0.75*x", -5, 5, -5, 5); document.BField.setShowFieldVectors(true); } </script>