<?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/"
	>

<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>
	<pubDate>Tue, 16 Feb 2010 23:47:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bulletproof 3D CAD import</title>
		<link>http://fieldp.com/myblog/2010/bulletproof-3d-cad-import/</link>
		<comments>http://fieldp.com/myblog/2010/bulletproof-3d-cad-import/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 23:40:15 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
		
		<category><![CDATA[NewFeatures]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=497</guid>
		<description><![CDATA[<p>From a cross-section of recent setups submitted by users, it&#8217;s clear that data import from programs like SolidWorks is absolutely necessary for a practical 3D mesh generator. We&#8217;ve been adding such  capabilities to MetaMesh for several years. The method for the analysis of STL objects in MetaMesh 2.5 was well-received by users. Nonetheless, occasionally [...]]]></description>
			<content:encoded><![CDATA[<p>From a cross-section of recent setups submitted by users, it&#8217;s clear that data import from programs like <strong>SolidWorks </strong>is absolutely necessary for a practical 3D mesh generator. We&#8217;ve been adding such  capabilities to <strong>MetaMesh </strong>for several years. The method for the analysis of STL objects in <strong>MetaMesh</strong> 2.5 was well-received by users. Nonetheless, occasionally I received examples from users that defeated the routines. The first picture shows one case. The old algorithm (based on the identification of comparison facets by proximity) was slow and was challenged when there were highly acute triangles near sharp edges. For these reasons, my advice to potential users was cautious: use STL objects sparingly for complex shapes and use native <strong>MetaMesh </strong>solids whenever possible.</p>
<p>In <strong>MetaMesh </strong>3.0 (released today) we revamped the STL routines and did an extensive efficiency analysis. Furthermore, we parallelized the import process in the 64-bit program. There are two results:</p>
<ul>
<li>A speed increase by up to a factor of 5.</li>
<li>High reliability for any valid STL object (<em>i.e.</em>, no holes), independent of the shape of the facets.</li>
</ul>
<p>The second figure shows the problematic user example, resolved quickly and successfully by <strong>MetaMesh</strong> 3.0. I believe that we now have the fastest, most reliable and simplest method for importing 3D CAD information of any finite-element system. Equally important, the process has  a high level of user transparency. Accordingly, my official advice to potential users has changed: if you want to transfer an entire assembly from <strong>SolidWorks</strong>, go right ahead.</p>
<p>I thought I would take an opportunity to explain why we picked STL files as the transfer medium. Semi-proprietary formats like IGES and STEP are verbose, laden with far more information than required for electromagnetic field solutions. Furthermore, these formats are complex and malleable, with the potential introduction of proprietary features. Direct interaction with the API of the CAD programs has its own drawbacks. Creation of the interface involves extensive labor for each CAD program, contributing to higher costs for the finite-element program. A version change by one CAD vendor necessitates additional work and an update of the client program. Most important, with a direct API connection the mesh conversion process is hidden from the FE program user. Although conversions may proceed smoothly for certain classes of solutions, the crash of a closed process for solutions outside the envelope leaves no recourse for repairs.</p>
<p>STL (stereo lithography) files form the basis of the 3D printing industry. An STL file consists simply of list of triangular facets. The facets define the surface of an object of any level of complexity. Each file represents an individual part of an assembly. STL files offer several advantages for 3D data transfer:</p>
<ul>
<li>The format is simple and immutable. Because the format is critical for an extensive base of expensive 3D printers, CAD vendors can not introduce modifications or proprietary features.</li>
<li>Information exchange is highly efficient because the files carry essential geometrical information and nothing else.</li>
<li>The importance of the 3D printing industry ensures that all 3D CAD programs include an STL export capability.</li>
<li>A variety of third-party software is available for viewing, transforming and correcting STL objects.</li>
</ul>
<p>The STL format is a perfect fit to <strong>MetaMesh</strong>. The mesh generation process involves fabrication of a 3D assembly from a summation of solid parts. The program requires only shape information. All physical data is introduced in the subsequent finite-element solution programs.</p>
<p>Generation of STL files from a CAD program like <strong>SolidWorks </strong>is straightforward. Export from the <em>Assembly </em>space gives absolute facet coordinates that define the position and orientation of multiple parts, with a separate file for each part. Graphical preview features allow the user to control the quality of the surface representation. Unnecessary details that do not play a role in the electromagnetic solution and even entire parts may be suppressed. The resulting STL objects may then be inserted in the mesh space in <strong>Geometer</strong>.</p>
<p>The <strong>Geometer</strong>/<strong>MetaMesh </strong>system has capabilities that extend beyond the literal import of a CAD assembly:</p>
<ul>
<li><strong>Geometer </strong>includes tools to introduce reflections, translations and stretching directly into STL files. In addition, the program includes a full-featured STL viewer with three-dimensional and precision projection displays.</li>
<li>STL objects may be combined with native fundamental solids defined by parametric models.</li>
<li>Users can introduce shifts and rotations of individual STL parts to perform perturbation analyses without the need to regenerate the CAD model.</li>
<li><strong>MetaMesh </strong>script directives enable global translations and rotations of entire STL assemblies.</li>
</ul>
<p>If you have <strong>MetaMesh </strong>3.0, here are links to input files for the benchmark test in the figures:</p>
<p><a href="http://www.fieldp.com/myblog/examples/new_stl_method.min" target="_self">new_stl_method.min</a></p>
<p><a href="http://www.fieldp.com/myblog/examples/new_stl_method.stl">new_stl_method.stl</a></p>
<div class="wp-caption aligncenter" style="width: 369px"><img title="Facet display of typical STL object (Geometer STL Viewer)" src="http://www.fieldp.com/myblog/images/new_method_geometer.png" alt="Facet display of typical STL object (Geometer STL Viewer)" width="359" height="410" /><p class="wp-caption-text">Facet display of typical STL object (Geometer STL Viewer)</p></div>
<div class="wp-caption aligncenter" style="width: 460px"><img title="STL object resolved in MetaMesh " src="http://www.fieldp.com/myblog/images/new_method_metamesh.png" alt="STL object resolved in MetaMesh " width="450" height="363" /><p class="wp-caption-text">STL object resolved in MetaMesh </p></div>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2010/bulletproof-3d-cad-import/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Working on multiple computers</title>
		<link>http://fieldp.com/myblog/2010/working-on-multiple-computers/</link>
		<comments>http://fieldp.com/myblog/2010/working-on-multiple-computers/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 16:24:39 +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=490</guid>
		<description><![CDATA[<p>Backup and synchronization are inevitable problems when you work on more than one computer. There are two issues: 1) backing up work you have just performed and 2) transferring files to another computer without accidentally over-writing newer versions. The problem is of particular concern for me as a software developer working in a variety of [...]]]></description>
			<content:encoded><![CDATA[<p>Backup and synchronization are inevitable problems when you work on more than one computer. There are two issues: 1) backing up work you have just performed and 2) transferring files to another computer without accidentally over-writing newer versions. The problem is of particular concern for me as a software developer working in a variety of locations. I am reluctant to use commercial backup programs. They generally have far more features than I need, and I don&#8217;t feel that I am completely in control. In this article I wanted share a simple but effective system that I use for synchronization. Although the procedure may be obvious to an experienced computer user, I feel it is worthwhile to document it for people who are not familiar with batch files.</p>
<p><strong>Step 1</strong><br />
The critical thing to realize is that if you only record essential files, you can probably fit your entire professional life on one 8 GB USB Flash Drive. Get a good quality USB stick.</p>
<p><strong>Step 2</strong><br />
The computers that you use must have the same data directory structure. For example, I keep all computer programs in a directory c:\progdev. This directory has the same structure on all my computers although individual files may change as I work on projects. To begin your data organization, pick one computer as the master.</p>
<p><strong>Step 3</strong><br />
Use a text editor to create a file CDriveToUSB.bat in the root directory of the USB drive. Here is an example of the content:</p>
<pre>REM Software backup: Disk C to USB
xcopy /S /D /F /Y C:\PROGDEV\*.f90 \PROGDEV\*.f90
xcopy /S /D /F /Y C:\PROGDEV\*.f \PROGDEV\*.f
xcopy /S /D /F /Y C:\PROGDEV\*.rc \PROGDEV\*.rc
xcopy /S /D /F /Y C:\PROGDEV\*.cur \PROGDEV\*.cur
xcopy /S /D /F /Y C:\PROGDEV\*.ico \PROGDEV\*.ico
xcopy /S /D /F /Y C:\PROGDEV\*.bmp \PROGDEV\*.bmp
xcopy /S /D /F /Y C:\PROGDEV\*.wpj \PROGDEV\*.wpj</pre>
<p>The batch file invokes the DOS XCopy command, described at</p>
<p><a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true" target="_blank">http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true</a></p>
<p>The first entry after the switches is the source directory and the final entry is the destination directory. The switches serve the following functions:</p>
<p>/S  → Copy from C:\PROGDEV and all its subdirectories<br />
/D  → Copy only files that are newer than those in the destination directory<br />
/F  → Display the file names while copying<br />
/Y  → Suppress confirmation prompting</p>
<p>The key to a compact backup is to pick only the critical file types. In the example, the batch process saves files of source code, Windows resources, cursors, icons, toolbars and projects. Executables and compiled object files (which take up the most space) are not saved because they may be easily regenerated. With a batch file, you can customize the procedure to fit your data structure and to set the relative importance of material. You needn&#8217;t worry about getting everything perfect the first time. You can always add entries later.</p>
<p>To continue, run the batch file on the master computer.</p>
<p><strong>Step 4</strong><br />
Create another file USBToCDrive.bat on the USB drive. This file is the inverse of the first one with an additional line:</p>
<pre>REM Software restore: USB to Disk C
xcopy /S /D /F /Y \PROGDEV\*.f90 C:\PROGDEV\*.f90
xcopy /S /D /F /Y \PROGDEV\*.f C:\PROGDEV\*.f
xcopy /S /D /F /Y \PROGDEV\*.rc C:\PROGDEV\*.rc
xcopy /S /D /F /Y \PROGDEV\*.cur C:\PROGDEV\*.cur
xcopy /S /D /F /Y \PROGDEV\*.ico C:\PROGDEV\*.ico
xcopy /S /D /F /Y \PROGDEV\*.bmp C:\PROGDEV\*.bmp
xcopy /S /D /F /Y \PROGDEV\*.wpj C:\PROGDEV\*.wpj
REM Precaution against loss of the USB drive
xcopy /S /D /F /Y *.* C:\USBBACKUP\*.*</pre>
<p>To be safe, rename your data directories on the slave computer(s) before doing anything else. Keep the old directories for a few weeks in case they contain a newer version of a task that you forgot. Then, insert the USB drive and run the restore batch file.</p>
<p>Here&#8217;s how the system works:</p>
<ul>
<li>When you begin work on a computer, insert the USB drive and run USBToCDrive.bat to make sure the computer is up to date. The process also makes a backup copy of the full content of the USB drive.</li>
<li>When you are finished, run CDriveToUSB.bat.</li>
</ul>
<p>It&#8217;s that simple!</p>
<p>Two final comments:</p>
<ul>
<li>It&#8217;s useful put shortcuts to the two batch files on the desktops to minimize work and to act as a reminder.</li>
<li>Because the USB drives may be assigned different drive letters on different computers, the batch files must be on the USB drive and make no absolute reference to its location.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2010/working-on-multiple-computers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using postprocessor configuration files</title>
		<link>http://fieldp.com/myblog/2010/using-postprocessor-configuration-files/</link>
		<comments>http://fieldp.com/myblog/2010/using-postprocessor-configuration-files/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 21:02:29 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
		
		<category><![CDATA[NewFeatures]]></category>

		<category><![CDATA[Techniques]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=481</guid>
		<description><![CDATA[<p>We released AMaze 3.0 this month. One of the main advances is the use of customizable configurations for the postprocessors PhiView, MagView, HWV and RFE3View. In this article, I will review how you can deal with configuration files and the advantages they offer.</p>
<p>Running the post-processor</p>
<p>To begin, existing users have nothing to worry about. As an [...]]]></description>
			<content:encoded><![CDATA[<p>We released <strong>AMaze </strong>3.0 this month. One of the main advances is the use of customizable configurations for the postprocessors <strong>PhiView</strong>, <strong>MagView</strong>, <strong>HWV </strong>and <strong>RFE3View</strong>. In this article, I will review how you can deal with configuration files and the advantages they offer.</p>
<p><strong>Running the post-processor</strong></p>
<p>To begin, existing users have nothing to worry about. As an example, consider <strong>PhiView</strong> 3.0. The first time you run the program, it loads the default configuration file phiview_dielectric.cfg (included with the package in the same directory as phiview.exe). With this configuration, the program has plotting and analysis capabilities similar to previous versions. You may never need to change things.</p>
<p>If you are doing conductive calculations, use the <em>File/Load configuration file</em> command to load phiview_conductive.cfg. The program quantities are changed to ones more suitable for conductive solutions (like current density). There are also useful new analysis functions, like surface integrals of total current emitted from an electrode. Subsequently, the conductive configuration will be loaded each time you run <strong>PhiView </strong>unless you switch back to the dielectric analysis. Note that configuration files are in text format. It is useful to take a look at them with an editor.</p>
<p>The only problem that could occur is that the current configuration file is lost or corrupted. If <strong>PhiView</strong> cannot find a file or detects an error, the program displays a load dialog with the option to read an alternate configuration. If you loose or modify the default configuration files, you can get replacements from our technical library (<a href="http://www.fieldp.com/library.html" target="_blank">http://www.fieldp.com/library.html</a>).</p>
<p>The default files are good templates if you want to create custom configurations. <strong>PhiView </strong>reports syntax errors detected on load, a useful feature for debugging your files.</p>
<p><strong>Advantages and applications</strong></p>
<p>There are many ways that custom configurations can make your work easier:</p>
<ul>
<li>You can reorder or eliminate quantities to display only those that are useful for your application.</li>
<li>You can change the order and appearance of quantities in line scans and matrix files, saving time by eliminating unnecessary information.</li>
<li>You can introduce scaling factors to display results in convenient units.</li>
<li>You can add entirely new expressions calculated from the electromagnetic field values. The new quantities are available in all plot types and analysis operations.</li>
</ul>
<p>Configurations also make our task easier. We can update many features of the postprocessors simply by posting new configuration files in the library. We can also make user contributions available to the general community.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2010/using-postprocessor-configuration-files/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Free finite-element textbook</title>
		<link>http://fieldp.com/myblog/2010/free-finite-element-textbook/</link>
		<comments>http://fieldp.com/myblog/2010/free-finite-element-textbook/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 00:25:56 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
		
		<category><![CDATA[Educational]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=473</guid>
		<description><![CDATA[<p>This week, we released a new textbook on our site, Finite-element Methods for Electromagnetics.  It joins the books Principles of Charged-particle Acceleration and Charged-particle Beams in our collection of free resources for scientists and engineers.</p>
<p>My interest in electronic texts started in 1999. I got a notice from Wiley-Interscience that Principles of Charged-particle Acceleration (published in [...]]]></description>
			<content:encoded><![CDATA[<p>This week, we released a new textbook on our site, <strong>Finite-element Methods for Electromagnetics</strong>.  It joins the books <strong>Principles of Charged-particle Acceleration</strong> and <strong>Charged-particle Beams</strong> in our collection of free resources for scientists and engineers.</p>
<p>My interest in electronic texts started in 1999. I got a notice from Wiley-Interscience that <strong>Principles of Charged-particle Acceleration</strong> (published in 1986) was being taken out of print. This is a wrenching moment for an author, watching three years of work float into limbo. Considering that basic particle acceleration physics is a relatively timeless topic and that the publisher graciously reverted the copyright, I decided to find a new life for the book. I first tried Dover Press, but they thought the topic was too esoteric (a real head-scratcher, considering their current catalog). Then I got the idea to generate an electronic version and make it available on the web. Because my main goal was to save the book from oblivion, I decided to distribute it with no advertisements, restrictions or registrations. There were few full-length books available at the time, and many of these were crude scans. I decided to produce a compact PDF version that would approach the quality of the original text. I wrote the book in <strong>Wordstar</strong>, with a special ad-on program for Greek letters and equations (this was 1984, after all!). Although I created a custom program to ease the conversion to <strong>WordPerfect</strong>, the activity required extensive hand corrections and took several months. In the end, it was worth the effort. The PDF file preserved the original figures and pagination of the book with a length of only 10 MB. Since its release, over 20,000 copies have been downloaded. It was even mentioned on Slashdot (to the astonishment of my son).</p>
<p><strong>Finite-element Methods in Electromagnetics</strong> was originally published in 1997 as <strong>Field Solutions on Computers</strong> by CRC Press (now a division of Taylor and Francis). Although the publisher wanted to keep the book in print, I received permission to distribute an electronic version through the kind efforts Ashley Gasque at Taylor and Francis. The book was originally written in <strong>WordPerfect</strong>, so it would seem that the conversion would be easy. Alas, in the intervening 12 years I fell in love with Latex. I was determined to produce a stylish book with perfectly-formatted equations. I did as much as I could with wp2latex.exe and then wrote yet another program to clear things up and number the equations. After only two months, the final product is ready.</p>
<p>I wrote the book when I was in the middle of developing the <strong>TriComp </strong>program suite and I was enthusiastic about learning numerical techniques and seeing how much physics could be squeezed into a set of triangles. Here&#8217;s the official description</p>
<p style="padding-left: 30px;"><strong>Finite-element Methods for Electromagnetics</strong> covers a broad range of practical applications involving electric and magnetic fields. After introducing numerical methods with a thorough treatment of electrostatics, the book moves in a structured sequence to advanced topics. These include magnetostatics with non-linear materials, permanent magnet devices, RF heating, eddy current analysis, electromagnetic pulses, microwave structures, and wave scattering.The book also covers essential supporting techniques such as mesh generation, interpolation, sparse matrix inversions, and advanced plotting routines.</p>
<p>The book is a great companion to any of our <strong>Toolkits </strong>and our <strong>SATE </strong>educational package. You can download it at:</p>
<p><a href="http://www.fieldp.com/femethods.html" target="_blank">http://www.fieldp.com/femethods.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2010/free-finite-element-textbook/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Windows 7 compatibility</title>
		<link>http://fieldp.com/myblog/2010/windows-7-compatibility/</link>
		<comments>http://fieldp.com/myblog/2010/windows-7-compatibility/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 18:24:49 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[NewFeatures]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=466</guid>
		<description><![CDATA[<p>I just bought a new multi-core laptop with Windows 7 and had a chance to test our software. In particular,  I wanted to check the parallel-processing programs that we will release in February. Even though I tend to be skeptical, I have to admit that PC performance is going up as prices are going down. [...]]]></description>
			<content:encoded><![CDATA[<p>I just bought a new multi-core laptop with Windows 7 and had a chance to test our software. In particular,  I wanted to check the parallel-processing programs that we will release in February. Even though I tend to be skeptical, I have to admit that PC performance is going up as prices are going down. The test computer has a 17 screen, excellent sound-and-graphics support, 4 GB of memory and a state-of-the-art processor − all for less than $1000.</p>
<p>Compared to Vista, Windows 7 has just enough new features to irritate you. At some point, we&#8217;re going to admit that a new Windows version release has all the excitement of a BIOS update. The operating system eats somewhat less memory than Vista. With some effort to eliminate unnecessary background tasks with <strong>WinPatrol</strong>, the resting computer used 984 MB of RAM. The machine went bananas when I installed any software. Flashing screens asking me whether I really wanted to do that stacked up recursively and filled the whole task bar. Turning off all security features and deactivating the work-intensive window transparency effect seemed to calm things down.</p>
<p>When the computer got used to the unfamiliar environment of my office, it settled in and performed well, particularly with parallel programs. On a test run, my trusty old workstation (with dual Intel Xeon processors at 3.2 GHz) did a benchmark <strong>HiPhi </strong>solution in 365 seconds with both processors active. (The task took 443 seconds in a single-processor run.) In comparison, the new machine (1.6 GHz Intel Core i7) took only 138 seconds. The run time was reduced by a factor of 2.7!  The implication is that you can do almost three times as much number crunching on a compact laptop that they&#8217;re practically giving away compared to the workstations of a few years ago.</p>
<div class="wp-caption alignnone" style="width: 422px"><img title="Task window: HiPhi on a multicore machine" src="http://www.fieldp.com/myblog/images/task_window.png" alt="Task window: HiPhi on a multicore machine" width="412" height="459" /><p class="wp-caption-text">Task window: HiPhi on a multicore machine</p></div>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2010/windows-7-compatibility/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Improved video tutorials</title>
		<link>http://fieldp.com/myblog/2009/improved-video-tutorials/</link>
		<comments>http://fieldp.com/myblog/2009/improved-video-tutorials/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 23:19:54 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
		
		<category><![CDATA[Educational]]></category>

		<category><![CDATA[NewFeatures]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=451</guid>
		<description><![CDATA[<p>By nature, I&#8217;m not a person who jumps into new things. A decade ago, I was telling my son that E mail was a pretentious novelty that would soon disappear. Nonetheless, I&#8217;ve been talked into trying new things that have proved to be useful and fun, such as this blog. A year ago, I recorded [...]]]></description>
			<content:encoded><![CDATA[<p>By nature, I&#8217;m not a person who jumps into new things. A decade ago, I was telling my son that E mail was a pretentious novelty that would soon disappear. Nonetheless, I&#8217;ve been talked into trying new things that have proved to be useful and fun, such as this blog. A year ago, I recorded a test set of <a href="http://www.fieldp.com/videos.html" target="_blank">tutorial videos</a>. Judging from user messages and website hits, they have become popular. In consequence, 2010 will be the year of the videos. We have significantly upgraded our video software, and we are going to replace the initial effort with a comprehensive set of high-quality tutorials. Here are some of the changes:</p>
<ul>
<li>The current files in AVI format are large and take a long time to download. The new video files in MP4 format will be much smaller.</li>
<li>The user will have the option to download individual files or to view a sequence of them directly on the site.</li>
<li>The old files ran reliably only on Windows Media Player. The new videos will run under all media programs (like VLC) and on Macs as well as mobile devices.</li>
<li>The web page to load and to view videos will be organized to show relationships between the resources and to lead the user through sequences for specific programs.</li>
<li>Ultimately, the video set will cover the full range of applications for our programs.</li>
<li>With smaller files, there is less pressure to keep the video lengths very short. There will be time to include useful tips on field and particle calculation techniques as well as step-by-step program instructions.</li>
<li>With the new technology, we can add nice features like transitions and callouts. Furthermore, we will be able to edit the videos to correct errors or to incorporate user suggestions.</li>
<li>Considering the possibility that finite-element tutorials could go viral, we will also post them on YouTube.</li>
</ul>
<p>Developments at Field Precision proceed slowly but inexorably. The projection is that the new videos  will be completed in early summer of 2010. In the meantime, we will post them as available.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2009/improved-video-tutorials/feed/</wfw:commentRss>
		</item>
		<item>
		<title>KB: matter at extreme conditions</title>
		<link>http://fieldp.com/myblog/2009/kb-matter-at-extreme-conditions/</link>
		<comments>http://fieldp.com/myblog/2009/kb-matter-at-extreme-conditions/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 15:24:17 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
		
		<category><![CDATA[Educational]]></category>

		<category><![CDATA[Techniques]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=442</guid>
		<description><![CDATA[<p>This week we released an educational version of the KB suite, adding to the diversity of free software for scientists available on our resource site. KB is an integrated package of data and simulation programs for shock hydrodynamics and detonations. It could be a useful tool in departments of physics, mechanical engineering and civil engineering. [...]]]></description>
			<content:encoded><![CDATA[<p>This week we released an educational version of the <strong>KB</strong> suite, adding to the diversity of free software for scientists available on our <a href="http://www.fieldp.com/educa.html" target="_blank">resource site</a>. KB is an integrated package of data and simulation programs for shock hydrodynamics and detonations. It could be a useful tool in departments of physics, mechanical engineering and civil engineering. The <strong>KB</strong> programs were initially developed for Los Alamos National Laboratory. A group involved in diagnostics of underground tests and stockpile-stewardship experiments wanted quick utilities to run on PCs. Their goal was to make extensive what-if calculations and then to refine the results with the large hydrodynamic codes available at the laboratory. In this post, I&#8217;ll describe some of the resources created during the project.</p>
<p><strong>KB tables</strong><br />
The widely-distributed, unclassified Sesame tables from LANL are an excellent source of equation-of-state information at high density, temperature and pressure. When I began the project, the data for 140 materials were combined in a single binary file with a somewhat idiosyncratic format. The numbers could be accessed only with old-style FORTRAN routines supplied with the library. My first activity was to write programs to disassemble the Sesame library and to reconstruct in a more usable form. The resulting <strong>KB</strong> tables are in text format and therefore accessible through any computer language.  There is an individual file for each material, so it is easy to add to the library without special maintenance routines. Finally, all quantities have been converted to SI units.</p>
<p><strong>Shock hydrodynamic parameters</strong><br />
For some simulations (<em>e.g.</em>, detonations), it is sufficient to use the shock equation-of-state. Data are available for a broad range of materials. The shock velocity <em>us</em> is related to the material velocity <em>up</em> through an equation of the type</p>
<p><em>us</em> = <em>C0</em> + <em>S1</em>*<em>up</em> + <em>S2</em>*<em>up</em>^2.</p>
<p>I wrote a program to fit the function to the raw data listed in S.P.Marsh (<em>ed.</em>), <strong>LASL Shock Hugoniot Data </strong>(University of California Press, Berkeley, 1980) and created a spreadsheet with (<em>C0</em>,<em>S1</em>,<em>S2</em>) data for over 400 materials.</p>
<p><strong>One-dimensional hydrodynamic code</strong><br />
<strong>KB1</strong> is a 1D simulation code for planar, cylindrical or spherical geometries. It is a descendant of a much more complex code described in the reference <a href="http://www.fieldp.com/documents/high_power_mhd.pdf" target="_self"><em>Finite-element simulation code for high-power magnetohydrodynamics</em></a>. The previouscode could handle magnetic acceleration with self-consistent magnetic diffusion and temperature-dependent conductivity. <strong>KB1</strong> uses the element-based approach described in the reference. It handles the full range of material types including explosives. Shock processes can be initiated by collisions, prescribed pressure waveforms or detonations.</p>
<p><strong>Two-dimensional hydrodynamic code</strong><br />
<strong>KB2</strong>, the centerpiece of the suite, is a 2D code that can handle planar and cylindrical geometries. It was built from the conformable triangular mesh technology developed for our <strong>TriComp</strong> programs. The element-based Lagrangian approach has drawbacks and advantages. The main limitation follows from the requirement of logical continuity of the mesh. All objects (<em>i.e.</em>, regions of different material properties) must be contiguous in the initial state. There can be no disconnected objects or holes. The implication is that the code is useful for assemblies like shaped charges but not suitable for bullets striking a wall or milk drops. On the other hand, the approach has decided advantages:</p>
<ul>
<li> Because elements preserve a unique material identity, it is straightforward to apply sophisticated material models and to represent complex histories.</li>
<li>The compression and expansion of expansion of elements gives automatic zone refinement (<em>i.e.</em>,  the density of elements increases in critical regions).</li>
<li>The approach is ideal for strong compressions and explosions. The final state of the assembly may be hundreds of times smaller or larger than the initial state.</li>
</ul>
<p><strong>Constraining the physics</strong><br />
A temptation in writing computer-simulation programs is to add adjustable parameters to represent processes where the physics is fuzzy or even unknown. This practice is largely responsible for the dubious reputation of simulations, particularly of shocks and detonations. An adjustable code can replicate any experiment but has no predictive power. In developing the <strong>KB </strong>programs, I avoided user parameters as much as possible. The only instances are the artificial viscosity for hydrodynamics (required for numerical stability at shock fronts) and the element detonation pressure for explosives. I believe that disagreement between a code and an experiment is a valuable piece of information. It shows that something is going on that you hadn&#8217;t planned on, and that you&#8217;d better look for it.</p>
<p><strong>State of KB</strong><br />
I had planned to retire <strong>KB</strong>, but I recently got a request from Vilem Petr at the Colorado School of Mines. Although the application is fairly specialized, I decided it would be a shame to loose some of the unque resources. For the educational release, I tuned up the program interfaces, corrected several bugs and created a snappier-looking icon. The biggest effort was to combine individual manuals, reports and benchmark tests into a unified instruction manual.  You can download the new manual at <a href="http://www.fieldp.com/manuals/kb.pdf" target="_self">http://www.fieldp.com/manuals/kb.pdf</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2009/kb-matter-at-extreme-conditions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Comparative shopping</title>
		<link>http://fieldp.com/myblog/2009/comparative-shopping/</link>
		<comments>http://fieldp.com/myblog/2009/comparative-shopping/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 16:40:32 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=436</guid>
		<description><![CDATA[<p>Most potential customers want to know how Field Precision 3D software for magnetic fields compares to competing products from Infolytica, Ansys, EM Works,&#8230;. I give them what I hope are straightforward answers because an accurate representation of the program capabilities is the best long-term strategy. This post summarizes some of the comparison issues:</p>
<p>How does Magnum [...]]]></description>
			<content:encoded><![CDATA[<p>Most potential customers want to know how Field Precision 3D software for magnetic fields compares to competing products from Infolytica, Ansys, EM Works,&#8230;. I give them what I hope are straightforward answers because an accurate representation of the program capabilities is the best long-term strategy. This post summarizes some of the comparison issues:</p>
<p><strong>How does Magnum compare technically?</strong><br />
We have worked with companies and universities who use both our software and competing products for sophisticated magnet designs. In direct comparisons, <strong>Magnum </strong>is quite accurate (<a href="http://fieldp.com/myblog/2009/comparing-magnum-to-maxwell3d-and-cst-em-studio/" target="_blank">Link to benchmark example</a>).  <strong>Magnum </strong>runs much faster than other 3D field solvers. The speed advantage will be even more pronounced with the introduction of a multicore version this February (<a href="http://fieldp.com/myblog/2009/magnum-in-parallel/" target="_blank">Link to multicore benchmarks</a>) . Field Precision software is employed by large and small organizations around the world. For a partial list of customers, see this <a href="http://www.fieldp.com/company.html" target="_blank">Link</a>.</p>
<p><strong>Why does Magnum cost so much less?</strong><br />
The two primary reasons are low overhead and low marketing costs. Field Precision is a small business. All technical development is done in-house and software prices do not include hidden fees for outside components. Our software is well-publicized over the Internet and through customer recommendations, so we are not obliged to pass on the costs of extensive advertising campaigns.</p>
<p><strong>Is Magnum easy to learn?</strong><br />
3D finite-element codes are complex technical tools. No matter what claims are made, they can not be learned effectively in a couple hours by pushing buttons and <em>experimenting</em>. Our codes are supplied with instruction manuals in classic textbook style (chapter and section organization, index,&#8230;). Customers who read the instructions and work through examples supplied in the application library generally transition to their own applications in a few days. The reward for this initial effort is a good understanding of the mechanics of the code. The programs are designed with transparent data formats and a full complement of advanced features, so the software can expand to address the full spectrum of user applications.</p>
<p><strong>What about technical support?</strong><br />
There is a single-time purchase price for programs with no continuing license fees. We provide free support on program installation and basic features. We can consult on user applications and optimal setups for a moderate fee. We make a strong continuing effort to advance the programs, and purchaser&#8217;s receive free updates. Program improvements and fixes are listed at <a href="http://www.fieldp.com/news.html" target="_blank">http://www.fieldp.com/news.html</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2009/comparative-shopping/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Magnum in parallel</title>
		<link>http://fieldp.com/myblog/2009/magnum-in-parallel/</link>
		<comments>http://fieldp.com/myblog/2009/magnum-in-parallel/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 20:00:38 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
		
		<category><![CDATA[NewFeatures]]></category>

		<category><![CDATA[Techniques]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=428</guid>
		<description><![CDATA[<p>Conversion of the 64-bit 3D AMaze programs to parallel operation is ahead of schedule. We expect to have parallel versions of all programs (including OmniTrak) ready for the update release on February 1, 2010. We just finished upgrading Magnum (magnetic fields), our most popular 3D program. Magnum can be computationally intensive, particularly in runs with [...]]]></description>
			<content:encoded><![CDATA[<p>Conversion of the 64-bit 3D AMaze programs to parallel operation is ahead of schedule. We expect to have parallel versions of all programs (including <strong>OmniTrak</strong>) ready for the update release on February 1, 2010. We just finished upgrading <strong>Magnum </strong>(magnetic fields), our most popular 3D program. <strong>Magnum</strong> can be computationally intensive, particularly in runs with saturable iron. We have made benchmark simulations that give a good sense of how much improvement to expect.</p>
<p>An ideal parallel program would give a 50% reduction in run time on a dual-processor machine. In reality, there are some sections of programs that can not (or should not) be run in parallel:</p>
<ul>
<li>Disk operations (particularly with sequential files).</li>
<li>Small blocks where it&#8217;s not worth the overhead to launch multiple threads.</li>
<li>Calculations that use shared resources.</li>
</ul>
<p>In <strong>Magnum</strong>, the major disk operations are mesh input, solution file output and generation of finite-element coefficients. Although the generation of coefficients uses a large, random-access file, only a single thread can address the file at any time. We found there was no benefit running this operation in parallel. One shared resource that would be unwieldy to replicate is the unit for lest-squares-fit field interpolations. Therefore, the adjustment of μr values in nonlinear solutions is performed by a single thread. Fortunately, it is straightforward to implement multiple threads in the matrix inversion that occupies most of the run time.</p>
<p>As a benchmark test, I used the SHIELD_SATURATION example included in the <strong>Magnum </strong>application library. The example models a magnetic shield with highly-saturated regions. The solution involved 15 cycles of permeability adjustment. The calculation was performed on a HP xw62000 computer with two Xeon processors at 3.2 GHz. The run time for the serial program was 1424 seconds while the time for the parallel version was 885 s. The run time reduction factor for the dual-processor system was <em>Rf</em> = 0.622.</p>
<p>To see the implication of the result, let <em>fs</em> be the fraction of operations in <strong>Magnum </strong>performed by a single thread and <em>fp</em> the fraction performed by <em>N</em> threads. Ignoring the overhead time for initiating threads, the run reduction factor is given by</p>
<p><em>Rf</em> = <em>fs</em> + <em>fp</em>/<em>N</em>.</p>
<p>Taking <em>fs</em> + <em>fs</em> = 1 and solving for <em>fp</em>, we find that</p>
<p><em>fp</em> = (1 - <em>Rf</em>)/(1 - 1/<em>N</em>).</p>
<p>For <em>N</em>=2 and <em>Rf</em> = 0.622, the fraction of parallel operations is <em>fp</em> = 0.76. This number is consistent with an inspection of the trace generated by the Windows task manager. Inverting the equation, the reduction factor for a quad-core system (<em>N</em> = 4) is predicted to be 0.432 (a speed increase of 2.31X). With a multiprocessor machine, the speed advantages of <strong>Magnum </strong>over competing products are even more impressive than those we previously described (<a href="http://fieldp.com/myblog/2009/comparing-magnum-to-maxwell3d-and-cst-em-studio/" target="_blank">Comparing Magnum to Maxwell3d and CST-EM Studio</a>).</p>
<p>Monte Carlo calculations are often cited as the poster application for parallel processing. Ironically, <strong>GamBet</strong> represents our biggest challenge. Although individual primary particles are independent, there are intricate shared resources (such as the secondary particle stacks in the Penelope module). We are experimenting with a distributed-memory approach: assigning portions of a run to independent tasks and  accumulating statistical and dose data at the end. We anticipate that a parallel version of <strong>GamBet </strong>will be available in the June 1, 2010 update.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2009/magnum-in-parallel/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Multiprocessor roadmap</title>
		<link>http://fieldp.com/myblog/2009/multiprocessor-roadmap/</link>
		<comments>http://fieldp.com/myblog/2009/multiprocessor-roadmap/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 23:43:51 +0000</pubDate>
		<dc:creator>shumphries</dc:creator>
		
		<category><![CDATA[NewFeatures]]></category>

		<category><![CDATA[Techniques]]></category>

		<guid isPermaLink="false">http://fieldp.com/myblog/?p=417</guid>
		<description><![CDATA[<p>Over the past few years, we have had several inquiries about the possibility of parallelized versions of our codes. The questions have come mainly from people in the vanguard of technology with specialized cluster research machines. We were hesitate to jump into parallel programming until multiprocessor technology reached most of our users. Instead, we concentrated [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past few years, we have had several inquiries about the possibility of parallelized versions of our codes. The questions have come mainly from people in the vanguard of technology with specialized cluster research machines. We were hesitate to jump into parallel programming until multiprocessor technology reached most of our users. Instead, we concentrated on speed improvements in a conventional sequential framework.</p>
<p>Several developments now provide a motivation to move forward:</p>
<ul>
<li>Microprocessor manufacturers hit a brick wall at 4 GHz. It is unlikely that higher clock speeds will lead to future gains in computational speed.</li>
<li>64 bit processors with 64 bit operating systems are becoming the norm. With the option to address large blocks of memory, users will invariably seek to construct larger meshes.</li>
<li>Quad core processors are becoming available in conventional PCs.</li>
</ul>
<p>On February 1, we will issue a major update of the 3D <strong>AMaze </strong>programs. A featured advance will be the option for multicore operation on 64-bit machines. With <strong>OpenMP </strong>technology, the programs will automatically optimize operation for a multicore environment. The programs can also run run in the sequential mode on an older computer with no penalty in performance. We will add multiprocessor support to the following classes of programs:</p>
<ul>
<li>Boundary-value solutions based on iterative matrix inversion (<strong>HiPhi</strong>, <strong>Magnum</strong>).</li>
<li>Initial-value problems using offset difference methods (<strong>HeatWave</strong>, <strong>Aether</strong>).</li>
<li>Monte-Carlo problems with independent shower calculations (<strong>GamBet</strong>).</li>
<li>Charged-particle codes with independent orbit tracking and iterative matrix inversion for field adjustments (<strong>OmniTrak</strong>).</li>
</ul>
<p>We have been testing a parallel version of <strong>HiPhi </strong>on a dual-processor machine. From the results, we expect a reduction in run time by a factor of 2-3 on a quad-core computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://fieldp.com/myblog/2009/multiprocessor-roadmap/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
