Magnetic fields and their effects on moving electrical charges
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/wb/ Wed Mar 07 2012 13:53:10 GMT-0500 (EST)-->
<XholonWorkbook>
<Notes><![CDATA[
Khan Academy
------------
Title: Magnetism 2
Description: Magnetic fields and their effects on moving electrical charges
Url: http://www.khanacademy.org/video/magnetism-2
InternalName: magnetism-2
YoutubeId: NnlAI4ZiUrQ
Keywords: physics, magnetic, field, cross, product
My Notes
--------
Magnetic fields
visualization
field lines
bar magnet with N pole and S pole
convention is to draw lines from the N pole to the S pole
imagine a hypothetical monopole trying to escape from N to get to S
another way to think about it 2:30
a compass pointer would be tangent to the field lines
N pole of compass pointer points to S pole of magnet
magnitude of a magnetic field at any point
defined in terms of the effect it has on a moving charge
a magnetic field is an electromagnetic field moving at a high/relativistic speed
example
B (B⃗) is a vector that's a magntic field
the force (F) on a moving charge (proton, electron, etc.)
= the magnitude of charge
* (the velocity of the charge CROSS the magnetic field)
F = Q · (v × B) where F, v and B are vectors( F⃗ v⃗ B⃗ ) and Q is a scalar
the cross product is concerned with vectors that are perpendicular to each other
if v is exactly perpendicular to B, then F has a value
if they are parallel, then there is no impact
F is perpendicular to both v and B
magnitude of the force F
|F⃗| = Q * |v⃗| * |B⃗| * sin θ
where θ is the angle between v and B
units of the magnetic field B
sin θ has no units
F is Newtons (N)
Q is Coulombs (C)
N = C * m/s * (Bunits)
N*s/(C*m) = Bunits
Newton seconds per Coulomb meter
1 Bunit is 1 Tesla (T)
Stuff to do::
write code to draw a bar magnet, with field lines between the poles
SVG (use JavaScript, Raphael, etc.)
write code to do the various calculations
]]></Notes>
<script implName="lang:javascript:inline:"><![CDATA[
print("height = 56.78 meters\n");
]]></script>
<_-.XholonClass>
<!-- domain objects -->
<PhysicalSystem/>
<Block/>
<!-- quantities -->
<Height superClass="Length"/>
</_-.XholonClass>
<xholonClassDetails>
<Block>
<port name="height" connector="#xpointer(Height)"/>
</Block>
</xholonClassDetails>
<PhysicalSystem>
<Block>
<Height>0.1 m</Height>
<ElectricCharge>0.0 C</ElectricCharge>
<MagneticFluxDensity>0.0 T</MagneticFluxDensity>
</Block>
</PhysicalSystem>
<Blockbehavior implName="lang:python:inline:"><![CDATA[
# This works if pasted in as a last child of Block.
height.incVal(0.02)
print("Python wants something to do. Height:" + str(height))
]]></Blockbehavior>
<Blockbehavior implName="lang:javascript:inline:"><![CDATA[
// This works if pasted in as a last child of Block.
height.incVal(0.02);
print("JavaScript wants something to do. Height:" + height + "\n");
]]></Blockbehavior>
<Blockbehavior implName="lang:bsh:inline:"><![CDATA[
// This works if pasted in as a last child of Block.
height.incVal(0.02);
System.out.print("Java/Beanshell wants something to do. Height:" + height + "\n");
]]></Blockbehavior>
<Blockbehavior implName="lang:jruby:inline:"><![CDATA[
require 'java'
# This works if pasted in as a last child of Block.
$height.incVal(0.02)
puts "Ruby wants something to do. Height: #{$height}"
]]></Blockbehavior>
<Blockbehavior implName="lang:groovy:inline:"><![CDATA[
// This works if pasted in as a last child of Block.
height.incVal(0.02);
System.out.print("Groovy wants something to do. Height:" + height + "\n");
]]></Blockbehavior>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<?xml version="1.0" standalone="yes"?>
<!--
"Bar Magnet with N and S" created using Google Docs; it doesn't know about SVG rect
https://docs.google.com/drawings/d/1PSWaxBhufGAjxSx9MSgV4XdcESBfUN6NOa-aEh66V3I/edit
-->
<svg width="105" height="215" xmlns="http://www.w3.org/2000/svg" clip-path="url(#p.0)">
<title>BarMagnet</title>
<clipPath id="p.0">
<path d="m0,0l189,0l0,462l-189,0l0,-462z" clip-rule="nonzero" id="svg_1"/>
</clipPath>
<defs>
<filter id="svg_7_blur">
<feGaussianBlur stdDeviation="1.1"/>
</filter>
</defs>
<g>
<title>BarMagnet</title>
<g id="svg_7" transform="rotate(-10, 51.5332, 106.611)" filter="url(#svg_7_blur)">
<path fill="#cfe2f3" stroke="#000000" stroke-width="2" stroke-linejoin="round" d="m18.95217,6.13247l65.16192,0l0,200.95782l-65.16192,0l0,-200.95782z" fill-rule="nonzero" id="svg_2"/>
<path stroke="#000000" stroke-width="2" stroke-linejoin="round" d="m18.95217,106.61137l0,0" fill-rule="nonzero" id="svg_3"/>
<path stroke="#000000" stroke-width="2" stroke-linejoin="round" d="m18.95217,106.61137l65.16192,0" fill-rule="nonzero" id="svg_4"/>
<path fill="#073763" d="m37.57605,48.37676l0,-33.68697l4.80915,0l18.60828,26.44864l0,-26.44864l4.495,0l0,33.68697l-4.80914,0l-18.60828,-26.47162l0,26.47162l-4.49499,0l-0.00002,0z" fill-rule="nonzero" id="svg_5"/>
<path fill="#073763" d="m37.57605,187.19597l4.42249,-0.36768q0.31417,2.52768 1.46209,4.14767q1.1479,1.62003 3.56456,2.6196q2.41666,0.99956 5.43748,0.99956q2.6825,0 4.73666,-0.7583q2.05415,-0.75829 3.05708,-2.07959q1.00291,-1.32126 1.00291,-2.88382q0,-1.58554 -0.96666,-2.76895q-0.96667,-1.18341 -3.18999,-1.98767q-1.42583,-0.5285 -6.30748,-1.64297q-4.88165,-1.11447 -6.83915,-2.10257q-2.53749,-1.26384 -3.78207,-3.13661q-1.24458,-1.87279 -1.24458,-4.19362q0,-2.55066 1.5225,-4.76811q1.5225,-2.21745 4.44665,-3.36639q2.92416,-1.14896 6.50082,-1.14896q3.93915,0 6.94789,1.20639q3.00874,1.20641 4.6279,3.55023q1.61916,2.34384 1.74,5.30811l-4.49499,0.32172q-0.3625,-3.19406 -2.4529,-4.82556q-2.09042,-1.63147 -6.17457,-1.63147q-4.25331,0 -6.19873,1.48212q-1.94541,1.48213 -1.94541,3.57321q0,1.81534 1.3775,2.98726q1.35333,1.17192 7.06873,2.40129q5.71539,1.22937 7.84205,2.1485q3.09333,1.35574 4.56749,3.43533q1.47417,2.07959 1.47417,4.79109q0,2.68852 -1.61916,5.06683q-1.61916,2.3783 -4.65206,3.69958q-3.03291,1.32129 -6.82707,1.32129q-4.80915,0 -8.05956,-1.33276q-3.25041,-1.33278 -5.09915,-4.00981q-1.84875,-2.67705 -1.94542,-6.05492l-0.00002,-0.00002z" fill-rule="nonzero" id="svg_6"/>
</g>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>