<div dir="ltr"><div>Here's how yt handles this:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/src/1088ca4ac8d84017d1809a6f114c852297286350/yt/frontends/flash/data_structures.py?at=yt&fileviewer=file-view-default#data_structures.py-239">https://bitbucket.org/yt_analysis/yt/src/1088ca4ac8d84017d1809a6f114c852297286350/yt/frontends/flash/data_structures.py?at=yt&fileviewer=file-view-default#data_structures.py-239</a><br></div><div><br></div><div>If unitsystem is 'cgs', then magnetic field variables are written in Gauss (no factors of 4pi). If unitsystem is 'none' (the default, I think?) then you need to divide the values on-disk by sqrt(4*pi) to get gauss. If unitsystem is 'si', then you need to divide by sqrt(4*pi/1e7).</div><div><br></div><div>Dongwook Lee summarized the situation when I asked about this in 2012, including a nice pdf describing all the ins and outs. Take a look at his message:</div><div><br></div><div><a href="http://flash.uchicago.edu/pipermail/flash-users/2012-October/001180.html">http://flash.uchicago.edu/pipermail/flash-users/2012-October/001180.html</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 8, 2017 at 3:38 PM, Huynh Cong Tuan <span dir="ltr"><<a href="mailto:huynhcongtuan7@gmail.com" target="_blank">huynhcongtuan7@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear FLASH-USER,<br></div>I have a little bit confusion about unit of magnetic field. For example, I run a simulation with the default unit system (cgs). <span style="background-color:rgb(255,0,0)">The file flash_hdf5_plt_cnt_0001 contains variable magy (by). The value of by is 1. I am confusing about this value, in cgs, by=1 gauss or by=sqrt(4*pi) gauss?</span><br clear="all"><div><div>Thanks in advance.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-- <br><div class="m_-5546997247085587080gmail_signature"><font color="#888888">Huynh Cong Tuan<br>
<br></font><div><div></div><div></div><div> </div></div></div>
</div></font></span></div></div>
</blockquote></div><br></div>