<div dir="ltr">Hi Greg,<br><br>Thank you! You were right! Yes, they are from the Enzo tracer particle values. I thought that they were just the values of their host cells, and did not know that they were CIC interpolated. <br><div><br></div><div>If I want to compare the different heating/cooling rates (as a function of radius for example) calculated from the thermal history of the particles with the rates from the simulation itself, what is the best way of doing it so that I am comparing apples to apples? </div><div><br></div><div>Yuan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 6, 2015 at 8:30 AM, Greg Bryan <span dir="ltr"><<a href="mailto:gbryan@astro.columbia.edu" target="_blank">gbryan@astro.columbia.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Yuan — How are you getting the density/temperature values for the tracer particle plot?  If it is from the Enzo tracer particle values, note that they are CIC interpolated from the grid, and so may differ from the cell values (in particular, the high-T, high-rho values you are seeing might be from interpolation between hot and cold cells). </div><div><br></div><div>Greg</div><br><div><blockquote type="cite"><div><div class="h5"><div>On Oct 5, 2015, at 3:23 PM, Yuan Li <<a href="mailto:bear0980@gmail.com" target="_blank">bear0980@gmail.com</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr">Sorry! I lied. The color range is different. Though if I make the range similar to the yt plot, then I do not see any particles at high densities.<div><br></div><div>I should probably figure out how to make the volume weighted plot for particles.</div><div><br></div><div>Yuan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 5, 2015 at 2:57 PM, Yuan Li <span dir="ltr"><<a href="mailto:bear0980@gmail.com" target="_blank">bear0980@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">Hi Matt,<br><br>Ok. I was being lazy :P. Here is a 2d histogram (without labels but the range is the same as the yt plot). It still shows more points at density of 1e-23 and temperature of 1e5. These should be particles in and around cooling/cold clumps.<div><br></div><div>It is 10 thousand years after the particles are injected (the first particle output). Maybe somehow the particles move very very quickly from the cell center to strange locations...?<span><font color="#888888"><br><div><br></div><div>Yuan</div></font></span></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 5, 2015 at 2:36 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi Yuan,</p><p dir="ltr">You're not applying any averaging when scattering, so you can really just get the shape, not the colors, from the particle plotting.</p><p dir="ltr">Matt</p><div><div>
<br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 5, 2015, 11:23 AM Yuan Li <<a href="mailto:bear0980@gmail.com" target="_blank">bear0980@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Matt,<br><br>Arithmetic average is what I want. It would be more meaningful to do a volume weighted average, but am trying to compare the profile I get from AMR simulation itself and the one I get from tracer particles, and tracer particles do not know their cell volume (I guess I can use find_field_value_at_point but I am worried about it taking too long for 1 million particles). <br><div><br></div><div>What confuses me is that the particles give me a different profile. If I make the phase plot of temperature vs density, it seems that there are a lot of particles at high density and low-ish temperatures (the plot with the blue points) that do not show up on the other plot that is made with the simulation output. The particles are injected to the center of each cell (the original scrip is from you I think), so I thought that every cell should be represented on both plots the same way. </div></div><div dir="ltr"><div><br></div><div><br></div><div>Yuan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 5, 2015 at 12:51 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Yuan,<br>
<br>
This does do the average temperature as a function of radius, although<br>
note that you're weighting by ones, so it is the arithmetic average --<br>
i.e., unweighted by any volume or mass.  So for any AMR simulation,<br>
this favors the higher resolution data in a way that is<br>
non-conservative.<br>
<div><div><br>
On Fri, Oct 2, 2015 at 3:03 PM, Yuan Li <<a href="mailto:yuan@astro.columbia.edu" target="_blank">yuan@astro.columbia.edu</a>> wrote:<br>
> Hi all,<br>
><br>
> I have a really basic dumb question: what does yt do when it creates a<br>
> profile?<br>
><br>
> For example, if I do this:<br>
> prof=yt.create_profile(sp,"radius",["temperature"],<br>
> accumulation=False,n_bins=n_bins,weight_field="ones")<br>
><br>
> Is prof["temperature"].value the arithmetic average of the temperatures of<br>
> all the cells within each radius bin?<br>
><br>
> The reason why I ask is because when I create a profile plot of<br>
> "CoolingRate" (my derived field) using yt, and compare that with the one I<br>
> create with tracer particles, they look different at low temperatures. Since<br>
> I put one particle in the center of each cell, I assume that the two methods<br>
> should give the same results. Did I make a silly mistake somewhere or does<br>
> yt do some sort of smoothing to the data?<br>
><br>
><br>
> Thank you!<br>
> Yuan<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">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>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><span><0_phase_particles_color.png></span>_______________________________________________<span class=""><br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br></span></div></blockquote></div><br><div>
<span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><div style="margin:0px">----------------------------------</div><div style="margin:0px">Greg Bryan</div><div style="margin:0px">Professor of Astronomy</div><div style="margin:0px">Department of Astronomy, Columbia University</div><div style="margin:0px">1325 Pupin Physics Laboratories, Mail Code 5246</div><div style="margin:0px">550 West 120th Street</div><div style="margin:0px">New York, New York 10027 (USA)</div><div style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-size:12px;line-height:normal;font-family:Helvetica;min-height:14px"><br></div><div style="margin:0px">email: <a href="mailto:gbryan@astro.columbia.edu" target="_blank">gbryan@astro.columbia.edu</a></div><div style="margin:0px">phone: <a href="tel:%2B1%28212%29854-6837" value="+12128546837" target="_blank">+1(212)854-6837</a></div><div style="margin:0px">fax  : <a href="tel:%2B1%28212%29854-8121" value="+12128548121" target="_blank">+1(212)854-8121</a></div><div><br></div><div><br></div></div><br></span><br><br>
</div>
<br></div><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>
<br></blockquote></div><br></div>