BField Embedding

BField allows users to simulate the magnetic field produced by long straight wires or by circular loops. In addition, an external field may be included by specifying Bx and By.

BField is embedded using the following html tag:

<applet codebase="../classes/" archive="BField4_.jar,STools4.jar" code="bfield.BField.class"
name="BField" id="BField" width="450" height="350" hspace="0" vspace="0" align="middle">
  <param name="ShowControls" value="true">
  <param name="ShowFieldVectors" value="true">
  <param name="BxFunction" value="0">
  <param name="ByFunction" value="0">
  <param name="Range" value="-5,5,-5,5">
  <param name="GridSize" value="24">
</applet>

BField Parameters

ShowControls  boolean  True to show simple user interface.
ShowFieldVectors  boolean  True to show vector field arrows.
BxFunction  string  X component of static background field.
ByFunction  string  Y component of static background field.
Range  string  X-Y scale values: xmin, xmax, ymin, ymax.
GridSize  int  Number of arrows in x or y direction.

STools Parameters

AppletNames  string  A comma delimited list of applet names occurring within this html page. (See OnLoad.)
Debug  int  Enables debugging messages in Java console; 0 = no messages, 255 = verbose messages.
OnLoad  string  A JavaScript function that will be invoked using LiveConnect after all applets have been loaded.  (See AppletNames.)
Resources  string  A file containing translations of internal text such as buttons and labels.