<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Field Precision software tips</title>
	<atom:link href="http://fieldp.com/myblog/feed/" rel="self" type="application/rss+xml" />
	<link>http://fieldp.com/myblog</link>
	<description>Effective finite-element modeling of electromagnetic fields</description>
	<lastBuildDate>Wed, 16 May 2012 21:08:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Coil force integrals in Magnum</title>
		<link>http://fieldp.com/myblog/2012/coil-force-integrals-in-magnum/</link>
		<comments>http://fieldp.com/myblog/2012/coil-force-integrals-in-magnum/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 20:39:18 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Educational]]></category>
		<category><![CDATA[NewFeatures]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=1312</guid>
		<description><![CDATA[<p>The magnetic force on a vector current element dl carrying current I in a magnetic field with flux density B is</p>
<p>dF = I dl × B    (1)</p>
<p>In Magnum applied currents are represented by a collection of filamentary elements, so you might think that it would be straightforward to implement automatic routines to find forces on drive coils. [...]]]></description>
			<content:encoded><![CDATA[<p>The magnetic force on a vector current element <strong>dl</strong> carrying current <em>I</em> in a magnetic field with flux density <strong>B</strong> is</p>
<p><strong>dF</strong> = <em>I</em> <strong>dl</strong> × <strong>B</strong>    (1)</p>
<p>In <strong>Magnum</strong> applied currents are represented by a collection of filamentary elements, so you might think that it would be straightforward to implement automatic routines to find forces on drive coils. The problem is one of accuracy when the drive coils are the primary source of the field. The field varies rapidly around the filamentary elements so a simple integral using Eq. 1 may give misleading values.</p>
<p>On the other hand, there are situations where such an integral would be very useful. I recently had a consulting project where a strong permanent-magnet assembly exerts a force on a current loop. The loop carries less than an ampere and makes only a small contribution to the field. Accordingly, I recently added a routine for automatic coil-force integrals to <strong>MagView</strong>. The new command <em>Coil force</em> is in the <em>File operations</em> menu. Here&#8217;s how it works:</p>
<div class="wp-caption aligncenter" style="width: 510px"><img title="Magnet assembly with diagnostic coil paths" src="http://www.fieldp.com/myblog/images/coil_force.png" alt="Magnet assembly with diagnostic coil paths" width="500" height="424" /><p class="wp-caption-text">Figure 1. Magnet assembly with diagnostic coil paths</p></div>
<p>1) Suppose you have a solution for a permanent-magnet assembly or an electromagnet and want to find the force on a coil inserted in the magnet volume. Load the solution into <strong>MagView</strong> with the <em>File operations/Load solution file</em> command.</p>
<p>2) Use <strong>Magwinder</strong> to define the sensor coil. It may be a simple rectangle (as in Fig. 1) or multi-turn shape of any complexity like a <a title="Create a coil box with Magwinder" href="http://fieldp.com/myblog/2012/creating-a-coil-box-with-magwinder/" target="_blank">coil box</a>. Assign a coil current of 1.0 A.</p>
<p>3) If you want to check the force at multiple positions, define multiple <em>Coils</em> in the <em>CDF</em> file with different values for the <em>Shift</em> and <em>Rotate</em> operations, as in Fig. 1.</p>
<p>4) Export an element file (<em>WND</em>).</p>
<p>5) Load the element file into <strong>MagView</strong> with the <em>File operations/Load coils command</em>.</p>
<p>6) Click on the <em>Coil force</em> command (note that the command functions only when both a solution and coil file have been loaded). The command shows a dialog with force components for each coil in the <em>WND</em> file and also write values to a data file if one is open. Here is an example listing:</p>
<pre>--- Coil forces  ---
 NCoil         Fx          Fy         Fz
 ===========================================
 1   9.4794E-03   1.2813E-09  -3.9264E-06
 2   8.9958E-03  -2.5137E-04   9.6336E-07
 3   8.9808E-03   3.3423E-04  -2.9572E-06</pre>
