<?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 &#187; Fixes</title>
	<atom:link href="http://fieldp.com/myblog/category/fixes/feed/" rel="self" type="application/rss+xml" />
	<link>http://fieldp.com/myblog</link>
	<description>Effective finite-element modeling of electromagnetic fields</description>
	<lastBuildDate>Thu, 05 Jan 2012 15:24:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Updating old TriComp input files</title>
		<link>http://fieldp.com/myblog/2010/updating-old-tricomp-input-files/</link>
		<comments>http://fieldp.com/myblog/2010/updating-old-tricomp-input-files/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 13:44:28 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Fixes]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=777</guid>
		<description><![CDATA[<p>Although our programs include modern interactive dialogs for solution setups, we use the time-honored method of text scripts for program control. The function of the input dialogs is to create the scripts. As we have mentioned in the past, there are several reasons for this approach:</p>

You can directly edit the files to make small changes.
Scripts may [...]]]></description>
			<content:encoded><![CDATA[<p>Although our programs include modern interactive dialogs for solution setups, we use the time-honored method of text scripts for program control. The function of the input dialogs is to create the scripts. As we have mentioned in the past, there are several reasons for this approach:</p>
<ul>
<li>You can directly edit the files to make small changes.</li>
<li>Scripts may be modified by control programs (<em>e.g.</em>, Perl, Python,&#8230;) to set up control loops for complex runs.</li>
<li>It is easy to exchange setups with colleagues.</li>
<li>The scripts provide an archive of your work — old solutions may be reconstructed quickly.</li>
</ul>
<p>Regarding the last item, we have made an effort to maintain format consistency over program versions. One exception is a change that occurred several years ago between Version 5.0 and 6.0 of the <strong>TriComp</strong> programs <strong>EMP</strong>, <strong>EStat</strong>, <strong>Nelson</strong>, <strong>PerMag</strong>, <strong>Pulse</strong>, <strong>RFE2</strong>, <strong>TDiff </strong>and <strong>WaveSim</strong>. The old scripts had commands of the form</p>
<pre>SET QuantName = Value
REGION(RegNo) QuantName = Value</pre>
<p>All commands either began with <em>SET </em>(define a program parameter) or <em>REGION </em>(define a physical characteristic of the solution volume region). This form was redundant and inconsistent with the <strong>AMaze</strong> script format. The new form introduced in Version 6.0 is</p>
<pre>QuantName = Value
QuantName(RegNo) = Value</pre>
<p>Version 6.0 programs could read both forms. We eliminated the old commands in Version 7.0 to simplify the codes and to make it more efficient to introduce new command forms. At the same time, we created a utility so that code users can update an entire directory of input scripts automatically. The operation of <strong>format_correct</strong> is simple:</p>
<ul>
<li>Use the <em>Set working directory</em> button to navigate to the folder than contains the input scripts.</li>
<li>Click on the <em>Select input file</em> button and specify a file with one of the standard <strong>TriComp </strong>suffixes (<em>*.EIN, *.RIN, *.NIN, *.PIN, *.TIN , *.WIN</em>). The program automatically corrects all files in the directory with the same suffix.</li>
</ul>
<div class="wp-caption aligncenter" style="width: 349px"><img title="Format correct utility" src="http://www.fieldp.com/myblog/images/format_correct.png" alt="Format correct utility" width="339" height="117" /><p class="wp-caption-text">Format correct utility</p></div>
<p>Note that <strong>format_correct</strong> does any make changes to input files in the new format, so you can use it in a folder with a mixture of input types. Use this link to download the program: <a href="http://www.fieldp.com/myblog/examples/format_correct.exe" target="_self"><strong>format_correct</strong></a>.</p>
<p>We introduced two other utilities in previous articles:</p>
<ol>
<li>Check how much memory is available in your computer to allocate to a single task. This was an issue in 32 bit bit Windows, particularly XP. Download <a href="http://www.fieldp.com/myblog/examples/memtest32.exe" target="_self"><strong>memtest32</strong></a> (for 32-bit operating systems). Download <a href="http://www.fieldp.com/myblog/examples/memtest64.exe" target="_self"><strong>memtest64</strong></a> (for 64-bit operating systems).</li>
<li>Check the efficiency of parallel programs on your computer. Download <a href="http://www.fieldp.com/myblog/examples/openmptest.exe" target="_self"><strong>openmptest </strong></a>(for 64-bit operating systems)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2010/updating-old-tricomp-input-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem STL files</title>
		<link>http://fieldp.com/myblog/2009/problem-stl-files/</link>
		<comments>http://fieldp.com/myblog/2009/problem-stl-files/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 02:37:00 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Educational]]></category>
		<category><![CDATA[Fixes]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=354</guid>
		<description><![CDATA[<p>In building three-dimensional finite-element solutions, the eternal hope is the faultless transfer of geometric information from CAD programs. In this scenario, mesh generation is a leisurely activity, simply a matter of clicking a few commands. Unfortunately, reality often intrudes. We live in a world where people can&#8217;t even make a universal phone charger, let alone a [...]]]></description>
			<content:encoded><![CDATA[<p>In building three-dimensional finite-element solutions, the eternal hope is the faultless transfer of geometric information from CAD programs. In this scenario, mesh generation is a leisurely activity, simply a matter of clicking a few commands. Unfortunately, reality often intrudes. We live in a world where people can&#8217;t even make a universal phone charger, let alone a consistent 3D standard.</p>
<p>The STL capabilities of <a href="http://www.fieldp.com/metamesh.html" target="_blank"><strong>MetaMesh </strong></a>(for importing parts from <strong>SolidWorks</strong>, <strong>ProE</strong>,&#8230;.) are quite reliable as long as the input files are valid. The nodes and sides of triangular facets must be logically connected and cover a contiguous three-dimensional surface. It&#8217;s important to realize that CAD programs don&#8217;t always generate valid STL output.</p>
<p>As an example, in a recent consulting project I received a faulty STL file as a part of a large assembly. Several hours evaporated while I narrowed down the cause of mesh distortions. Ironically, the part in question was simple: a cylindrical cathode with a cylindrical concavity in the emission surface (first figure below). The problem is apparent in a wireframe view of the cathode near the emission surface (second figure). The object was not originally constructed as a single part in the CAD program. Instead, a dished cap was added to a cylinder in a manner that did not preserve the logical continuity of facets. In fact, the cap doesn&#8217;t even fit correctly. Such a combination should not be represented in a single STL file. Usually <strong>MetaMesh </strong>will soldier through and create something acceptable, even with a corrupt file. In this application, the cathode surface was adjacent to a thin gap separating it from a focus electrode. Perfect fitting was essential. The obvious way to resolve the issue would be to ask the mechanical engineer to regenerate the STL file. Unfortunately, the design had evolved from multiple levels of multiple organizations through multiple CAD programs.  It would have taken a historian to find the original designer.</p>
<p>The time had arrived to stop pushing buttons and attack the problem the old fashioned way. An inspection of standard mechanical drawings of the part showed that it could be constructed from native <strong>MetaMesh </strong>solid models. I started with a cylinder and then machined the emission surface using an extrusion with a cylindrical side and the physical properties of vacuum. Fabricating the part did involve some work:</p>
<ol>
<li>I had to do some trigonometry to find the vector outline of the extrusion.</li>
<li>I had to do some head-scratching and sketching to figure how to rotate the extrusion into position.</li>
<li>I had to think about the order for adding parts and the fitting specifications so that the trimming extrusion did not affect the focus electrode. (Note that the focus electrode was successfully represented by an STL model).</li>
</ol>
<p>Although building the cathode from basic parts was harder, it certainly was quicker. It took less than half an hour to build the part from scratch. I cite this episode in support of some anachronistic views about computer simulations:</p>
<ol>
<li>It&#8217;s often better to sit in a quiet place with a paper and pencil that to pound on the computer.</li>
<li>A simple approach is usually better than a sophisticated approach.</li>
<li>The best way to waste time is to let the computer do all the thinking.</li>
</ol>
<p>One lesson from the experience is that you should check the STL models when mesh generation problems occur. We have added a new <a href="http://fieldp.com/myblog/2009/3d-stl-view-utility-for-geometer/" target="_blank">STL viewer</a> to <strong>Geometer </strong>to help in this process.</p>
<p>For reference, here&#8217;s the full <strong>MetaMesh </strong>specification that I created for the cathode:</p>
<pre>PART
* Make the cylinder
Region: CATHODE
Name: Cathode
Type: Cylinder
Fab: 3.1600 0.6000
Shift: 0.0000 0.0000 -23.4500
Surface Region Vacuum
END

PART
* Machine the surface
Region: EmitDef
Name: SurfaceShape
Type: Extrusion
L    3.1600  -23.0000  3.1600  -23.3000
A    3.1600  -23.3000  0.0000  -23.6607   0.0000   -9.6387  S
A    0.0000  -23.6607 -3.1600  -23.3000   0.0000   -9.6387  S
L   -3.1600  -23.3000 -3.1600  -23.0000
L   -3.1600  -23.0000  3.1600  -23.0000
End
Fab: 6.50
Rotate: 90.000  0.000  0.000
Surface Region Cathode
Coat Cathode Emit
END</pre>
<p><img class="alignnone" title="Solid view of cathode assembly" src="http://www.fieldp.com/myblog/images/badstl01.png" alt="" width="368" height="341" /></p>
<p><img class="alignnone" title="Wireframe view of the area near the emission surface" src="http://www.fieldp.com/myblog/images/badstl02.png" alt="" width="395" height="322" /></p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2009/problem-stl-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Electron backscatter at low incident energy</title>
		<link>http://fieldp.com/myblog/2009/electron-backscatter-at-low-incident-energy/</link>
		<comments>http://fieldp.com/myblog/2009/electron-backscatter-at-low-incident-energy/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 23:37:01 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Fixes]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=226</guid>
		<description><![CDATA[<p>Electron backscatter in an important process in models of high-voltage X-ray sources and collectors for high-power microwave tubes. A GamBet user reported observing backscatter ratios below the expected values. He had made two changes in our standard example of electron backscatter from a gold foil:</p>

Reduction of the incident electron energy by an order of magnitude.
Initiation of [...]]]></description>
			<content:encoded><![CDATA[<p>Electron backscatter in an important process in models of high-voltage X-ray sources and collectors for high-power microwave tubes. A <strong>GamBet</strong> user reported observing backscatter ratios below the expected values. He had made two changes in our standard example of electron backscatter from a gold foil:</p>
<ul>
<li>Reduction of the incident electron energy by an order of magnitude.</li>
<li>Initiation of electron trajectories outside the material in an adjacent  void.</li>
</ul>
<p>The original example was set up energies in the range ?1 MeV. At 0.1 MeV, the user observed reported a backscatter ratio of 0.32 instead of the experimental value of 0.51.</p>
<p>The figure illustrates the source of the problem. At 0.1 MeV, the penetration depth for electrons in gold is less than 10 ?m. The particle in the <em>Void</em> region moves in virtual interaction steps determined by the parameter <em>DsMax</em>. If the particle crosses a material boundary in a step, <strong>GamBet </strong>interpolates the particle position to the entrance boundary and then makes a small adjustment (<em>DElemG</em>) to ensure that the particle is inside the material. In the past, <strong>GamBet </strong>set <em>DElemG </em>equal to a small fraction of the <em>average </em>element size. A problem could occur if the scale length of the solution volume was much larger than that of the interaction region. In this case, particles could be placed a significant depth inside the material, reducing the backscatter ratio.</p>
<p>We modified <strong>GamBet </strong>to alleviate the issue. The program now calculates <em>DElemG</em> by determining the <em>minimum </em>element size and then reducing it by a larger factor. Users should encounter no problems as long as the element width at the surface is inordinately large (<em>i.e.</em>, &gt;50 times the interaction depth).</p>
<p><img class="alignnone" title="Particle entering a material boundary in GamBet" src="http://www.fieldp.com/myblog/images/backscatter.png" alt="" width="400" height="400" /></p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2009/electron-backscatter-at-low-incident-energy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Electromagnetic busywork</title>
		<link>http://fieldp.com/myblog/2008/electromagnetic-busywork/</link>
		<comments>http://fieldp.com/myblog/2008/electromagnetic-busywork/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 12:29:21 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Fixes]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/2008/electromagnetic-busywork/</guid>
		<description><![CDATA[<p>As we move forward with Aether (our 3D electromagnetic program), we are simultaneously improving the 2D codes EMP and WaveSim. There are two reasons: 1) we are creating benchmark examples of increasing complexity to test the new code and 2) the 2D programs will be combined with Aether in the new Advanced Electromagnetic Design Suite. This [...]]]></description>
			<content:encoded><![CDATA[<p>As we move forward with <strong>Aether </strong>(our 3D electromagnetic program), we are simultaneously improving the 2D codes <strong>EMP </strong>and <strong>WaveSim</strong>. There are two reasons: 1) we are creating benchmark examples of increasing complexity to test the new code and 2) the 2D programs will be combined with <strong>Aether </strong>in the new <strong>Advanced Electromagnetic Design Suite</strong>. This package will address the full range of E&amp;M simulations (microwave networks, electromagnetic compatibility, pulsed-power devices,&#8230;).</p>
<p>At present, we are using <strong>EMP </strong>to test electromagnetic pulse capabilities of <strong>Aether</strong>. The command language of <strong>EMP 6.5 </strong>will be modified to reduce user effort and the possibility of errors. The command set will include single statements to set the properties of common material types. For example, the statement to set Region 5 as a perfectly-conducting metal is:</p>
<pre>
Metal(5)</pre>
<p>In response, the code sets values of relative dielectric constant and magnetic permeability to give very low characteristic impedance while maintaining the speed of light. Similarly, the following commands set a region as an ideal absorbing layer:</p>
<pre>
AbsLayer(6) 0.025

AbsLayer(3) 0.10 2.7 1.0</pre>
<p>The first parameter is the thickness of the layer in the current units. The code calculates and sets the required electrical conductivity. The second form includes optional parameters to set relative dielectric constant or magnetic permeability if the layer is adjacent to a non-vacuum medium. We are also creating new tutorials and reorganizing the instruction manual to make it easier to learn the code and to find information.</p>
<p>There are two ways to set the spatial variation of currents to drive electromagnetic pulses in <strong>Aether</strong>:</p>
<ul>
<li>Define shaped regions and assign components of current density [<em>Jx,Jy,Jz</em>] from mathematical functions.</li>
<li>Create filamentary coils of any shape with <strong>MagWinder</strong>.</li>
</ul>
<p>In both cases, you can apply modulation functions to set the time-dependence of up to 10 independent sources. The interactive, graphical <strong>MagWinder</strong> program was developed to fabricate coils for <strong>Magnum</strong>. We anticipate several improvements as we progress with <strong>Aether</strong>. To date, we have added a new command to set the working directory for coil building and have corrected errors in the <code>ROD </code>model.</p>
<p>Use these links if you want more information about <strong>EMP </strong>or <strong>WaveSim</strong>:<br />
<a href="http://www.fieldp.com/emp.html" target="_blank">http://www.fieldp.com/emp.html</a><br />
<a href="http://www.fieldp.com/wavesim.html" target="_blank">http://www.fieldp.com/wavesim.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2008/electromagnetic-busywork/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FTabTool update</title>
		<link>http://fieldp.com/myblog/2008/ftabtool-update/</link>
		<comments>http://fieldp.com/myblog/2008/ftabtool-update/#comments</comments>
		<pubDate>Sat, 05 Apr 2008 00:38:54 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
				<category><![CDATA[Fixes]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=10</guid>
		<description><![CDATA[<p>The OmniTrak code for charged particle dynamics can import information on electric and magnetic fields directly from solutions created by our codes HiPhi and Magnum or from field maps. A field map is a text file with a simple and well-documented format that gives values of (Ex,Ey,Ez) or (Bx,By,Bz) on a uniform Cartesian mesh. The field [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>OmniTrak </strong>code for charged particle dynamics can import information on electric and magnetic fields directly from solutions created by our codes <strong>HiPhi </strong>and <strong>Magnum </strong>or from <em>field maps</em>. A field map is a text file with a simple and well-documented format that gives values of (<em>Ex,Ey,Ez</em>) or (<em>Bx,By,Bz</em>) on a uniform Cartesian mesh. The field map option makes it relatively easy to incorporate information generated by other field-solution software.</p>
<p>We supply the utility <strong>FTabTool </strong>(Field Table Tool) with <strong>OmniTrak</strong>. You can use the program to manipulate field tables (scaling, superposition, &#8230;) or to create tables of field values from mathematical functions. This week we made a general overhaul of <strong>FTabTool</strong>, correcting several bugs. We also standardized the format for writing tables (E13.5) and added the capability to add coordinate translations.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2008/ftabtool-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

