<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://spindynamics.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Diamond_n_inter.m</id>
	<title>Diamond n inter.m - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://spindynamics.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Diamond_n_inter.m"/>
	<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Diamond_n_inter.m&amp;action=history"/>
	<updated>2026-12-04T22:40:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.15</generator>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Diamond_n_inter.m&amp;diff=10190&amp;oldid=prev</id>
		<title>Kuprov: version fragment to 2.13 per IK 2026-08-30</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Diamond_n_inter.m&amp;diff=10190&amp;oldid=prev"/>
		<updated>2026-08-30T09:10:53Z</updated>

		<summary type="html">&lt;p&gt;version fragment to 2.13 per IK 2026-08-30&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:10, 30 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot; &gt;Line 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[diamond_ni.m]], [[diamond_nvm_gs.m]], [[diamond_p1.m]], [[diamond_vacancy.m]], [[rotmat_align.m]], [[Import,_export,_and_visualisation]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[diamond_ni.m]], [[diamond_nvm_gs.m]], [[diamond_p1.m]], [[diamond_vacancy.m]], [[rotmat_align.m]], [[Import,_export,_and_visualisation]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;Version 2.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;11&lt;/del&gt;, authors: [[Alexey Bogdanov]]&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;Version 2.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;13&lt;/ins&gt;, authors: [[Alexey Bogdanov]]&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Diamond_n_inter.m&amp;diff=10076&amp;oldid=prev</id>
		<title>Kuprov: sync with Spinach main f053e432: new page for etc/diamond_defects/diamond_n_inter.m, nitrogen interstitial (WAR9, WAR10) spin system builder</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Diamond_n_inter.m&amp;diff=10076&amp;oldid=prev"/>
		<updated>2026-08-30T08:00:29Z</updated>

		<summary type="html">&lt;p&gt;sync with Spinach main f053e432: new page for etc/diamond_defects/diamond_n_inter.m, nitrogen interstitial (WAR9, WAR10) spin system builder&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:diamond_n_inter.m}} __NOTOC__&lt;br /&gt;
Nitrogen interstitial spin system for diamond. Magnetic parameters from Felton et al., J. Phys. Condens. Matter 21, 364212 (2009), [https://doi.org/10.1088/0953-8984/21/36/364212 DOI link]. The spin system contains one spin-1/2 electron and one nitrogen nucleus. The g-tensor and the nitrogen hyperfine tensor are built in a principal axis frame assembled from three direction vectors specified by their polar and azimuthal angles; the frame is orthogonalised by QR decomposition and forced to be right-handed. Both tensors of the WAR9 centre use that frame; for the WAR10 centre the hyperfine tensor uses a separate frame in which the first two axes are tilted to polar angles of 44.8 and 134.8 degrees. When &amp;#039;15N&amp;#039; is requested, the tabulated hyperfine tensor is used as it stands; when &amp;#039;14N&amp;#039; is requested, it is scaled by the ratio of the 14N and 15N magnetogyric ratios. Both tensors are then rotated by the matrix that aligns the requested crystal plane normal with the magnetic field direction, and returned in the zeeman.matrix and coupling.matrix fields.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     [sys,inter]=diamond_n_inter(parameters)&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
     parameters is a structure with the following fields:&lt;br /&gt;
 &lt;br /&gt;
       .centre       - &amp;#039;war9&amp;#039; or &amp;#039;war10&amp;#039;&lt;br /&gt;
       .orientation  - &amp;#039;111&amp;#039;, &amp;#039;110&amp;#039;, or &amp;#039;100&amp;#039; crystal plane normal&lt;br /&gt;
                       aligned with the magnetic field&lt;br /&gt;
       .nitrogen     - &amp;#039;14N&amp;#039; or &amp;#039;15N&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     sys   - Spinach system specification structure&lt;br /&gt;
 &lt;br /&gt;
     inter - Spinach interaction specification structure&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
The principal values used are g=[2.00343 2.00272 2.00268] with a 15N hyperfine tensor of [8.30 7.85 8.17] MHz for the WAR9 centre, and g=[2.00344 2.00272 2.00269] with a 15N hyperfine tensor of [1.00 -1.01 0.00] MHz for the WAR10 centre.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[diamond_ni.m]], [[diamond_nvm_gs.m]], [[diamond_p1.m]], [[diamond_vacancy.m]], [[rotmat_align.m]], [[Import,_export,_and_visualisation]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.11, authors: [[Alexey Bogdanov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
</feed>