<p>If the diagnostic coils carry 1.0 A, the units of force are newtons/A.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2012/coil-force-integrals-in-magnum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Universal curves for high-frequency wire losses</title>
		<link>http://fieldp.com/myblog/2012/universal-curves-for-high-frequency-wire-losses/</link>
		<comments>http://fieldp.com/myblog/2012/universal-curves-for-high-frequency-wire-losses/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 19:41:26 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Educational]]></category>
		<category><![CDATA[Techniques]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=1293</guid>
		<description><![CDATA[<p>My original intent was to write an article to show when it is necessary to use an eddy-current code to find time-varying magnetic fields and when a static field code like Magnum is sufficient. As a preliminary, I thought it would be useful to review how eddy currents affect magnetic fields in single wires. This tutorial [...]]]></description>
			<content:encoded><![CDATA[<p>My original intent was to write an article to show when it is necessary to use an eddy-current code to find time-varying magnetic fields and when a static field code like <strong>Magnum </strong>is sufficient. As a preliminary, I thought it would be useful to review how eddy currents affect magnetic fields in single wires. This tutorial has two purposes:</p>
<ul>
<li>Document useful general results on the effective resistance and ohmic losses in wires at high frequency.</li>
<li>Show how to set up calculations of magnetic field distributions in wires with the two-dimensional code Nelson.</li>
</ul>
<p>To start, let&#8217;s review some basic equations for a long wire with cross-section area <em>Aw</em> (m2) and conductivity σ (S/m). At low frequency, the current density is uniformly distributed across the wire and the resistance per length given by Eq. 1. If the wire carries an alternating current <em>I0</em> cos(2π<em>f t</em>) at frequency <em>f</em>, Eq. 2 gives the time-averaged power dissipation.At high values of <em>f</em>, the magnetic field associated with the current flow is inhibited from penetrating the metal wire, concentrating the current density near the wire surface. The effective effective cross-section area of the wire is therefore smaller than <em>Aw</em>, increasing the resistance per length and the ohmic power loss for a given current. The penetration distance for magnetic fields, called the <em>skin depth</em>, is given Eq. 3. The quantity μ is the magnetic permeability, given by μ = (1.257E-6) μr, where μr is the relative magnetic permeability. The relative permeability equals 1.0 for most wire metals.</p>
<p><img class="aligncenter" title="Wireloss equations" src="http://www.fieldp.com/myblog/images/wireloss_equations.png" alt="Wireloss equations" width="509" height="281" /></p>
<p>The skin depth allows us to define the high and low-frequency regimes. For a circular wire of radius <em>rw</em>, Eq. 4 gives the condition for enhanced ohmic losses. In the following calculation, we&#8217;ll use the example of a circular copper wire 1.0 mm in radius. The conductivity of copper is σ = 5.814E7 S/m. Using Eq. 3, the frequency corresponding to δ = 0.5 mm is 17.4 kHz. For a wire area <em>Aw</em> = 3.142E-6 m2, Eq. 1 gives the steady-state resistance <em>R</em> = 5.474E-3 Ω/m. For a drive current amplitude <em>I0</em> = 1.0 A, the low-frequency power loss is P = 2.738E-3 W/m.</p>
<p>The program <strong>Nelson </strong>finds field magnetic distributions in the frequency domain — all quantities (including drive currents) vary harmonically at the same frequency. The input files to define the mesh and to control the calculation are <a href="http://www.fieldp.com/myblog/examples/circular.min" target="_self">circular.min</a> and<a href="http://www.fieldp.com/myblog/examples/circular.nin" target="_self"> circular.nin</a>. Figure 1 shows the mesh with dimensions in millimeters. The wire extends an infinite distance out of the page. The large air region was included so that the calculation could easily be modified for non-circular wires &#8212; the distant boundary has little effect on the magnetic fields inside a wire.</p>
<div class="wp-caption aligncenter" style="width: 610px"><img title="Nelson mesh" src="http://www.fieldp.com/myblog/images/wireloss_mesh.png" alt="Nelson mesh" width="600" height="582" /><p class="wp-caption-text">Figure 1. Mesh for the Nelson circular wire calculation.</p></div>
<p>In the <strong>Nelson </strong>control script circular.nin, the boundary is a surface of fixed vector potential (flux conserving boundary) and the air region has μr = 1.0 and σ = 0.0 S/m. The copper wire has μr = 1.0, σ = 5.814E7 S/m and a drive current <em>I0</em> = 1.0 A at a phase of 0.0°. The calculation of eddy currents in the wire uses the multistage, self-consistent method described in Chap. 4 of the <strong>Nelson </strong>manual. Figure 2 shows lines of <strong>B</strong>. At low frequency, |<strong>B</strong>| inside the wire increases linearly with distance from the axis, consistent with uniform current density. At high frequency, the magnetic flux density is concentrated on the surface.</p>
<div class="wp-caption aligncenter" style="width: 510px"><img class=" " title="Magnetic field lines" src="http://www.fieldp.com/myblog/images/wireloss_bline.png" alt="Magnetic field lines" width="500" height="930" /><p class="wp-caption-text">Figure 2. Lines of magnetic flux density in and around a circular copper wire at low and high frequency.</p></div>
<p>To make a quantitative comparison, we can use the automatic volume integral in the <strong>Nelson </strong><em>Analysis </em>menu to find the total power dissipation per length along <em>z</em>. Results of calculations at several frequencies are plotted in Fig. 3. The theoretical steady-state value is shown as a dashed line. As expected, power losses increase significantly in the range 10-20 kHz. At high frequency, the current is confined to a thin layer on the wire surface. In this case. the power loss increases approximately as √<em>f</em>, proportional to 1/δ.</p>
<div class="wp-caption aligncenter" style="width: 610px"><img title="Power loss" src="http://www.fieldp.com/myblog/images/wireloss_power.png" alt="Power loss" width="600" height="455" /><p class="wp-caption-text">Figure 3. Power dissipation per meter in a copper wire of radius 1.0 mm as a function of frequency with a drive current amplitude of 1.0 A.</p></div>
<p>It is important to recognize that the numerical results for the 1.0 mm copper wire may be applied to circular wires of any diameter or composition. It is not necessary to repeat the calculation for each special case. The strategy is to recognize scaling laws and to incorporate them into a universal curve. As an example, the green line of Fig. 4 plots the power level relative to the steady-state value as a function of the ratio of the wire dimension to the skin depth. There are two advantages to applying scaling laws:</p>
<ul>
<li>Generality – the graphed data may used to determine the effective resistance of any circular wire.</li>
<li>Identification of trends – it&#8217;s evident that the power loss is proportional to 1/δ at high frequency.</li>
</ul>
<div class="wp-caption aligncenter" style="width: 610px"><img title="Universal curve" src="http://www.fieldp.com/myblog/images/wireloss_universal.png" alt="Universal curve" width="600" height="458" /><p class="wp-caption-text">Figure 4. Universal curve for high-frequency wire resistance, power relative to the steady-state value plotted as a function of the wire dimension normalized by the skin depth. Circular and square wire cross sections.</p></div>
<p>As an example, suppose we have a 1/8&#8243;&#8216; diameter stainless steel rod and we want to find the frequency limit such that the power loss is no more than 50% of the low-frequency value. An inspection of Fig. 4 shows that δ must be greater than <em>rw</em>/2.5. With σ = 1.240E6 S/m and <em>rw</em> = 1.59 mm, the frequency corresponding to δ = 0.636 mm is <em>f</em> = 503.7 kHz. To check the result, I set up another <strong>Nelson </strong>calculation with modified wire radius and conductivity. For <em>I0</em> = 1.0 A, the predicted steady-state power dissipation is 50.77 mW/m. The Nelson calculation gives 50.77 mW/m at f = 1.0 Hz and 76.28 mW/m at 503.7 kHz. The ratio of the two power levels is 1.50.</p>
<p>The results for circular wires could have been derived analytically with some effort. The true advantage of a numerical approach is that complex shapes are no more difficult to handle than simple shapes. To illustrate, I set up a run for square copper wires by changing the shape of the wire region in the <strong>Mesh </strong>input file. I used a wire with side lengths <em>D</em> = 2.0 mm. Figure 5 shows lines of <strong>B</strong> at high frequency. The universal power dissipation curve for square wires is plotted as the blue line in Fig. 4.</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 610px"><img class=" " title="Square wire" src="http://www.fieldp.com/myblog/images/wireloss_square.png" alt="Square wire" width="600" height="565" /><p class="wp-caption-text">Figure 5. Lines of magnetic flux density in and around a square copper wire at 40 kHz.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2012/universal-curves-for-high-frequency-wire-losses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharing dimensions of Mesh setups</title>
		<link>http://fieldp.com/myblog/2012/sharing-dimensions-of-mesh-setups/</link>
		<comments>http://fieldp.com/myblog/2012/sharing-dimensions-of-mesh-setups/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 16:38:31 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Techniques]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=1282</guid>
		<description><![CDATA[<p>My consulting projects involve beam optics studies for a variety of devices: electron guns, transport solenoids, beam collectors,&#8230;.. Typically, I develop optimal shapes for cathodes and internal electrodes and then send the information to the customer&#8217;s engineers who worry about external matters (power supplies, vacuum seals, high-voltage insulation, cooling,&#8230;). This process involves communicating dimensions.</p>
<p>In principle, all [...]]]></description>
			<content:encoded><![CDATA[<p>My consulting projects involve beam optics studies for a variety of devices: electron guns, transport solenoids, beam collectors,&#8230;.. Typically, I develop optimal shapes for cathodes and internal electrodes and then send the information to the customer&#8217;s engineers who worry about external matters (power supplies, vacuum seals, high-voltage insulation, cooling,&#8230;). This process involves communicating dimensions.</p>
<p>In principle, all dimensions for calculations with <strong>EStat</strong>, <strong>PerMag </strong>and <strong>Trak </strong>are contained in the <strong>Mesh </strong>input script (<em>MIN</em>). On the other hand, it&#8217;s an imposition to expect the engineers to figure out the format. You could create a mechanical drawing, but there&#8217;s a quicker way to send full dimensional information: the <em>DXF</em> export function in the <strong>Mesh </strong><em>Drawing Editor</em>. It&#8217;s documented in the <strong>Mesh </strong>manual, but people (including myself) tend to forget about it.</p>
<p>To create a <em>DXF </em>file, first load your <em>MIN </em>file into <strong>Mesh</strong>. Next, choose the <em>Edit script (graphics) </em>command to open the <em>Drawing Editor</em>. Then use the <em>Export DXF</em> command. It produces a standard <em>DXF </em>file that can be opened with the engineer&#8217;s favorite CAD program (<strong>AutoCAD</strong>, <strong>DraftSight</strong>,&#8230;). In a familiar environment, it&#8217;s easy to find dimensions.</p>
<p>The vectors for mesh regions are organized in layers with the names &#8220;0&#8243;, &#8220;1&#8243;, &#8220;2&#8243;,&#8230;. The &#8220;0&#8243; layer is for reference lines. You can omit writing information from the region (or any other region) to the <em>DXF </em>file. Before exporting the file, click on <em>Settings/Region properties</em> and turn off the visibility of the regions to be excluded.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2012/sharing-dimensions-of-mesh-setups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GamBet computing power unleashed</title>
		<link>http://fieldp.com/myblog/2012/gambet-computing-power-unleashed/</link>
		<comments>http://fieldp.com/myblog/2012/gambet-computing-power-unleashed/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 21:15:18 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[NewFeatures]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=1270</guid>
		<description><![CDATA[<p>GamBet, our Monte Carlo code for X-ray science and technology, has always been ahead of competitors with regard to special features (I&#8217;ll mention some later). In the past other packages may have had more raw computing power. We advanced the number-crunching capability of GamBet last year when we introduced parallel processing (http://fieldp.com/myblog/2011/multicore-gambet/). With this feature, GamBet [...]]]></description>
			<content:encoded><![CDATA[<p><strong>GamBet</strong>, our Monte Carlo code for X-ray science and technology, has always been ahead of competitors with regard to special features (I&#8217;ll mention some later). In the past other packages may have had more raw computing power. We advanced the number-crunching capability of <strong>GamBet </strong>last year when we introduced parallel processing (<a href="http://fieldp.com/myblog/2011/multicore-gambet/" target="_blank">http://fieldp.com/myblog/2011/multicore-gambet/</a>). With this feature, <strong>GamBet </strong>runs could utilize the full power of a single, multi-core machine.</p>
<p>We&#8217;ve taken another step forward to make <strong>GamBet </strong>the best program for power users. We now support <em>distributed computing</em>. Runs may be divided between an unlimited number of machines. Here&#8217;s how it works:</p>
<ol>
<li>The new <strong>GamBet Distributed-computing Extension</strong> (GDE) is an add-on package for <strong>GamBet </strong>or <strong>Xenos </strong>Pro. The package includes two programs, <strong>GB_SOW</strong> and <strong>GB_REAP</strong>.</li>
<li><strong>GB_SOW</strong> includes all technical features of <strong>GamBet</strong>. The program may be installed on any number of computers without a license requirement. <strong>GB_REAP</strong> is installed on a master computer with a <strong>GamBet </strong>license.</li>
<li>The user sets up and tests a <strong>GamBet </strong>run using the standard programs. Then, the required input files (<strong>GamBet </strong>control script, mesh definition, electric or magnetic field files,&#8230;) are sent to the worker computers.</li>
<li><strong>GB_SOW</strong> is launched on each worker computer, either from a window or from the command line. Multiple instances of <strong>GB_SOW</strong> may run on multiprocessor machines.</li>
<li>The <strong>GB_SOW</strong> run produces a single binary file with a unique identifying name that contains all information from the <strong>GamBet</strong> calculation (escape particles, dose, statistics,&#8230;). The user moves output files from the worker computers to a data folder on the master computer.</li>
<li><strong>GB_REAP</strong> identifies all binary input files in the specified directory and combines them to produce <strong>GamBet </strong>output files in standard format. These files may be analyzed with <strong>GBView2</strong>, <strong>GBView3 </strong>or <strong>GenDist</strong>. Escape particles are combined in a single escape file with appropriate weightings. Statistical and dose information is averaged.</li>
</ol>
<p>In the procedure, the user&#8217;s only role is to transfer files to and from the worker computers. This leaves complete flexibility for configuring the distributed network and automating file transfers. Despite its simplicity, the <strong>GDE</strong> concept has several advantages:</p>
<ul>
<li>Calculations are independent and need not be synchronized.</li>
<li>There is no overhead for parallel processing. Five quad-core computers can reduce the time to generate a required number of showers by a factor of 20.</li>
<li>If one machine fails during the computation, data from the other computers is still valid and useful.</li>
<li>It is easy to improve the accuracy of a calculation by adding more showers without starting from scratch. The user simply creates more worker-computer files. They are added to the master folder and the total collection is recombined with <strong>GB_REAP</strong>.</li>
<li>Communication between computers is solely through file transfers. Therefore, it is easy to carry out extended calculations at any locations via a company network or the Internet.</li>
</ul>
<p>While we&#8217;re on the topic of <strong>GamBet</strong>, it&#8217;s useful to review some other features that differentiate it from other Monte Carlo codes:</p>
<ul>
<li>2D and 3D geometries are defined with powerful finite-element mesh generators rather than idiosyncratic solid-modeling algorithms. Advantages include the direct input of complex shapes from  <strong>SolidWorks</strong>, <strong>ProE </strong>and other packages as well as extensive visualization options. The conformal meshes provide close fits to material surfaces.</li>
<li>2D or 3D calculated electric and magnetic field solutions may be imported for detailed electron dynamics.</li>
<li><strong>GamBet </strong>incorporates the <strong>Penelope 2006 </strong>physics engine for high-accuracy interaction calculations, from GeV energies down to less than 100 eV.</li>
<li>Calculations of fields, electron beam dynamics and target heating are integrated with Monte Carlo simulations in <strong>Xenos</strong>, a comprehensive software suite for X-ray source development.</li>
<li><strong>GamBet </strong>features extensive graphical and quantitative post-processing capabilities for dose distributions and particle statistics.</li>
</ul>
<p>The <strong>GDE </strong>package will listed in our catalog and available for purchase on March 30, 2012.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2012/gambet-computing-power-unleashed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a coil box with MagWinder</title>
		<link>http://fieldp.com/myblog/2012/creating-a-coil-box-with-magwinder/</link>
		<comments>http://fieldp.com/myblog/2012/creating-a-coil-box-with-magwinder/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 17:09:56 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Educational]]></category>
		<category><![CDATA[Techniques]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=1252</guid>
		<description><![CDATA[<p>Many designs for electromagnets include a coil of the shape shown in Figure 1 wrapped around an iron mandrel with a rectangular cross section. The utility program Magwinder is used to define drive current elements for three dimension magnetic field calculations with the Field Precision Magnum program. In Magwinder, a coil box like Fig. 1 is [...]]]></description>
			<content:encoded><![CDATA[<p>Many designs for electromagnets include a coil of the shape shown in Figure 1 wrapped around an iron mandrel with a rectangular cross section. The utility program <strong>Magwinder </strong>is used to define drive current elements for three dimension magnetic field calculations with the Field Precision <strong>Magnum </strong>program. In <strong>Magwinder</strong>, a coil box like Fig. 1 is constructed of four <em>BAR </em>type parts connected by four <em>ELBOWR </em>(elbow with a rectangular cross section) parts. The boxes must be rotated and translated from the their standard configurations to generate current in the correct position and direction, and the elbows must be shifted to the connecting positions. This involves some concentration and much busy work. Furthermore, the chances of error increase when there are multiple operations. In this article, I&#8217;ll describe resources that I created to automate the process and review the plotting capabilities in <strong>Magwinder </strong>to check the results.</p>
<div class="wp-caption aligncenter" style="width: 610px"><img class=" " title="Definition of coil box parameters" src="http://www.fieldp.com/myblog/images/CoilBox01.png" alt="Definition of coil box parameters" width="600" height="400" /><p class="wp-caption-text">Figure 1. Definition of coil box parameters</p></div>
<p>Figure 1 defines the geometric parameters of the coil box:</p>
<ul>
<li>The coil cross section has width <em>W1</em> in the <em>x-y</em> plane and <em>W2</em> in <em>z</em>.</li>
<li>The coil is approximated by <em>N1</em> current filaments in the <em>x-y</em> plane and <em>N2</em> filaments in <em>z</em>.</li>
<li>The <em>BAR </em>models have length <em>D1</em> in <em>x</em> and <em>D2</em> in <em>y</em>.</li>
<li>The <em>ELBOWR </em>models have inner radius <em>R1</em> and outer radius <em>R2</em> and extend 90°.</li>
<li><em>I</em> is the total current carried by the filaments.</li>
</ul>
<p>In the standard position, the current flows in the <em>x-y</em> plane in the direction of positive θ (counterclockwise) when view from the <em>+z</em> direction. You can download the <strong>Magwinder </strong>sample input file <a href="http://www.fieldp.com/myblog/examples/coilbox_example.cdf" target="_self">coilbox_example.cdf</a> which creates the structure for a specific set of parameters. The equations for the model parameters are listed as comment lines.</p>
<div class="wp-caption aligncenter" style="width: 599px"><img class=" " title="Spreadsheet for automatic calculation of coil box parameters" src="http://www.fieldp.com/myblog/images/CoilBox02.png" alt="Spreadsheet for automatic calculation of coil box parameters" width="589" height="779" /><p class="wp-caption-text">Figure 2. Spreadsheet for automatic calculation of coil box parameters</p></div>
<p>I have also set up the spreadsheet shown in Fig. 2. To use it, fill in the parameter values and then copy and paste the cells starting at <em>GLOBAL </em>as text into a <strong>MagWinder </strong>script (<em>CDF</em>). Here is a link for a file for the OpenOffice spreadhsheet <a href="http://www.fieldp.com/myblog/examples/coil_box.ods">(coil_box.ods</a>). If you enjoy purchasing office software, here is a link to an Excel file (<a href="http://www.fieldp.com/myblog/examples/coil_box.xls">coil_box.xls</a>).</p>
<div class="wp-caption aligncenter" style="width: 451px"><img class=" " title="Resulting current elements with polarity indicators projected to the x-y plane" src="http://www.fieldp.com/myblog/images/CoilBox03.png" alt="Resulting current elements with polarity indicators projected to the x-y plane" width="441" height="600" /><p class="wp-caption-text">Figure 3. Resulting current elements with polarity indicators projected to the x-y plane (N1 = 3)</p></div>
<p>Figure 3 shows the resulting assembly projected in the <em>x-y</em> plane. The plot illustrates the new <strong>Magwinder </strong>capability to display the polarity of current elements. They are represented as sperm cells swimming in the direction of the head. There are two ways to reverse the current direction.</p>
<ul>
<li>Use a negative coil current, <em>I</em> → <em>-I</em>.</li>
<li> Rotate the <em>COIL </em>90° about the <em>x</em> or <em>y</em> axis.</li>
</ul>
<div class="wp-caption aligncenter" style="width: 610px"><img title="Quadrupole assembly with four coil boxes" src="http://www.fieldp.com/myblog/images/CoilBox04.jpg" alt="Quadrupole assembly with four coil boxes" width="600" height="518" /><p class="wp-caption-text">Figure 4. Quadrupole assembly with four coil boxes</p></div>
<p>You can use the basic assembly multiple times in a <strong>Magwinder </strong>script. For example, Fig. 4 shows a quadrupole magnet. The standard text from the spreadsheet was pasted into four <em>COIL </em>sections, and then each coil was assigned a specific rotation and translation.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2012/creating-a-coil-box-with-magwinder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multitasking made easy</title>
		<link>http://fieldp.com/myblog/2012/multitasking-made-easy/</link>
		<comments>http://fieldp.com/myblog/2012/multitasking-made-easy/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 16:29:09 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[NewFeatures]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=1233</guid>
		<description><![CDATA[<p>Field Precision programs are optimized for the latest generation of multi-core or multi-processor PCs. The 64-bit major solution programs (HiPhi, Magnum, GamBet,&#8230;) feature true parallel operation. The time-intensive subroutines have been coded in OpenMP, giving significant improvements in speed (see magnum-in-parallel or multicore-gambet). A second feature is the capability to run multiple independent calculations simultaneously. All [...]]]></description>
			<content:encoded><![CDATA[<p>Field Precision programs are optimized for the latest generation of multi-core or multi-processor PCs. The 64-bit major solution programs (<strong>HiPhi</strong>, <strong>Magnum</strong>, <strong>GamBet</strong>,&#8230;) feature true parallel operation. The time-intensive subroutines have been coded in <strong>OpenMP</strong>, giving significant improvements in speed (see <a href="http://fieldp.com/myblog/2009/magnum-in-parallel/" target="_blank">magnum-in-parallel</a> or <a href="http://fieldp.com/myblog/2011/multicore-gambet/" target="_blank">multicore-gambet</a>). A second feature is the capability to run multiple independent calculations simultaneously. All the solution programs can run in the background if launched from a Windows batch file. Background operation is automatic and faster than running in a window. Unfortunately, this capability is often overlooked because of the effort required to create batch files and to keep track of what tasks are running. The problem was brought home to me during a recent consulting project where I needed to make an extended sequence of <strong>Trak</strong> calculations with small changes in geometry. Each step involved re-running three programs. Even though I was well aware of the batch file capability, laziness prevailed and I ran each calculation interactively. My irritation level was not quite high enough to overcome my inertia. We recently added a new feature to our program launchers (<strong>TC</strong>, <strong>AMaze</strong>, <strong>GBLaunch</strong> and <strong>Xenos</strong>) that should tip the balance — the ability to create and to run <em>Tasks</em>. A Task is any sequence of installed programs and input files for a background run. With the feature you can 1) quickly define Tasks in an interactive dialog, 2) launch simultaneous Tasks in the background and 3) find out which tasks are running. I&#8217;ll discuss how it works in this article.</p>
<div class="wp-caption aligncenter" style="width: 388px"><img title="Figure 1. Task control group in the TC program launcher." src="http://www.fieldp.com/myblog/images/createtask01.png" alt="Figure 1. Task control group in the TC program launcher." width="378" height="688" /><p class="wp-caption-text">Figure 1. Task control group in the TC program launcher.</p></div>
<p>Figure 1 shows the new Task control group in the <strong>TC</strong> program launcher. The <em>CREATE TASK</em> button calls up the dialog of Figure 2. The user supplies a file prefix <em>FPREFIX </em>that indicates the function of the Task. The Task information will be stored in a DOS batch file <em>FPREFIX.BAT</em> created in the current <strong>TC</strong> data directory. Commands in the file are compatible with all recent Windows versions including Windows 7.</p>
<div class="wp-caption aligncenter" style="width: 663px"><img title="Figure 2. Create task dialog" src="http://www.fieldp.com/myblog/images/createtask02.png" alt="Figure 2. Create task dialog" width="653" height="480" /><p class="wp-caption-text">Figure 2. Create task dialog</p></div>
<p>Each row represents an operation (batch file command). The first column defines the action. Clicking on a cell brings up a menu that includes all <strong>TriComp </strong>programs capable of background operation that are installed on the user&#8217;s computer. In addition, several relatively safe DOS commands are included (<em>ERASE</em>, <em>COPY</em>, <em>MOVE</em>, <em>RENAME </em>and <em>REM</em>). All commands operate on a file (<em>FILEIN</em>). The DOS commands <em>COPY</em>, <em>MOVE </em>and <em>RENAME </em>require a second file name (<em>FILEOUT</em>). You can type file names in the cells. By default, the files are in the <strong>TC</strong> working directory, but you can include path information if the files are in other directories. Alternatively, you can click in a cell and pick the<em> SELECT FILE</em> command to raise the standard Windows dialog for choosing files anywhere on the computer. There is a nice feature for the <strong>TriComp </strong>programs — only files with appropriate suffixes are displayed (<em>e.g.</em>, <em>*.EIN</em> or <em>*.SCR</em> for <strong>EStat</strong>).</p>
<p>Click the <em>OK</em> button when the sequence is complete to create the batch file. Here is an example:</p>
<pre>REM TriComp batch file, Field Precision
START /B /WAIT C:\fieldp\tricomp\mesh64.exe C:\Temp\convergegun
START /B /WAIT C:\fieldp\tricomp\estat64.exe C:\Temp\convergegun
START /B /WAIT C:\fieldp\tricomp\trak64.exe C:\Temp\convergegun
ERASE *.?ls
START /B /WAIT C:\fieldp\tricomp\notify.exe
IF EXIST Electrode01.ACTIVE ERASE Electrode01.ACTIVE</pre>
<p>The operations listed perform a complete <strong>Trak </strong>calculation in the background and then erase all listing files. Here are some notable features:</p>
<ul>
<li>The operations are performed sequentially because data from one operation may be used in the next. To run calculations in parallel, define and run multiple Tasks.</li>
<li>You can modify the file with an editor if you are familiar with DOS commands.</li>
<li>The DOS commands recognize the standard wildcard conventions (* for any character grouping, ? for any character).</li>
<li>The programs adds the command <em>notify.exe</em> to the task sequence if <em>AUDIO ALARM</em> is checked. In this case, the computer beeps when a task is completed.</li>
<li>The final command to erase a file <em>FPREFIX.ACTIVE</em> is added to all batch files. The presence of an activate file indicates that the task is running.</li>
</ul>
<div class="wp-caption aligncenter" style="width: 328px"><img title="Figure 3. Run task dialog" src="http://www.fieldp.com/myblog/images/createtask03.png" alt="Figure 3. Run task dialog" width="318" height="399" /><p class="wp-caption-text">Figure 3. Run task dialog</p></div>
<p>Click the <em>RUN TASK</em> button when you have created Tasks or moved predefined task files to the data directory. The dialog (Figure 3) organizes tasks into two groups: ones that are available to run and ones that are currently running (<em>i.e.</em>, <em>FPREFIX.ACTIVE</em> has been detected). To launch a task, choose one from the top list and click <em>OK</em>. The program creates a file <em>FPREFIX.ACTIVE</em> and runs the batch file. The program sequence runs silently in the background and the results appear almost magically. In the meantime, you can prepare other inputs or run other tasks.</p>
<p>This year, we&#8217;re concentrating on program features to improve the user experience. We have two goals: 1) increase the computation speed and efficiency and 2) reduce the setup times. Clearly, users should worry less about program details so they can concentrate on physic issues. Our next job is to add macro capabilities to the 2D and 3D postprocessors. With this feature, the programs will remember the steps in a session to create an analysis script.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2012/multitasking-made-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Popup menus in RealBasic</title>
		<link>http://fieldp.com/myblog/2011/popup-menus-in-realbasic/</link>
		<comments>http://fieldp.com/myblog/2011/popup-menus-in-realbasic/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 13:58:10 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Educational]]></category>
		<category><![CDATA[Techniques]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=1224</guid>
		<description><![CDATA[<p>Popup (or contextual) menus appear when you right-click the mouse. They are a part of almost every Windows program. Nonetheless, it took me some effort to find out how to create popup menus in RealBasic with all the features that I needed. The examples supplied by Real Studio were either out-of-date or simplistic. The only other [...]]]></description>
			<content:encoded><![CDATA[<p>Popup (or contextual) menus appear when you right-click the mouse. They are a part of almost every Windows program. Nonetheless, it took me some effort to find out how to create popup menus in <strong>RealBasic </strong>with all the features that I needed. The examples supplied by Real Studio were either out-of-date or simplistic. The only other alternative was the user forum. I find it difficult to get useful information from forum threads, and I wish search engines didn&#8217;t include them. Many of the answers are off-the-point or even totally wrong. Spelling is iffy and grammar is almost non-existent. The layout is often confusing (<em>i.e.,</em> each answer often shows all the previous correspondence), so it&#8217;s difficult to gauge where you are on the path to a solution. Finally, the worst case is when you have to register to see the answer. Registering gets old after the first 1500 sites.</p>
<div class="wp-caption aligncenter" style="width: 610px"><img title="Example of a popup menu in RealBasic" src="http://www.fieldp.com/myblog/images/popup_menu.jpg" alt="Example of a popup menu in RealBasic" width="600" height="335" /><p class="wp-caption-text">Example of a popup menu in RealBasic</p></div>
<p>This article shows how to set up a popup menu using the current routines of <strong>RealBasic</strong>. An important feature is setting the enable status of menu entries. Except in the simplest programs, entries must be disabled depending on the program context to avoid illegal operations (<em>i.e.</em>, save a entity that hasn&#8217;t yet been created).</p>
<p>The example produces the popup menu shown in Fig. 1. Notice that some entries are grayed because rulers do not exist when the program opens. The code listed below is included in the <strong>MouseDown </strong>event of the associated window. Note the comment numbers added to the <em>Append </em>statement documenting the order of entries (separators don&#8217;t count). These indices are used in the code lines that set the enable status. It&#8217;s important to include the test</p>
<pre>if (HitItem &lt;&gt; nil) then
end if</pre>
<p>to avoid an error if the user clicks on a disabled menu entry.</p>
<pre>if IsContextualClick then
// ===============================
// Define menu extries
// ===============================
dim base as new MenuItem
base.Append( new MenuItem( "Create ruler" ) )  '1
base.Append( new MenuItem( "Analyze graph" ) )  '2
base.Append( new MenuItem( "Analyze drawing" ) )  '3
base.Append( new MenuItem( MenuItem.TextSeparator ) )
base.Append( new MenuItem( "Flip ruler" ) )  '4
base.Append( new MenuItem( "Hide/show rulers" ) )  '5
base.Append( new MenuItem( "Close ruler" ) )  '6
base.Append( new MenuItem( "Save ruler" ) )  '7
base.Append( new MenuItem( "Load ruler" ) )  '8
base.Append( new MenuItem( MenuItem.TextSeparator ) )
base.Append( new MenuItem( "Instruction manual" ) )  '9
base.Append( new MenuItem( "About FP UniScale" ) )  '10
base.Append( new MenuItem( MenuItem.TextSeparator ) )
base.Append( new MenuItem( "Exit program" ) )  '11

// ===============================
// Set the enabled status
// ===============================
if (RulersHidden) then
base.item(4).enabled = False   'Flip ruler
base.item(5).enabled = True    'Hide/show rulers
base.item(6).enabled = False   'Close ruler
base.item(7).enabled = False   'Save ruler
base.item(8).enabled = False   'Load ruler
else
// Ruler1 closed, Ruler2 closed
if ((not RulerOpen1) and (not RulerOpen2)) then
base.item(4).enabled = False  'Flip ruler
base.item(5).enabled = False  'Hide/show rulers
base.item(6).enabled = False  'Close ruler
base.item(7).enabled = False  'Save ruler
base.item(8).enabled = True   'Load ruler
// Ruler1 open, Ruler2 closed
elseif (RulerOpen1 and (not RulerOpen2)) then
base.item(4).enabled = True   'Flip ruler
base.item(5).enabled = True   'Hide/show rulers
base.item(6).enabled = True   'Close ruler
base.item(7).enabled = True   'Save ruler
base.item(8).enabled = True   'Load ruler

// Ruler1 closed, Ruler2 open
elseif ((not RulerOpen1) and RulerOpen2) then
base.item(4).enabled = True   'Flip ruler
base.item(5).enabled = True   'Hide/show rulers
base.item(6).enabled = True   'Close ruler
base.item(7).enabled = True   'Save ruler
base.item(8).enabled = True   'Load ruler
// Ruler1 open, Ruler2 open
else
base.item(4).enabled = True   'Flip ruler
base.item(5).enabled = True   'Hide/show rulers
base.item(6).enabled = True   'Close ruler
base.item(7).enabled = True   'Save ruler
base.item(8).enabled = False  'Load ruler
end if
end if

// ===============================
// Carry out actions
// ===============================
dim hitItem as MenuItem
hitItem = base.PopUp
if (HitItem &lt;&gt; nil) then
select case (HitItem.Text)
case("Analyze graph")
// Action code
case("Analyze drawing")
// Action code
case("Create ruler")
// Action code
case ("Flip ruler")
// Action code
case ("Load ruler")
// Action code
case ("Save ruler")
// Action code
case ("Close ruler")
// Action code
case("Instruction manual")
// Action code
case("About FP UniScale")
// Action code
case("Exit program")
// Action code
end select
end if
return true
end if</pre>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2011/popup-menus-in-realbasic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Measure anything on your computer screen</title>
		<link>http://fieldp.com/myblog/2011/measure-anything-on-your-computer-screen/</link>
		<comments>http://fieldp.com/myblog/2011/measure-anything-on-your-computer-screen/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 17:30:37 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Educational]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Techniques]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=1200</guid>
		<description><![CDATA[<p>One of my all-time treasured possessions is a Gerber Variable Scale [1] (Fig. 1). It was an absolute must-have if you were doing science in the 60s and 70s. The idea was straightforward — the device was a ruler consisting of a precision spring that you could adjust to any length to match graphs or oscillographs [2]. [...]]]></description>
			<content:encoded><![CDATA[<p>One of my all-time treasured possessions is a Gerber Variable Scale [1] (Fig. 1). It was an absolute must-have if you were doing science in the 60s and 70s. The idea was straightforward — the device was a ruler consisting of a precision spring that you could adjust to any length to match graphs or oscillographs [2]. Simple but remarkably useful!</p>
<div class="wp-caption aligncenter" style="width: 610px"><img class=" " title="Figure 1. The Gerber Variable Scale (circa 1970)" src="http://www.fieldp.com/myblog/images/gerber_scale_s.jpg" alt="Figure 1. The Gerber Variable Scale (circa 1970)" width="600" height="226" /><p class="wp-caption-text">Figure 1. The Gerber Variable Scale (circa 1970)</p></div>
<p>Nowadays, practically everything I measure is on a computer screen. For this application, it&#8217;s almost impossible to use my old Gerber scale, although I have tried many times. For a couple decades, my dream has been to make something I could use on the computer that would be as useful and (hopefully) as simple. I tried several freeware screen rulers, but the results were disappointing. They were designed to measure <em>literal </em>distances on the computer screen (in pixels, mm, &#8230;) rather than the lengths of objects <em>displayed </em>on the screen. The situation was analogous to having a ruler that could measure the size of a sheet of paper, but not the dimensions of data  printed on the paper.</p>
<p>I am happy to announce that I have just completed my vision of the ideal screen measurement system, the Field Precision <strong>Universal Scale</strong>. With it, you can create custom rulers calibrated to graphical objects displayed on your computer screen by any program. The <strong>Universal Scale</strong> has other analysis features that extend well beyond simple rulers. The program is available for free download as a service of Field Precision to the science and engineering communities. The official release date is January 1, 2012. You can get a beta copy now at <a href="http://www.fieldp.com/fpuniscale.html" target="_blank">http://www.fieldp.com/fpuniscale.html</a>.</p>
<div class="wp-caption aligncenter" style="width: 610px"><img title="Figure 2. Universal Scale main window and sample ruler." src="http://www.fieldp.com/myblog/images/main_window_ruler.png" alt="Figure 2. Universal Scale main window and sample ruler." width="600" height="316" /><p class="wp-caption-text">Figure 2. Universal Scale main window and sample ruler.</p></div>
<p>Figure 2 shows the main window with a ruler displayed. Note that the program comes in a nice leather case. The push buttons on the left call up the three main functions:</p>
<ul>
<li>Create custom rulers that may be moved around the screen over other applications.</li>
<li>Measure points and digitize curves of graphs in publications and reports.</li>
<li>Measure dimensions on drawings and diagrams in documents.</li>
</ul>
<p>Figure 3 shows a screenshot of a drawing analysis. In the remainder of this article, I&#8217;ll describe some interesting features of the program.</p>
<div class="wp-caption aligncenter" style="width: 610px"><img title="Figure 3. Set up to analyze dimensions of a diagram in a publication." src="http://www.fieldp.com/myblog/images/measure_drawing.png" alt="Figure 3. Set up to analyze dimensions of a diagram in a publication." width="600" height="290" /><p class="wp-caption-text">Figure 3. Set up to analyze dimensions of a diagram in a publication.</p></div>
<ul>
<li>My Gerber Variable Scale may lie in a drawer for months between uses. When I take it out, I never have doubts about how it works. I tried to maintain the same user-friendliness in the <strong>Universal Scale</strong>. The challenge is that the program does a lot more than slide back-and-forth. I limited the program to few well-defined functions with minimal bells-and-whistles. Contextual instructions are displayed at each step, so it&#8217;s not necessary for users to memorize procedures.</li>
<li>Measurements with physical devices used to be fun in the old days, so I gave the program a retro look.</li>
<li>Calibration sheets are the key to program operation. They are translucent windows that act like tracing paper that can be moved over any displayed graphical material on the computer screen. Mouse clicks in the measurement sheet are used to calibrate rulers, graphs and drawings and to measure points.</li>
<li>I applied my experience with normal coordinates in finite-element analysis to measurements on graphs. The program uses a generalized trapezoid coordinate system. This means that you can obtain good measurements from badly-scanned graphs (rotations, distortions,&#8230;).</li>
</ul>
<p><strong>Footnotes</strong></p>
<p>[1] Unfortunately, it appears that the Gerber Variable Scale is no longer available for purchase. As a matter of historical interest, here is a link to the original manual: <a href="http://www.fieldp.com/myblog/examples/GerberVariableScale.pdf" target="_self">GerberVariableScale.pdf</a>.</p>
<p>[2] Oscillographs were Polaroid photographs of oscilloscope traces, the only way to record fast transient data before digitizers.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2011/measure-anything-on-your-computer-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Website introduction video</title>
		<link>http://fieldp.com/myblog/2011/website-introduction-video/</link>
		<comments>http://fieldp.com/myblog/2011/website-introduction-video/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 15:32:03 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Educational]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[NewFeatures]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=1196</guid>
		<description><![CDATA[<p>We&#8217;ve added a lot of content to our website at www.fieldp.com in 13 years. In fact, there&#8217;s so much material that the site might intimidating to first-time visitors looking for software or educational resources. To help, we&#8217;ve added a short overview video on the home page. Here it [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve added a lot of content to our website at www.fieldp.com in 13 years. In fact, there&#8217;s so much material that the site might intimidating to first-time visitors looking for software or educational resources. To help, we&#8217;ve added a short overview video on the home page. Here it is:</p>
<p><!-- copy and paste. Modify height and width if desired. --> <object id="scPlayer" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="498" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://content.screencast.com/users/Field_Precision_LLC/folders/Default/media/e265c5e2-5bdb-4ec0-ba3c-76c49d23c2be/company_profile_choosing_controller.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="containerwidth=640&amp;containerheight=498&amp;showstartscreen=true&amp;showendscreen=true&amp;loop=false&amp;autostart=false&amp;color=000000,000000&amp;thumbscale=45&amp;content=http://content.screencast.com/users/Field_Precision_LLC/folders/Default/media/e265c5e2-5bdb-4ec0-ba3c-76c49d23c2be/Company_Profile_Choosing.mp4&amp;blurover=false" /><param name="allowFullScreen" value="true" /><param name="scale" value="showall" /><param name="allowScriptAccess" value="always" /><param name="base" value="http://content.screencast.com/users/Field_Precision_LLC/folders/Default/media/e265c5e2-5bdb-4ec0-ba3c-76c49d23c2be/" /><param name="src" value="http://content.screencast.com/users/Field_Precision_LLC/folders/Default/media/e265c5e2-5bdb-4ec0-ba3c-76c49d23c2be/company_profile_choosing_controller.swf" /><embed id="scPlayer" type="application/x-shockwave-flash" width="640" height="498" src="http://content.screencast.com/users/Field_Precision_LLC/folders/Default/media/e265c5e2-5bdb-4ec0-ba3c-76c49d23c2be/company_profile_choosing_controller.swf" base="http://content.screencast.com/users/Field_Precision_LLC/folders/Default/media/e265c5e2-5bdb-4ec0-ba3c-76c49d23c2be/" allowscriptaccess="always" scale="showall" allowfullscreen="true" flashvars="containerwidth=640&amp;containerheight=498&amp;showstartscreen=true&amp;showendscreen=true&amp;loop=false&amp;autostart=false&amp;color=000000,000000&amp;thumbscale=45&amp;content=http://content.screencast.com/users/Field_Precision_LLC/folders/Default/media/e265c5e2-5bdb-4ec0-ba3c-76c49d23c2be/Company_Profile_Choosing.mp4&amp;blurover=false" bgcolor="#FFFFFF" quality="high" data="http://content.screencast.com/users/Field_Precision_LLC/folders/Default/media/e265c5e2-5bdb-4ec0-ba3c-76c49d23c2be/company_profile_choosing_controller.swf"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2011/website-introduction-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://content.screencast.com/users/Field_Precision_LLC/folders/Default/media/e265c5e2-5bdb-4ec0-ba3c-76c49d23c2be/Company_Profile_Choosing.mp4&amp;amp" length="14288650" type="video/mp4" />
		</item>
		<item>
		<title>Particle flux plots in Gendist</title>
		<link>http://fieldp.com/myblog/2011/particle-flux-plots-in-gendist/</link>
		<comments>http://fieldp.com/myblog/2011/particle-flux-plots-in-gendist/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 13:55:09 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[NewFeatures]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=1188</guid>
		<description><![CDATA[<p>A recent consulting project involved Xenos simulations of an intense, non-circular electron beam striking a graphite beam stop. A phosphor plate on the downstream face of the target was used as a diagnostic. The researchers wanted to know how the shape of the phosphor response correlated with the shape of the beam. One option was to [...]]]></description>
			<content:encoded><![CDATA[<p>A recent consulting project involved <strong>Xenos </strong>simulations of an intense, non-circular electron beam striking a graphite beam stop. A phosphor plate on the downstream face of the target was used as a diagnostic. The researchers wanted to know how the shape of the phosphor response correlated with the shape of the beam. One option was to add the phosphor plate as a region in a <strong>GamBet </strong>simulation and then to plot dose distribution as a slice plot in <strong>GBView3</strong>.</p>
<p>For the design of other diagnostics, the researchers wanted the spatial distribution of the X-ray flux emitted from the target. Such plots could be created using the <strong>GenDist </strong>utility program from information in the <strong>GamBet </strong>escape file. The escape file is a record of parameters for all particles leaving the solution volume. <strong>GenDist </strong>is a general-purpose program to create and to analyze large distributions of particles (<em>e.g.</em>, electrons, ions, photons, positrons). For the application, the procedure was to load the escape file into <strong>GenDist </strong>and then to add filters that admit only photons at the exit face (<em>i.e.</em>, <em>z</em> coordinate great than or equal to the exit face position). Of the <strong>GenDist </strong>plot types, the 2D histogram was appropriate for the application. Here, particles are assigned to a 2D matrix of bins according to their position in the <em>x</em>-<em>y</em> plane. The probability function <em>N</em>(<em>x</em>,<em>y</em>) may be weighted by the model particle current, energy or combined current/energy. In this way, the program can generate spatial distributions of the following quantities:</p>
<ul>
<li>Model particle density.</li>
<li>Particle flux (weighted by model-particle current or flux).</li>
<li>Power flux (weighted by model-particle current and kinetic energy).</li>
</ul>
<p>The previous version of <strong>GenDist </strong>had only one available style for 2D histograms —  a projected 3D view showing <em>N</em>(<em>x</em>,<em>y</em>) as height above the <em>x</em>-<em>y</em> plane. Although the style gave attractive plots for presentations, it was not useful for quantitative work. We added the three new styles shown in the figure for better display of spatial particle distributions:</p>
<ul>
<li>The existing 3D bin height plot improved with color coding.</li>
<li>A 3D plot with bin height displayed as an interpolated shape.</li>
<li>A 2D contour line plot, showing surfaces of equal probability density.</li>
<li>A 2D filled contour plot.</li>
</ul>
<ul>
<li><img title="Plot styles for the 2D histogram type in GenDist" src="http://www.fieldp.com/myblog/images/gendistplot.png" alt="Plot styles for the 2D histogram type in GenDist" width="600" height="1811" /></li>
</ul>
<div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter" style="width: 610px;">
<dd class="wp-caption-dd">Plot styles for the 2D histogram type in GenDist</dd>
</dl>
</div>
<p>b) 3D plot with bin height display as an interpolated shape.<br />
3) 2D contour line plot, showing surfaces of equal probability density.<br />
4) 2D filled contour plot.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2011/particle-flux-plots-in-gendist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

