<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;" class="">Dear All, <div class=""><br class=""></div><div class=""><div class="">I have a question about calculating the Mdot in yt.</div><div class="">I tried to set some concentric spheres shells with deferent radius and calculate the mdot through them.==>> Mdot vs R</div><div class=""><br class=""></div><div class="">I used an object in yt as:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">surf = ds.surface(sph,</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(195, 55, 32);" class="">"radius"</span><span style="font-variant-ligatures: no-common-ligatures;" class="">,r)</span></div></div><div class=""><br class=""></div><div class="">where</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">sph = ds.sphere(cmax, (</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(195, 55, 32);" class="">2</span><span style="font-variant-ligatures: no-common-ligatures;" class="">, </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(195, 55, 32);" class="">"kpc"</span><span style="font-variant-ligatures: no-common-ligatures;" class="">))</span></div><div style="margin: 0px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">and r is radius of each shell.</span></div><div style="margin: 0px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; font-family: menlo;" class="">After that I used:</div><div style="margin: 0px; line-height: normal; font-family: menlo; color: rgb(195, 55, 32);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class="">flux = surf.calculate_flux(</span><span style="font-variant-ligatures: no-common-ligatures;" class="">"x-velocity"</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class="">,</span><span style="font-variant-ligatures: no-common-ligatures;" class="">"y-velocity"</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class="">,</span><span style="font-variant-ligatures: no-common-ligatures;" class="">"z-velocity"</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class="">,</span><span style="font-variant-ligatures: no-common-ligatures;" class="">"density"</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class="">)</span></div><div style="margin: 0px; line-height: normal; font-family: menlo; color: rgb(195, 55, 32);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; font-family: menlo; color: rgb(195, 55, 32);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class="">which calculate the flux density, Mdot.</span></div><div style="margin: 0px; line-height: normal; font-family: menlo; color: rgb(195, 55, 32);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; font-family: menlo; color: rgb(195, 55, 32);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class="">However it gives the mdot zero which is wrong. </span></div><div style="margin: 0px; line-height: normal; font-family: menlo; color: rgb(195, 55, 32);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; font-family: menlo; color: rgb(195, 55, 32);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class="">If I set the surfaces as the density iso surface, then I got the mdot as function of density, which it work. However, as a function of radius it fives zero. </span></div><div style="margin: 0px; line-height: normal; font-family: menlo; color: rgb(195, 55, 32);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; font-family: menlo;" class=""><font color="#000000" class="">Does anyone has idea about this issue? how to fix it?</font></div></div><div class=""><font color="#000000" face="menlo" class=""><br class=""></font></div><div class=""><font color="#000000" face="menlo" class=""><br class=""></font></div><div class="">
<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;" class=""><div class="">Best Regards,</div><div class=""><br class=""></div><div class="">kazem</div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">

</div>
<br class=""></div></body></html>