<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Matt,<div><br></div><div>Thanks for your response!<br><div><br></div><div>I want to integrate the density from -zmin to +zmin for every cells located on (x, y), or in your words, on (r ,theta). So the cells with the same (x, y) location will have the same value of surface density, as the figures show. The surface density is a function of only (x, y).</div><div><br></div><div>Best wishes,</div><div><div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>--</div><div>Suoqing JI</div><div>Ph.D Student</div><div>Department of Physics</div><div>University of California, Santa Barbara</div><div>CA 93106, USA</div></div></div></div>
</div>
<br><div><div>On Mar 18, 2014, at 7:38 AM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Suoqing,<br><br>If I understand correctly, you want to compute the *local* surface<br>density (i.e., the integrated density up to that height) for each<br>cell?  As in, re you defining it such that it's a function of r,<br>theta, z, or are you computing the surface density *once* for a disk<br>object and using that (i.e., function of r, theta)?<br><br>-Matt<br><br>On Tue, Mar 18, 2014 at 2:24 AM, Suoqing JI <<a href="mailto:suoqing@physics.ucsb.edu">suoqing@physics.ucsb.edu</a>> wrote:<br><blockquote type="cite">Hi,<br><br>I'm working on FLASH 3D Cartesian AMR data, and would like to define a<br>derived field of surface density, so I can use surface density field to<br>calculate other derived fields.<br><br>My current script does give desired results (slice_y:<br><a href="http://i.imgur.com/XigIYJc.png">http://i.imgur.com/XigIYJc.png</a>   slice_z: <a href="http://i.imgur.com/kA2Fmlt.png">http://i.imgur.com/kA2Fmlt.png</a>,<br>and the disk is cut from original data). However, it's extremely<br>inefficient, because I cast a ray through disk height for every cells<br>located on x-y plane surface of each AMR block.<br><br>So is there any clever way to define surface density as a derived field in<br>YT, as what the figures attached show? Or some way without defining surface<br>density as a derived field, but I can get access to surface density values<br>when computing other derived fields?<br><br>Thanks a lot!<br><br>Best wishes,<br>--<br>Suoqing JI<br>Ph.D Student<br>Department of Physics<br>University of California, Santa Barbara<br>CA 93106, USA<br><br>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br><br></blockquote>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote></div><br></div></div></body></html>