If the field isn’t on-disk it may not have ever been written out by Enzo (Enzo doesn’t write the gravitational potential by default). Enzo has a -g command-line option, which if you run enzo with will just compute the gravitational potential on an existing data dump and then dump the potential data out to a sidecar file that yt should be able to load separately from the original output file.

On Tue, May 14, 2019 at 9:14 AM Sam Patrick via yt-users <yt-users@python.org> wrote:
Hi all,

I'm trying to find a way to access the gravitational field in an Enzo
2.5 simulation. I've tried creating a gradient field of ('gas',
'gravitational_potential') but I am unable to find this under the
ds.derived_field_list either. Has anybody else been successful in
extracting this information from an Enzo dataset? I'm currently running
version 3.7.1 of Python and 3.5.0 of yt.

Many thanks,
Sam Patrick
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org