<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 7, 2015 at 2:03 PM, Cynthia Saad (Student) <span dir="ltr"><<a href="mailto:crs07@mail.aub.edu" target="_blank">crs07@mail.aub.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
I am using enzo for 3d mhd collapse. I need to check conservation of divB=0. So i turned on BAnyl in the parameter file. Now i need to use yt for B_Div. And i'm having trouble doing so.<br>
I tried using phaseplot, but it says could not find field B_Div.<br></blockquote><div><br></div><div>Can you try using the field name ('enzo', 'DivB').  If BAnyl is turned on, Enzo writes the divergence to disk as 'DivB'.</div><div><br></div><div>You can also check what on-disk fields are recognized for your dataset by looking at ds.field_list.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
One more question how may i load several data files in the same .py script?<br></blockquote><div><br></div><div>Simply call the load function multiple times in the same script. You can have multiple datasets loaded at the same time.</div><div><br></div><div>You might also be interested in the DatasetSeries class, which lets you load a time series or whole simulation of datasets. The easiest way to create a DatasetSeries is by passing a glob pattern to load, like in the following example:</div><div><br></div><div>time_series = yt.load('DD????/DD????)'</div><div><br></div><div>for ds in time_series:</div><div>    print ds</div><div><br></div><div>'ds' in this script is an individual simulation output. time_series is a DatasetSeries instance.</div><div><br></div><div>hope that helps,</div><div><br></div><div>Nathan</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thank you so much for taking the time to reply!<br>
Your input is really needed and mch appreciated.<br>
<br>
Cynthia Saad<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br></div></div>