<div dir="ltr">Hi all,<br><br>Thank you for all the suggestions! I decided to try something similar to Sam's shock identification first.<br><br>Here is a problem I encountered:<br><br>I tried to define a field of the temperature gradient like gradPressureX, but I got an error message:<br>...<br>new_field[1:-1,1:-1,1:-1]  = data["Temperature"][sl_right,1:-1,1:-1]/ds<br>ValueError: could not broadcast input array from shape (62,62,64) into shape (62,62,62)<br><br>I then tried to re-define gradPressureX by copying the original definition and giving it a different name, and I got the same error. The original gradPressureX works fine. <br><br>Is it because I did not load some specific module or something? I am using HydroMethod = 2.<div><br></div><div>Thank you!</div><div>Yuan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 5:47 AM, Christine Simpson <span dir="ltr"><<a href="mailto:csimpson@astro.columbia.edu" target="_blank">csimpson@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">Hi Yuan,<div><br></div><div>I don’t have any advice to give on shock-finding in yt or Enzo, but I thought I’d point out this paper:</div><div><br></div><div><a href="http://arxiv.org/abs/1407.4117" target="_blank">http://arxiv.org/abs/1407.4117</a></div><div><br></div><div>You might find Section 5 interesting.  Basically, a common assumption of shock finders is to filter using the dot product of the temperature and entropy gradients.  When you do this, the computed dissipated energy can be sensitive to your assumptions for the other jump requirements, and depending on what you assume, can identify spurious shocks.  This paper instead of using the entropy gradient, uses the density gradient, and gives somewhat different results.  More knowledgable people than me can probably give you better advice, but I thought you might find this interesting, especially if you’re going to write something yourself.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Christine</div></font></span><div><br><div><div><div class="h5"><div>On Jun 23, 2015, at 5:51 PM, Yuan Li <<a href="mailto:yuan@astro.columbia.edu" target="_blank">yuan@astro.columbia.edu</a>> wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr">Dear all,<div><br></div><div>I am trying to figure out a way to mask out cells that contain shocks. One way I can think of is to create a derived field by identifying shocks. It seems that there are different ways of finding shocks: Enzo has a refinement criterion (refine by shocks) and there is also shock finding written by Sam. </div><div><br></div><div>Has anybody tried to find shocks using yt? I would appreciate it if you would like to share your code/experience/advice. Thank you!</div><div><br></div><div>Yuan</div></div></div></div><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></blockquote></div><br></div></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>