<?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>nmag &#8211; RiTM</title>
	<atom:link href="https://ritm.knu.ua/ua/tag/nmag/feed/" rel="self" type="application/rss+xml" />
	<link>https://ritm.knu.ua/ua</link>
	<description>Research in Theory of Magnetism</description>
	<lastBuildDate>Mon, 08 Apr 2013 21:02:28 +0000</lastBuildDate>
	<language>uk-UA</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
<site xmlns="com-wordpress:feed-additions:1">102601221</site>	<item>
		<title>Nmag console commands in a nutshell</title>
		<link>https://ritm.knu.ua/ua/general/nmag-in-a-nutshell/</link>
					<comments>https://ritm.knu.ua/ua/general/nmag-in-a-nutshell/#respond</comments>
		
		<dc:creator><![CDATA[engraver]]></dc:creator>
		<pubDate>Mon, 08 Apr 2013 21:02:28 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[micromagnetic simulators]]></category>
		<category><![CDATA[nmag]]></category>
		<category><![CDATA[nsim]]></category>
		<guid isPermaLink="false">http://ritm.knu.ua/?p=921</guid>

					<description><![CDATA[Nmag is a python-based micromagnetic simulator for finite elements mesh. First we add the path and one alias for a comfort work to our bashrc from &#60;nsim&#62;/bin directory: echo &#34;export PATH=\$PATH:`pwd`&#34; &#62;&#62; ~/.bashrc echo &#34;alias nmeshimportg=&#039;`pwd`/nmesimport --gmsh&#039;&#34; &#62;&#62; ~/.bashrc Convert the mesh in Version ASCII v2.x format to Version 1:…<p class="continue-reading-button"> <a class="continue-reading-link" href="https://ritm.knu.ua/ua/general/nmag-in-a-nutshell/">Continue reading<i class="crycon-right-dir"></i></a></p>]]></description>
										<content:encoded><![CDATA[<p><a href="http://nmag.soton.ac.uk/nmag/">Nmag</a> is a python-based micromagnetic simulator for finite elements mesh.</p>
<p>First we add the path and one alias for a comfort work to our bashrc from &lt;nsim&gt;/bin directory:</p>
<pre class="brush: text; gutter: false">echo &quot;export PATH=\$PATH:`pwd`&quot; &gt;&gt; ~/.bashrc
echo &quot;alias nmeshimportg=&#039;`pwd`/nmesimport --gmsh&#039;&quot; &gt;&gt; ~/.bashrc</pre>
<p>Convert the mesh in Version ASCII v2.x format to Version 1:</p>
<pre class="brush: text; gutter: false">gmsh  -3 -format msh1 sphere.msh -o sphere1.msh</pre>
<p>Convert the mesh from msh to nmesh.h5 format (note, that nmeshimportg is the alias!):</p>
<pre class="brush: text; gutter: false">fid=sphere; nmeshimportg  $fid.msh $fid.nmesh.h5</pre>
<p>Getting fields distribution in all stages (in vtk format):</p>
<pre class="brush: text; gutter: false">fid=sphere; nmagpp --vtk $fid.vtk $fid</pre>
<p>Getting fields distribution in selected and the last stages (in vtk format):</p>
<pre class="brush: text; gutter: false">fid=sphere; nmagpp --range &quot;[10, 20, 50] + [max(ids)]&quot; --vtk $fid.vtk $fid</pre>
<p>Parallel execution:</p>
<pre class="brush: text; gutter: false">time mpirun -np 2 -host localhost nsim bar.py</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://ritm.knu.ua/ua/general/nmag-in-a-nutshell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">921</post-id>	</item>
	</channel>
</rss>
