<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi,<div><br></div><div>I’m working on FLASH 3D Cartesian AMR data, and would like to define a derived field of surface density, so I can use surface density field to calculate other derived fields.</div><div><br></div><div>My current script does give desired results (slice_y: <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>, and the disk is cut from original data). However, it’s extremely inefficient, because I cast a ray through disk height for every cells located on x-y plane surface of each AMR block.</div><div><br></div><div>So is there any clever way to define surface density as a derived field in YT, as what the figures attached show? Or some way without defining surface density as a derived field, but I can get access to surface density values when computing other derived fields?</div><div><br></div><div>Thanks a lot!</div><div><br></div><div>Best wishes,</div><div apple-content-edited="true">
<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></body></html>