Is there a easy way to use the install script but use system python and
system mpi4py from a supercomputer?
Or what's the best way to go about installing yt manually with system
I am trying to analyze some simulation results produced with FLASH. I have
simulations in Cylindrical geometry and other in Spherical geometry. I read
that the 3.0 version of YT supports curvilinear coordinates, but I can find
any references explaining the 'How to'. I was wondering if there is anyone
that can help me with that or direct me to some tutorial or anything like
Hi yt users,
I wrote basic yt script to make Jz profile of my simulation as follow:
import matplotlib as matplotlib
from yt.mods import *
import matplotlib.pyplot as plt
Nbin = 75
rmax = 1200 # in pc
index = 60
pf = load("../DD%04d/DD%04d" % (index,index))
rmin = [1e-4,2.0*pf.h.get_smallest_dx()*pf.units['pc']]
sphere = pf.h.sphere(center, (rmax, 'pc'))
bulk_velocity = sphere.quantities['BulkVelocity']()
profile = BinnedProfile1D(sphere, Nbin, "Radiuspc", max(rmin), rmax,
log_space=True, lazy_reader=True, end_collect=False)
plt.savefig('jprof2K_%04d' % index)
Now I would like to compute the AngularMomentum not according to x,
y,and z but according to a general axis (i.e. angular momentum axis).
Is there any simple way in yt to compute the AngularMomentum according
to the general axis?
Thank you in advance,
I'd like to try using the PerspectiveCamera instead of the normal
orthographic Camera. My script renders fine with Camera(), but I thought
that I should be able to just change Camera() to PerspectiveCamera() and it
should render with the perspective. Instead, I get an empty rendering --
is there something else one needs to do to use the PerspectiveCamera rather
than just changing the class name but otherwise keeping the argument list
Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY
>>> vr = halos.virial_radius() will give the virial radius of the halo.
>>> vm = halos.virial_mass() will give the virial mass of the halo in Msun, using only the particles in the halo.
Like this, is it possible for me to create a *new function for a
derived field* which can be calculated only up to virial radius. If
possible, How can I do this?
Reju Sam John