[yt-users] Problem in simple volume rendering (yt-users Digest, Vol 36, Issue 18)

j s oishi jsoishi at gmail.com
Thu Feb 24 11:33:07 PST 2011


Hi Kuo-Chuan,


> 3.  I set the width = 1 as used in the example code.

I think this is your problem. Flash uses cgs units, and so you are
trying to volume render a volume of width 1 cm. This is far tinier
than a single cell, and so no data (NoneType) is returned to the
render.

Instead, try setting width = pf.domain_right_edge -
pf.domain_left_edge, assuming your parameter file is called pf. This
should set the width to be the whole domain.

I hope this helps,

Jeff



More information about the yt-users mailing list