[yt-svn] commit/yt: 8 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Aug 27 10:57:27 PDT 2014
8 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/16edee728fbd/
Changeset: 16edee728fbd
Branch: yt
User: mzingale
Date: 2014-08-26 19:39:56
Summary: fix the parsing of the BoxLib frontend to handle all of the
dataset names
Affected #: 1 file
diff -r ba24b263607d3dcf750cdc974f99151480325bfa -r 16edee728fbd9c88de5b831a5867c6b2fce8e4af doc/helper_scripts/show_fields.py
--- a/doc/helper_scripts/show_fields.py
+++ b/doc/helper_scripts/show_fields.py
@@ -186,9 +186,13 @@
this_f = getattr(frontends_module, frontend)
field_info_names = [fi for fi in dir(this_f) if "FieldInfo" in fi]
dataset_names = [dset for dset in dir(this_f) if "Dataset" in dset]
+
if frontend == "sph":
field_info_names = \
['TipsyFieldInfo' if 'Tipsy' in d else 'SPHFieldInfo' for d in dataset_names]
+ elif frontend == "boxlib":
+ field_info_names = len(dataset_names)*["BoxlibFieldInfo"]
+
for dset_name, fi_name in zip(dataset_names, field_info_names):
fi = getattr(this_f, fi_name)
nfields = 0
https://bitbucket.org/yt_analysis/yt/commits/8f3b7990430b/
Changeset: 8f3b7990430b
Branch: yt
User: mzingale
Date: 2014-08-26 20:11:56
Summary: run the show_fields.py script
Affected #: 1 file
diff -r 16edee728fbd9c88de5b831a5867c6b2fce8e4af -r 8f3b7990430b9b6d92e9960598eecd25ff6aea46 doc/source/reference/field_list.rst
--- a/doc/source/reference/field_list.rst
+++ b/doc/source/reference/field_list.rst
@@ -853,9 +853,9 @@
raise NeedsParameter("omega_baryon")
co = data.ds.cosmology
# critical_density(z) ~ omega_lambda + omega_matter * (1 + z)^3
- # mean density(z) ~ omega_matter * (1 + z)^3
+ # mean matter density(z) ~ omega_matter * (1 + z)^3
return data[ftype, "density"] / omega_baryon / co.critical_density(0.0) / \
- (1.0 + data.ds.hubble_constant)**3
+ (1.0 + data.ds.current_redshift)**3
('gas', 'cell_mass')
@@ -1526,9 +1526,9 @@
co = data.ds.cosmology
# critical_density(z) ~ omega_lambda + omega_matter * (1 + z)^3
# mean density(z) ~ omega_matter * (1 + z)^3
- return data[ftype, "density"] / data.ds.omega_matter / \
+ return data[ftype, "matter_density"] / data.ds.omega_matter / \
co.critical_density(0.0) / \
- (1.0 + data.ds.hubble_constant)**3
+ (1.0 + data.ds.current_redshift)**3
('gas', 'mean_molecular_weight')
@@ -1747,7 +1747,11 @@
"bulk_%s" % basename)
theta = data['index', 'spherical_theta']
phi = data['index', 'spherical_phi']
- return get_sph_r_component(vectors, theta, phi, normal)
+ rv = get_sph_r_component(vectors, theta, phi, normal)
+ # Now, anywhere that radius is in fact zero, we want to zero out our
+ # return values.
+ rv[np.isnan(theta)] = 0.0
+ return rv
('gas', 'radial_velocity_absolute')
@@ -1766,7 +1770,11 @@
"bulk_%s" % basename)
theta = data['index', 'spherical_theta']
phi = data['index', 'spherical_phi']
- return get_sph_r_component(vectors, theta, phi, normal)
+ rv = get_sph_r_component(vectors, theta, phi, normal)
+ # Now, anywhere that radius is in fact zero, we want to zero out our
+ # return values.
+ rv[np.isnan(theta)] = 0.0
+ return rv
('gas', 'radiation_acceleration_x')
@@ -2702,12 +2710,8 @@
.. code-block:: python
def _cylindrical_r(field, data):
- center = data.get_field_parameter("center")
normal = data.get_field_parameter("normal")
- coords = obtain_rvec(data)
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
+ coords = get_periodic_rvec(data)
return data.ds.arr(get_cyl_r(coords, normal), "code_length").in_cgs()
@@ -2721,12 +2725,8 @@
.. code-block:: python
def _cylindrical_theta(field, data):
- center = data.get_field_parameter("center")
normal = data.get_field_parameter("normal")
- coords = obtain_rvec(data)
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
+ coords = get_periodic_rvec(data)
return get_cyl_theta(coords, normal)
@@ -2741,13 +2741,9 @@
.. code-block:: python
def _cylindrical_z(field, data):
- center = data.get_field_parameter("center")
normal = data.get_field_parameter("normal")
- coords = data.ds.arr(obtain_rvec(data), "code_length")
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
- return get_cyl_z(coords, normal).in_cgs()
+ coords = get_periodic_rvec(data)
+ return data.ds.arr(get_cyl_z(coords, normal), "code_length").in_cgs()
('index', 'disk_angle')
@@ -2903,12 +2899,8 @@
.. code-block:: python
def _spherical_phi(field, data):
- center = data.get_field_parameter("center")
normal = data.get_field_parameter("normal")
- coords = obtain_rvec(data)
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
+ coords = get_periodic_rvec(data)
return get_sph_phi(coords, normal)
@@ -2923,12 +2915,8 @@
.. code-block:: python
def _spherical_r(field, data):
- center = data.get_field_parameter("center")
- coords = data.ds.arr(obtain_rvec(data), "code_length")
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
- return get_sph_r(coords).in_cgs()
+ coords = get_periodic_rvec(data)
+ return data.ds.arr(get_sph_r(coords), "code_length").in_cgs()
('index', 'spherical_theta')
@@ -2941,12 +2929,8 @@
.. code-block:: python
def _spherical_theta(field, data):
- center = data.get_field_parameter("center")
normal = data.get_field_parameter("normal")
- coords = obtain_rvec(data)
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
+ coords = get_periodic_rvec(data)
return get_sph_theta(coords, normal)
@@ -4025,6 +4009,510 @@
* Units: :math:`\mathrm{\rm{code}~\rm{mass} / \rm{code}~\rm{time}}`
* Particle Type: True
+.. _Castro_specific_fields:
+
+Castro-Specific Fields
+----------------------
+
+('boxlib', 'density')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{3}}}`
+ * Aliased to: ``density``
+ * Particle Type: False
+
+('boxlib', 'eden')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length} \cdot \rm{code}~\rm{time}^{2}}}`
+ * Aliased to: ``energy_density``
+ * Particle Type: False
+
+('boxlib', 'xmom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_x``
+ * Particle Type: False
+
+('boxlib', 'ymom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_y``
+ * Particle Type: False
+
+('boxlib', 'zmom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_z``
+ * Particle Type: False
+
+('boxlib', 'temperature')
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Aliased to: ``temperature``
+ * Particle Type: False
+
+('boxlib', 'Temp')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Aliased to: ``temperature``
+ * Particle Type: False
+
+('boxlib', 'x_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_x``
+ * Particle Type: False
+
+('boxlib', 'y_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_y``
+ * Particle Type: False
+
+('boxlib', 'z_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_z``
+ * Particle Type: False
+
+('boxlib', 'xvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_x``
+ * Particle Type: False
+
+('boxlib', 'yvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_y``
+ * Particle Type: False
+
+('boxlib', 'zvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_z``
+ * Particle Type: False
+
+('io', 'particle_mass')
+^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{mass}}`
+ * Particle Type: True
+
+('io', 'particle_position_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_position_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_position_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_id')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Aliased to: ``particle_index``
+ * Particle Type: True
+
+('io', 'particle_mdot')
+^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{mass} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+.. _Maestro_specific_fields:
+
+Maestro-Specific Fields
+-----------------------
+
+('boxlib', 'density')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{3}}}`
+ * Aliased to: ``density``
+ * Particle Type: False
+
+('boxlib', 'eden')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length} \cdot \rm{code}~\rm{time}^{2}}}`
+ * Aliased to: ``energy_density``
+ * Particle Type: False
+
+('boxlib', 'xmom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_x``
+ * Particle Type: False
+
+('boxlib', 'ymom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_y``
+ * Particle Type: False
+
+('boxlib', 'zmom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_z``
+ * Particle Type: False
+
+('boxlib', 'temperature')
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Aliased to: ``temperature``
+ * Particle Type: False
+
+('boxlib', 'Temp')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Aliased to: ``temperature``
+ * Particle Type: False
+
+('boxlib', 'x_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_x``
+ * Particle Type: False
+
+('boxlib', 'y_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_y``
+ * Particle Type: False
+
+('boxlib', 'z_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_z``
+ * Particle Type: False
+
+('boxlib', 'xvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_x``
+ * Particle Type: False
+
+('boxlib', 'yvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_y``
+ * Particle Type: False
+
+('boxlib', 'zvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_z``
+ * Particle Type: False
+
+('io', 'particle_mass')
+^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{mass}}`
+ * Particle Type: True
+
+('io', 'particle_position_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_position_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_position_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_id')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Aliased to: ``particle_index``
+ * Particle Type: True
+
+('io', 'particle_mdot')
+^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{mass} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+.. _Orion_specific_fields:
+
+Orion-Specific Fields
+---------------------
+
+('boxlib', 'density')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{3}}}`
+ * Aliased to: ``density``
+ * Particle Type: False
+
+('boxlib', 'eden')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length} \cdot \rm{code}~\rm{time}^{2}}}`
+ * Aliased to: ``energy_density``
+ * Particle Type: False
+
+('boxlib', 'xmom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_x``
+ * Particle Type: False
+
+('boxlib', 'ymom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_y``
+ * Particle Type: False
+
+('boxlib', 'zmom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_z``
+ * Particle Type: False
+
+('boxlib', 'temperature')
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Aliased to: ``temperature``
+ * Particle Type: False
+
+('boxlib', 'Temp')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Aliased to: ``temperature``
+ * Particle Type: False
+
+('boxlib', 'x_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_x``
+ * Particle Type: False
+
+('boxlib', 'y_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_y``
+ * Particle Type: False
+
+('boxlib', 'z_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_z``
+ * Particle Type: False
+
+('boxlib', 'xvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_x``
+ * Particle Type: False
+
+('boxlib', 'yvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_y``
+ * Particle Type: False
+
+('boxlib', 'zvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_z``
+ * Particle Type: False
+
+('io', 'particle_mass')
+^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{mass}}`
+ * Particle Type: True
+
+('io', 'particle_position_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_position_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_position_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_id')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Aliased to: ``particle_index``
+ * Particle Type: True
+
+('io', 'particle_mdot')
+^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{mass} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
.. _Enzo_specific_fields:
Enzo-Specific Fields
https://bitbucket.org/yt_analysis/yt/commits/6166e154cf23/
Changeset: 6166e154cf23
Branch: yt
User: mzingale
Date: 2014-08-26 20:25:14
Summary: fix the fix -- we were not picking up the right fieldinfos for Maestro
and Castro
Affected #: 1 file
diff -r 8f3b7990430b9b6d92e9960598eecd25ff6aea46 -r 6166e154cf23f754e57027290ff495997793bfab doc/helper_scripts/show_fields.py
--- a/doc/helper_scripts/show_fields.py
+++ b/doc/helper_scripts/show_fields.py
@@ -191,7 +191,14 @@
field_info_names = \
['TipsyFieldInfo' if 'Tipsy' in d else 'SPHFieldInfo' for d in dataset_names]
elif frontend == "boxlib":
- field_info_names = len(dataset_names)*["BoxlibFieldInfo"]
+ field_info_names = []
+ for d in dataset_names:
+ if "Maestro" in d:
+ field_info_names.append("MaestroFieldInfo")
+ elif "Castro" in d:
+ field_info_names.append("CastroFieldInfo")
+ else:
+ field_info_names.append("BoxlibFieldInfo")
for dset_name, fi_name in zip(dataset_names, field_info_names):
fi = getattr(this_f, fi_name)
https://bitbucket.org/yt_analysis/yt/commits/d59d8ef3551d/
Changeset: d59d8ef3551d
Branch: yt
User: mzingale
Date: 2014-08-26 20:25:46
Summary: also import MaestroFieldInfo and CastroFieldInfo -- this lets the
show_fields.py script work
Affected #: 1 file
diff -r 6166e154cf23f754e57027290ff495997793bfab -r d59d8ef3551dd1be8f081bd2be23fcd44a956687 yt/frontends/boxlib/api.py
--- a/yt/frontends/boxlib/api.py
+++ b/yt/frontends/boxlib/api.py
@@ -23,7 +23,9 @@
MaestroDataset
from .fields import \
- BoxlibFieldInfo
+ BoxlibFieldInfo, \
+ MaestroFieldInfo, \
+ CastroFieldInfo
from .io import \
IOHandlerBoxlib
https://bitbucket.org/yt_analysis/yt/commits/743ed7f7f3e5/
Changeset: 743ed7f7f3e5
Branch: yt
User: mzingale
Date: 2014-08-26 20:26:41
Summary: new script output with correct Maestro fields
Affected #: 1 file
diff -r d59d8ef3551dd1be8f081bd2be23fcd44a956687 -r 743ed7f7f3e57ce3c82989b66ca4aaade4f0a97f doc/source/reference/field_list.rst
--- a/doc/source/reference/field_list.rst
+++ b/doc/source/reference/field_list.rst
@@ -4017,333 +4017,426 @@
('boxlib', 'density')
^^^^^^^^^^^^^^^^^^^^^
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{3}}}`
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{3}}}`
* Aliased to: ``density``
* Particle Type: False
-('boxlib', 'eden')
-^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length} \cdot \rm{code}~\rm{time}^{2}}}`
- * Aliased to: ``energy_density``
- * Particle Type: False
-
('boxlib', 'xmom')
^^^^^^^^^^^^^^^^^^
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{2} \cdot \rm{s}}}`
* Aliased to: ``momentum_x``
* Particle Type: False
('boxlib', 'ymom')
^^^^^^^^^^^^^^^^^^
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{2} \cdot \rm{s}}}`
* Aliased to: ``momentum_y``
* Particle Type: False
('boxlib', 'zmom')
^^^^^^^^^^^^^^^^^^
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{2} \cdot \rm{s}}}`
* Aliased to: ``momentum_z``
* Particle Type: False
-('boxlib', 'temperature')
-^^^^^^^^^^^^^^^^^^^^^^^^^
+('boxlib', 'x_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_x``
+ * Particle Type: False
+
+('boxlib', 'y_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_y``
+ * Particle Type: False
+
+('boxlib', 'z_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_z``
+ * Particle Type: False
+
+('boxlib', 'rho_E')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Aliased to: ``energy_density``
+ * Particle Type: False
+
+('boxlib', 'rho_e')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'Temp')
+^^^^^^^^^^^^^^^^^^
* Units: :math:`\mathrm{\rm{K}}`
* Aliased to: ``temperature``
* Particle Type: False
-('boxlib', 'Temp')
+('boxlib', 'grav_x')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{cm}}{\rm{s}^{2}}}`
+ * Particle Type: False
+
+('boxlib', 'grav_y')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{cm}}{\rm{s}^{2}}}`
+ * Particle Type: False
+
+('boxlib', 'grav_z')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{cm}}{\rm{s}^{2}}}`
+ * Particle Type: False
+
+('boxlib', 'pressure')
+^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{dyne}}{\rm{cm}^{2}}}`
+ * Particle Type: False
+
+('boxlib', 'kineng')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'soundspeed')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``sound_speed``
+ * Particle Type: False
+
+('boxlib', 'Machnumber')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Aliased to: ``mach_number``
+ * Particle Type: False
+
+('boxlib', 'entropy')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{K} \cdot \rm{g}}}`
+ * Aliased to: ``entropy``
+ * Particle Type: False
+
+('boxlib', 'magvort')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{1 / \rm{s}}`
+ * Aliased to: ``vorticity_magnitude``
+ * Particle Type: False
+
+('boxlib', 'divu')
^^^^^^^^^^^^^^^^^^
- * Units: :math:`\mathrm{\rm{K}}`
- * Aliased to: ``temperature``
- * Particle Type: False
-
-('boxlib', 'x_velocity')
-^^^^^^^^^^^^^^^^^^^^^^^^
+ * Units: :math:`\mathrm{1 / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'eint_E')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{erg} / \rm{g}}`
+ * Particle Type: False
+
+('boxlib', 'eint_e')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{erg} / \rm{g}}`
+ * Particle Type: False
+
+('boxlib', 'magvel')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_magnitude``
+ * Particle Type: False
+
+('boxlib', 'radvel')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'magmom')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} \cdot \rm{g} / \rm{s}}`
+ * Aliased to: ``momentum_magnitude``
+ * Particle Type: False
+
+('boxlib', 'maggrav')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{cm}}{\rm{s}^{2}}}`
+ * Particle Type: False
+
+('boxlib', 'phiGrav')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{erg} / \rm{g}}`
+ * Particle Type: False
+
+.. _Maestro_specific_fields:
+
+Maestro-Specific Fields
+-----------------------
+
+('boxlib', 'density')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{3}}}`
+ * Aliased to: ``density``
+ * Particle Type: False
+
+('boxlib', 'x_vel')
+^^^^^^^^^^^^^^^^^^^
* Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
* Aliased to: ``velocity_x``
* Particle Type: False
-('boxlib', 'y_velocity')
-^^^^^^^^^^^^^^^^^^^^^^^^
+('boxlib', 'y_vel')
+^^^^^^^^^^^^^^^^^^^
* Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
* Aliased to: ``velocity_y``
* Particle Type: False
-('boxlib', 'z_velocity')
-^^^^^^^^^^^^^^^^^^^^^^^^
+('boxlib', 'z_vel')
+^^^^^^^^^^^^^^^^^^^
* Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
* Aliased to: ``velocity_z``
* Particle Type: False
-('boxlib', 'xvel')
+('boxlib', 'magvel')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_magnitude``
+ * Particle Type: False
+
+('boxlib', 'radial_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'tfromp')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Particle Type: False
+
+('boxlib', 'tfromh')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Particle Type: False
+
+('boxlib', 'Machnumber')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Aliased to: ``mach_number``
+ * Particle Type: False
+
+('boxlib', 'S')
+^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{1 / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'ad_excess')
+^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'deltaT')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'deltagamma')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'deltap')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'divw0')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{1 / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'entropy')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{K} \cdot \rm{g}}}`
+ * Aliased to: ``entropy``
+ * Particle Type: False
+
+('boxlib', 'entropypert')
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'enucdot')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{g} \cdot \rm{s}}}`
+ * Particle Type: False
+
+('boxlib', 'gpi_x')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{dyne}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'gpi_y')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{dyne}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'gpi_z')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{dyne}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'h')
+^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{erg} / \rm{g}}`
+ * Particle Type: False
+
+('boxlib', 'h0')
+^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{erg} / \rm{g}}`
+ * Particle Type: False
+
+('boxlib', 'momentum')
+^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} \cdot \rm{g} / \rm{s}}`
+ * Aliased to: ``momentum_magnitude``
+ * Particle Type: False
+
+('boxlib', 'p0')
+^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'p0pluspi')
+^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'pi')
+^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'pioverp0')
+^^^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'rho0')
^^^^^^^^^^^^^^^^^^
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'rhoh')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Aliased to: ``enthalpy_density``
+ * Particle Type: False
+
+('boxlib', 'rhoh0')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'rhohpert')
+^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'rhopert')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'soundspeed')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
* Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
- * Aliased to: ``velocity_x``
- * Particle Type: False
-
-('boxlib', 'yvel')
+ * Aliased to: ``sound_speed``
+ * Particle Type: False
+
+('boxlib', 'sponge')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'tpert')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Particle Type: False
+
+('boxlib', 'vort')
^^^^^^^^^^^^^^^^^^
+ * Units: :math:`\mathrm{1 / \rm{s}}`
+ * Aliased to: ``vorticity_magnitude``
+ * Particle Type: False
+
+('boxlib', 'w0_x')
+^^^^^^^^^^^^^^^^^^
+
* Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
- * Aliased to: ``velocity_y``
- * Particle Type: False
-
-('boxlib', 'zvel')
+ * Particle Type: False
+
+('boxlib', 'w0_y')
^^^^^^^^^^^^^^^^^^
* Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
- * Aliased to: ``velocity_z``
- * Particle Type: False
-
-('io', 'particle_mass')
-^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{mass}}`
- * Particle Type: True
-
-('io', 'particle_position_x')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
- * Particle Type: True
-
-('io', 'particle_position_y')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
- * Particle Type: True
-
-('io', 'particle_position_z')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
- * Particle Type: True
-
-('io', 'particle_momentum_x')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
- * Particle Type: True
-
-('io', 'particle_momentum_y')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
- * Particle Type: True
-
-('io', 'particle_momentum_z')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
- * Particle Type: True
-
-('io', 'particle_angmomen_x')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
- * Particle Type: True
-
-('io', 'particle_angmomen_y')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
- * Particle Type: True
-
-('io', 'particle_angmomen_z')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
- * Particle Type: True
-
-('io', 'particle_id')
-^^^^^^^^^^^^^^^^^^^^^
-
- * Aliased to: ``particle_index``
- * Particle Type: True
-
-('io', 'particle_mdot')
-^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{mass} / \rm{code}~\rm{time}}`
- * Particle Type: True
-
-.. _Maestro_specific_fields:
-
-Maestro-Specific Fields
------------------------
-
-('boxlib', 'density')
-^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{3}}}`
- * Aliased to: ``density``
- * Particle Type: False
-
-('boxlib', 'eden')
+ * Particle Type: False
+
+('boxlib', 'w0_z')
^^^^^^^^^^^^^^^^^^
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length} \cdot \rm{code}~\rm{time}^{2}}}`
- * Aliased to: ``energy_density``
- * Particle Type: False
-
-('boxlib', 'xmom')
-^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
- * Aliased to: ``momentum_x``
- * Particle Type: False
-
-('boxlib', 'ymom')
-^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
- * Aliased to: ``momentum_y``
- * Particle Type: False
-
-('boxlib', 'zmom')
-^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
- * Aliased to: ``momentum_z``
- * Particle Type: False
-
-('boxlib', 'temperature')
-^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{K}}`
- * Aliased to: ``temperature``
- * Particle Type: False
-
-('boxlib', 'Temp')
-^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{K}}`
- * Aliased to: ``temperature``
- * Particle Type: False
-
-('boxlib', 'x_velocity')
-^^^^^^^^^^^^^^^^^^^^^^^^
-
* Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
- * Aliased to: ``velocity_x``
- * Particle Type: False
-
-('boxlib', 'y_velocity')
-^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
- * Aliased to: ``velocity_y``
- * Particle Type: False
-
-('boxlib', 'z_velocity')
-^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
- * Aliased to: ``velocity_z``
- * Particle Type: False
-
-('boxlib', 'xvel')
-^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
- * Aliased to: ``velocity_x``
- * Particle Type: False
-
-('boxlib', 'yvel')
-^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
- * Aliased to: ``velocity_y``
- * Particle Type: False
-
-('boxlib', 'zvel')
-^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
- * Aliased to: ``velocity_z``
- * Particle Type: False
-
-('io', 'particle_mass')
-^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{mass}}`
- * Particle Type: True
-
-('io', 'particle_position_x')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
- * Particle Type: True
-
-('io', 'particle_position_y')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
- * Particle Type: True
-
-('io', 'particle_position_z')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
- * Particle Type: True
-
-('io', 'particle_momentum_x')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
- * Particle Type: True
-
-('io', 'particle_momentum_y')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
- * Particle Type: True
-
-('io', 'particle_momentum_z')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
- * Particle Type: True
-
-('io', 'particle_angmomen_x')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
- * Particle Type: True
-
-('io', 'particle_angmomen_y')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
- * Particle Type: True
-
-('io', 'particle_angmomen_z')
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
- * Particle Type: True
-
-('io', 'particle_id')
-^^^^^^^^^^^^^^^^^^^^^
-
- * Aliased to: ``particle_index``
- * Particle Type: True
-
-('io', 'particle_mdot')
-^^^^^^^^^^^^^^^^^^^^^^^
-
- * Units: :math:`\mathrm{\rm{code}~\rm{mass} / \rm{code}~\rm{time}}`
- * Particle Type: True
+ * Particle Type: False
.. _Orion_specific_fields:
https://bitbucket.org/yt_analysis/yt/commits/2448d2d0ddbf/
Changeset: 2448d2d0ddbf
Branch: yt
User: mzingale
Date: 2014-08-26 20:54:30
Summary: add some more Maestro caveats
Affected #: 1 file
diff -r 743ed7f7f3e57ce3c82989b66ca4aaade4f0a97f -r 2448d2d0ddbf773e128413c178a729c3b90b1e39 doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -138,14 +138,14 @@
.. _loading-orion-data:
-Boxlib Data
+BoxLib Data
-----------
-yt has been tested with Boxlib data generated by Orion, Nyx, Maestro and
+yt has been tested with BoxLib data generated by Orion, Nyx, Maestro and
Castro. Currently it is cared for by a combination of Andrew Myers, Chris
Malone, Matthew Turk, and Mike Zingale.
-To load a Boxlib dataset, you can use the ``yt.load`` command on
+To load a BoxLib dataset, you can use the ``yt.load`` command on
the plotfile directory name. In general, you must also have the
``inputs`` file in the base directory, but Maestro and Castro will get
all the necessary parameter information from the ``job_info`` file in
@@ -182,9 +182,13 @@
* yt does not read the Maestro base state (although you can have Maestro
map it to a full Cartesian state variable before writing the plotfile
- to get around this).
+ to get around this). E-mail the dev list if you need this support.
* yt does not know about particles in Maestro.
-
+* For Maestro, yt aliases either "tfromp" or "tfromh to" ``temperature``
+ depending on the value of the ``use_tfromp`` runtime parameter.
+* For Maestro, some velocity fields like ``velocity_magnitude`` or
+ ``mach_number`` will always the on-disk value, and not have yt
+ derive it, due to the complex interplay of the base state velocity.
.. _loading-enzo-data:
https://bitbucket.org/yt_analysis/yt/commits/5615739b9085/
Changeset: 5615739b9085
Branch: yt
User: mzingale
Date: 2014-08-26 21:02:40
Summary: fix typo Chris noted in the PR
Affected #: 1 file
diff -r 2448d2d0ddbf773e128413c178a729c3b90b1e39 -r 5615739b9085637b4d1b61d390c22abfc52a591f doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -187,7 +187,7 @@
* For Maestro, yt aliases either "tfromp" or "tfromh to" ``temperature``
depending on the value of the ``use_tfromp`` runtime parameter.
* For Maestro, some velocity fields like ``velocity_magnitude`` or
- ``mach_number`` will always the on-disk value, and not have yt
+ ``mach_number`` will always use the on-disk value, and not have yt
derive it, due to the complex interplay of the base state velocity.
.. _loading-enzo-data:
https://bitbucket.org/yt_analysis/yt/commits/14d97680eb29/
Changeset: 14d97680eb29
Branch: yt
User: MatthewTurk
Date: 2014-08-27 19:57:19
Summary: Merged in mzingale/yt-new (pull request #1167)
fix the parsing of the BoxLib frontend to handle all of the datasets
Affected #: 4 files
diff -r b715815f7976a4b42d58df16a299163f8f013e1b -r 14d97680eb292d58649f688e210b61460dad0b8b doc/helper_scripts/show_fields.py
--- a/doc/helper_scripts/show_fields.py
+++ b/doc/helper_scripts/show_fields.py
@@ -186,9 +186,20 @@
this_f = getattr(frontends_module, frontend)
field_info_names = [fi for fi in dir(this_f) if "FieldInfo" in fi]
dataset_names = [dset for dset in dir(this_f) if "Dataset" in dset]
+
if frontend == "sph":
field_info_names = \
['TipsyFieldInfo' if 'Tipsy' in d else 'SPHFieldInfo' for d in dataset_names]
+ elif frontend == "boxlib":
+ field_info_names = []
+ for d in dataset_names:
+ if "Maestro" in d:
+ field_info_names.append("MaestroFieldInfo")
+ elif "Castro" in d:
+ field_info_names.append("CastroFieldInfo")
+ else:
+ field_info_names.append("BoxlibFieldInfo")
+
for dset_name, fi_name in zip(dataset_names, field_info_names):
fi = getattr(this_f, fi_name)
nfields = 0
diff -r b715815f7976a4b42d58df16a299163f8f013e1b -r 14d97680eb292d58649f688e210b61460dad0b8b doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -138,14 +138,14 @@
.. _loading-orion-data:
-Boxlib Data
+BoxLib Data
-----------
-yt has been tested with Boxlib data generated by Orion, Nyx, Maestro and
+yt has been tested with BoxLib data generated by Orion, Nyx, Maestro and
Castro. Currently it is cared for by a combination of Andrew Myers, Chris
Malone, Matthew Turk, and Mike Zingale.
-To load a Boxlib dataset, you can use the ``yt.load`` command on
+To load a BoxLib dataset, you can use the ``yt.load`` command on
the plotfile directory name. In general, you must also have the
``inputs`` file in the base directory, but Maestro and Castro will get
all the necessary parameter information from the ``job_info`` file in
@@ -182,9 +182,13 @@
* yt does not read the Maestro base state (although you can have Maestro
map it to a full Cartesian state variable before writing the plotfile
- to get around this).
+ to get around this). E-mail the dev list if you need this support.
* yt does not know about particles in Maestro.
-
+* For Maestro, yt aliases either "tfromp" or "tfromh to" ``temperature``
+ depending on the value of the ``use_tfromp`` runtime parameter.
+* For Maestro, some velocity fields like ``velocity_magnitude`` or
+ ``mach_number`` will always use the on-disk value, and not have yt
+ derive it, due to the complex interplay of the base state velocity.
.. _loading-enzo-data:
diff -r b715815f7976a4b42d58df16a299163f8f013e1b -r 14d97680eb292d58649f688e210b61460dad0b8b doc/source/reference/field_list.rst
--- a/doc/source/reference/field_list.rst
+++ b/doc/source/reference/field_list.rst
@@ -853,9 +853,9 @@
raise NeedsParameter("omega_baryon")
co = data.ds.cosmology
# critical_density(z) ~ omega_lambda + omega_matter * (1 + z)^3
- # mean density(z) ~ omega_matter * (1 + z)^3
+ # mean matter density(z) ~ omega_matter * (1 + z)^3
return data[ftype, "density"] / omega_baryon / co.critical_density(0.0) / \
- (1.0 + data.ds.hubble_constant)**3
+ (1.0 + data.ds.current_redshift)**3
('gas', 'cell_mass')
@@ -1526,9 +1526,9 @@
co = data.ds.cosmology
# critical_density(z) ~ omega_lambda + omega_matter * (1 + z)^3
# mean density(z) ~ omega_matter * (1 + z)^3
- return data[ftype, "density"] / data.ds.omega_matter / \
+ return data[ftype, "matter_density"] / data.ds.omega_matter / \
co.critical_density(0.0) / \
- (1.0 + data.ds.hubble_constant)**3
+ (1.0 + data.ds.current_redshift)**3
('gas', 'mean_molecular_weight')
@@ -1747,7 +1747,11 @@
"bulk_%s" % basename)
theta = data['index', 'spherical_theta']
phi = data['index', 'spherical_phi']
- return get_sph_r_component(vectors, theta, phi, normal)
+ rv = get_sph_r_component(vectors, theta, phi, normal)
+ # Now, anywhere that radius is in fact zero, we want to zero out our
+ # return values.
+ rv[np.isnan(theta)] = 0.0
+ return rv
('gas', 'radial_velocity_absolute')
@@ -1766,7 +1770,11 @@
"bulk_%s" % basename)
theta = data['index', 'spherical_theta']
phi = data['index', 'spherical_phi']
- return get_sph_r_component(vectors, theta, phi, normal)
+ rv = get_sph_r_component(vectors, theta, phi, normal)
+ # Now, anywhere that radius is in fact zero, we want to zero out our
+ # return values.
+ rv[np.isnan(theta)] = 0.0
+ return rv
('gas', 'radiation_acceleration_x')
@@ -2702,12 +2710,8 @@
.. code-block:: python
def _cylindrical_r(field, data):
- center = data.get_field_parameter("center")
normal = data.get_field_parameter("normal")
- coords = obtain_rvec(data)
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
+ coords = get_periodic_rvec(data)
return data.ds.arr(get_cyl_r(coords, normal), "code_length").in_cgs()
@@ -2721,12 +2725,8 @@
.. code-block:: python
def _cylindrical_theta(field, data):
- center = data.get_field_parameter("center")
normal = data.get_field_parameter("normal")
- coords = obtain_rvec(data)
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
+ coords = get_periodic_rvec(data)
return get_cyl_theta(coords, normal)
@@ -2741,13 +2741,9 @@
.. code-block:: python
def _cylindrical_z(field, data):
- center = data.get_field_parameter("center")
normal = data.get_field_parameter("normal")
- coords = data.ds.arr(obtain_rvec(data), "code_length")
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
- return get_cyl_z(coords, normal).in_cgs()
+ coords = get_periodic_rvec(data)
+ return data.ds.arr(get_cyl_z(coords, normal), "code_length").in_cgs()
('index', 'disk_angle')
@@ -2903,12 +2899,8 @@
.. code-block:: python
def _spherical_phi(field, data):
- center = data.get_field_parameter("center")
normal = data.get_field_parameter("normal")
- coords = obtain_rvec(data)
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
+ coords = get_periodic_rvec(data)
return get_sph_phi(coords, normal)
@@ -2923,12 +2915,8 @@
.. code-block:: python
def _spherical_r(field, data):
- center = data.get_field_parameter("center")
- coords = data.ds.arr(obtain_rvec(data), "code_length")
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
- return get_sph_r(coords).in_cgs()
+ coords = get_periodic_rvec(data)
+ return data.ds.arr(get_sph_r(coords), "code_length").in_cgs()
('index', 'spherical_theta')
@@ -2941,12 +2929,8 @@
.. code-block:: python
def _spherical_theta(field, data):
- center = data.get_field_parameter("center")
normal = data.get_field_parameter("normal")
- coords = obtain_rvec(data)
- coords[0,...] -= center[0]
- coords[1,...] -= center[1]
- coords[2,...] -= center[2]
+ coords = get_periodic_rvec(data)
return get_sph_theta(coords, normal)
@@ -4025,6 +4009,603 @@
* Units: :math:`\mathrm{\rm{code}~\rm{mass} / \rm{code}~\rm{time}}`
* Particle Type: True
+.. _Castro_specific_fields:
+
+Castro-Specific Fields
+----------------------
+
+('boxlib', 'density')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{3}}}`
+ * Aliased to: ``density``
+ * Particle Type: False
+
+('boxlib', 'xmom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{2} \cdot \rm{s}}}`
+ * Aliased to: ``momentum_x``
+ * Particle Type: False
+
+('boxlib', 'ymom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{2} \cdot \rm{s}}}`
+ * Aliased to: ``momentum_y``
+ * Particle Type: False
+
+('boxlib', 'zmom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{2} \cdot \rm{s}}}`
+ * Aliased to: ``momentum_z``
+ * Particle Type: False
+
+('boxlib', 'x_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_x``
+ * Particle Type: False
+
+('boxlib', 'y_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_y``
+ * Particle Type: False
+
+('boxlib', 'z_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_z``
+ * Particle Type: False
+
+('boxlib', 'rho_E')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Aliased to: ``energy_density``
+ * Particle Type: False
+
+('boxlib', 'rho_e')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'Temp')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Aliased to: ``temperature``
+ * Particle Type: False
+
+('boxlib', 'grav_x')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{cm}}{\rm{s}^{2}}}`
+ * Particle Type: False
+
+('boxlib', 'grav_y')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{cm}}{\rm{s}^{2}}}`
+ * Particle Type: False
+
+('boxlib', 'grav_z')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{cm}}{\rm{s}^{2}}}`
+ * Particle Type: False
+
+('boxlib', 'pressure')
+^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{dyne}}{\rm{cm}^{2}}}`
+ * Particle Type: False
+
+('boxlib', 'kineng')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'soundspeed')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``sound_speed``
+ * Particle Type: False
+
+('boxlib', 'Machnumber')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Aliased to: ``mach_number``
+ * Particle Type: False
+
+('boxlib', 'entropy')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{K} \cdot \rm{g}}}`
+ * Aliased to: ``entropy``
+ * Particle Type: False
+
+('boxlib', 'magvort')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{1 / \rm{s}}`
+ * Aliased to: ``vorticity_magnitude``
+ * Particle Type: False
+
+('boxlib', 'divu')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{1 / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'eint_E')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{erg} / \rm{g}}`
+ * Particle Type: False
+
+('boxlib', 'eint_e')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{erg} / \rm{g}}`
+ * Particle Type: False
+
+('boxlib', 'magvel')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_magnitude``
+ * Particle Type: False
+
+('boxlib', 'radvel')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'magmom')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} \cdot \rm{g} / \rm{s}}`
+ * Aliased to: ``momentum_magnitude``
+ * Particle Type: False
+
+('boxlib', 'maggrav')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{cm}}{\rm{s}^{2}}}`
+ * Particle Type: False
+
+('boxlib', 'phiGrav')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{erg} / \rm{g}}`
+ * Particle Type: False
+
+.. _Maestro_specific_fields:
+
+Maestro-Specific Fields
+-----------------------
+
+('boxlib', 'density')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{3}}}`
+ * Aliased to: ``density``
+ * Particle Type: False
+
+('boxlib', 'x_vel')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_x``
+ * Particle Type: False
+
+('boxlib', 'y_vel')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_y``
+ * Particle Type: False
+
+('boxlib', 'z_vel')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_z``
+ * Particle Type: False
+
+('boxlib', 'magvel')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_magnitude``
+ * Particle Type: False
+
+('boxlib', 'radial_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'tfromp')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Particle Type: False
+
+('boxlib', 'tfromh')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Particle Type: False
+
+('boxlib', 'Machnumber')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Aliased to: ``mach_number``
+ * Particle Type: False
+
+('boxlib', 'S')
+^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{1 / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'ad_excess')
+^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'deltaT')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'deltagamma')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'deltap')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'divw0')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{1 / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'entropy')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{K} \cdot \rm{g}}}`
+ * Aliased to: ``entropy``
+ * Particle Type: False
+
+('boxlib', 'entropypert')
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'enucdot')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{g} \cdot \rm{s}}}`
+ * Particle Type: False
+
+('boxlib', 'gpi_x')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{dyne}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'gpi_y')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{dyne}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'gpi_z')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{dyne}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'h')
+^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{erg} / \rm{g}}`
+ * Particle Type: False
+
+('boxlib', 'h0')
+^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{erg} / \rm{g}}`
+ * Particle Type: False
+
+('boxlib', 'momentum')
+^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} \cdot \rm{g} / \rm{s}}`
+ * Aliased to: ``momentum_magnitude``
+ * Particle Type: False
+
+('boxlib', 'p0')
+^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'p0pluspi')
+^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'pi')
+^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'pioverp0')
+^^^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'rho0')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'rhoh')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Aliased to: ``enthalpy_density``
+ * Particle Type: False
+
+('boxlib', 'rhoh0')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'rhohpert')
+^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{erg}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'rhopert')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{g}}{\rm{cm}^{3}}}`
+ * Particle Type: False
+
+('boxlib', 'soundspeed')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``sound_speed``
+ * Particle Type: False
+
+('boxlib', 'sponge')
+^^^^^^^^^^^^^^^^^^^^
+
+ * Particle Type: False
+
+('boxlib', 'tpert')
+^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Particle Type: False
+
+('boxlib', 'vort')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{1 / \rm{s}}`
+ * Aliased to: ``vorticity_magnitude``
+ * Particle Type: False
+
+('boxlib', 'w0_x')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'w0_y')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Particle Type: False
+
+('boxlib', 'w0_z')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Particle Type: False
+
+.. _Orion_specific_fields:
+
+Orion-Specific Fields
+---------------------
+
+('boxlib', 'density')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{3}}}`
+ * Aliased to: ``density``
+ * Particle Type: False
+
+('boxlib', 'eden')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length} \cdot \rm{code}~\rm{time}^{2}}}`
+ * Aliased to: ``energy_density``
+ * Particle Type: False
+
+('boxlib', 'xmom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_x``
+ * Particle Type: False
+
+('boxlib', 'ymom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_y``
+ * Particle Type: False
+
+('boxlib', 'zmom')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Aliased to: ``momentum_z``
+ * Particle Type: False
+
+('boxlib', 'temperature')
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Aliased to: ``temperature``
+ * Particle Type: False
+
+('boxlib', 'Temp')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{K}}`
+ * Aliased to: ``temperature``
+ * Particle Type: False
+
+('boxlib', 'x_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_x``
+ * Particle Type: False
+
+('boxlib', 'y_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_y``
+ * Particle Type: False
+
+('boxlib', 'z_velocity')
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_z``
+ * Particle Type: False
+
+('boxlib', 'xvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_x``
+ * Particle Type: False
+
+('boxlib', 'yvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_y``
+ * Particle Type: False
+
+('boxlib', 'zvel')
+^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{cm} / \rm{s}}`
+ * Aliased to: ``velocity_z``
+ * Particle Type: False
+
+('io', 'particle_mass')
+^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{mass}}`
+ * Particle Type: True
+
+('io', 'particle_position_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_position_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_position_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_momentum_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\frac{\rm{code}~\rm{mass}}{\rm{code}~\rm{length}^{2} \cdot \rm{code}~\rm{time}}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_x')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_y')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_angmomen_z')
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{length}^{2} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
+('io', 'particle_id')
+^^^^^^^^^^^^^^^^^^^^^
+
+ * Aliased to: ``particle_index``
+ * Particle Type: True
+
+('io', 'particle_mdot')
+^^^^^^^^^^^^^^^^^^^^^^^
+
+ * Units: :math:`\mathrm{\rm{code}~\rm{mass} / \rm{code}~\rm{time}}`
+ * Particle Type: True
+
.. _Enzo_specific_fields:
Enzo-Specific Fields
diff -r b715815f7976a4b42d58df16a299163f8f013e1b -r 14d97680eb292d58649f688e210b61460dad0b8b yt/frontends/boxlib/api.py
--- a/yt/frontends/boxlib/api.py
+++ b/yt/frontends/boxlib/api.py
@@ -23,7 +23,9 @@
MaestroDataset
from .fields import \
- BoxlibFieldInfo
+ BoxlibFieldInfo, \
+ MaestroFieldInfo, \
+ CastroFieldInfo
from .io import \
IOHandlerBoxlib
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list