[yt-users] modify - radiation pressure

Elizabeth Harper-Clark h-clark at astro.utoronto.ca
Mon Feb 21 12:12:14 PST 2011


Hi all,

I would like to plot radiation pressure vectors in the style of
p.modify["velocity"](). Now, my radiation pressure acceleration is in my
data as three baryon fields (they appear in pf.h.field_list) : RadAccel1,
RadAccel2, RadAccel3 for the three spacial dimensions.

Now I am embarrassed to admit I have not done much yt development in the
past so I was hoping someone more familiar with the code could point me in
the direction of where I can add code for this? I am hoping it will be as
simple as finding all the places code exists for p.modify["velocity"]() and
copy and paste it changing the fields used to the radiation pressure ones.
Will it be? Where is the code for p.modify["velocity"]()? Are there any
tricky bits I should be aware of?

Many thanks,

Libby

-- 
Elizabeth Harper-Clark MA MSci
PhD Candidate, Canadian Institute for Theoretical Astrophysics, UofT
Sciences and Engineering Coordinator, Teaching Assistants' Training Program,
UofT

www.astro.utoronto.ca/~h-clark <http://www.astro.utoronto.ca/%7Eh-clark>
h-clark at cita.utoronto.ca
Astronomy office phone: +1-416-978-5759
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20110221/358dc2a2/attachment.htm>


More information about the yt-users mailing list