OWLS Examples

Setup

The first thing you will need to run these examples is a working installation of yt. The author or these examples followed the instructions under “Get yt: from source” at https://yt-project.org/ to install an up to date development version of yt.

We will be working with an OWLS snapshot: snapshot_033

Now we will tell the notebook that we want figures produced inline.

[1]:
%matplotlib inline

Loading

[2]:
import yt

Now we will load the snapshot.

[3]:
ds = yt.load_sample("snapshot_033")

Set a YTRegion that contains all the data.

[4]:
ad = ds.all_data()

Inspecting

The dataset can tell us what fields it knows about,

[5]:
ds.field_list
[5]:
[('PartType0', 'AExpMaximumEntropy'),
 ('PartType0', 'AExpMaximumTemperature'),
 ('PartType0', 'Carbon'),
 ('PartType0', 'Coordinates'),
 ('PartType0', 'Density'),
 ('PartType0', 'Helium'),
 ('PartType0', 'Hydrogen'),
 ('PartType0', 'InternalEnergy'),
 ('PartType0', 'Iron'),
 ('PartType0', 'IronFromSNIa'),
 ('PartType0', 'Magnesium'),
 ('PartType0', 'Mass'),
 ('PartType0', 'MaximumEntropy'),
 ('PartType0', 'MaximumTemperature'),
 ('PartType0', 'Metallicity'),
 ('PartType0', 'MetallicityWeightedPotential'),
 ('PartType0', 'MetallicityWeightedRedshift'),
 ('PartType0', 'Neon'),
 ('PartType0', 'Nitrogen'),
 ('PartType0', 'OnEquationOfState'),
 ('PartType0', 'Oxygen'),
 ('PartType0', 'ParticleIDs'),
 ('PartType0', 'Potential'),
 ('PartType0', 'Silicon'),
 ('PartType0', 'SmoothedIronFromSNIa'),
 ('PartType0', 'SmoothedMetallicity'),
 ('PartType0', 'SmoothingLength'),
 ('PartType0', 'StarFormationRate'),
 ('PartType0', 'Temperature'),
 ('PartType0', 'Velocity'),
 ('PartType0', 'WindFlag'),
 ('PartType1', 'Coordinates'),
 ('PartType1', 'Mass'),
 ('PartType1', 'ParticleIDs'),
 ('PartType1', 'Potential'),
 ('PartType1', 'Velocity'),
 ('PartType4', 'AExpMaximumEntropy'),
 ('PartType4', 'AExpMaximumTemperature'),
 ('PartType4', 'Carbon'),
 ('PartType4', 'Coordinates'),
 ('PartType4', 'Density'),
 ('PartType4', 'Helium'),
 ('PartType4', 'Hydrogen'),
 ('PartType4', 'InitialMass'),
 ('PartType4', 'Iron'),
 ('PartType4', 'IronFromSNIa'),
 ('PartType4', 'Magnesium'),
 ('PartType4', 'Mass'),
 ('PartType4', 'MaximumEntropy'),
 ('PartType4', 'MaximumTemperature'),
 ('PartType4', 'Metallicity'),
 ('PartType4', 'MetallicityWeightedPotential'),
 ('PartType4', 'MetallicityWeightedRedshift'),
 ('PartType4', 'Neon'),
 ('PartType4', 'Nitrogen'),
 ('PartType4', 'Oxygen'),
 ('PartType4', 'ParticleIDs'),
 ('PartType4', 'Potential'),
 ('PartType4', 'Silicon'),
 ('PartType4', 'SmoothedIronFromSNIa'),
 ('PartType4', 'SmoothedMetallicity'),
 ('PartType4', 'SmoothingLength'),
 ('PartType4', 'StellarFormationTime'),
 ('PartType4', 'Velocity'),
 ('PartType4', 'WindFlag'),
 ('all', 'Coordinates'),
 ('all', 'Mass'),
 ('all', 'ParticleIDs'),
 ('all', 'Potential'),
 ('all', 'Velocity'),
 ('nbody', 'Coordinates'),
 ('nbody', 'Mass'),
 ('nbody', 'ParticleIDs'),
 ('nbody', 'Potential'),
 ('nbody', 'Velocity')]
[6]:
ds.derived_field_list
[6]:
[('PartType0', 'AExpMaximumEntropy'),
 ('PartType0', 'AExpMaximumTemperature'),
 ('PartType0', 'C_density'),
 ('PartType0', 'C_fraction'),
 ('PartType0', 'C_mass'),
 ('PartType0', 'C_nuclei_density'),
 ('PartType0', 'C_number_density'),
 ('PartType0', 'C_p0_density'),
 ('PartType0', 'C_p0_fraction'),
 ('PartType0', 'C_p0_mass'),
 ('PartType0', 'C_p0_number_density'),
 ('PartType0', 'C_p1_density'),
 ('PartType0', 'C_p1_fraction'),
 ('PartType0', 'C_p1_mass'),
 ('PartType0', 'C_p1_number_density'),
 ('PartType0', 'C_p2_density'),
 ('PartType0', 'C_p2_fraction'),
 ('PartType0', 'C_p2_mass'),
 ('PartType0', 'C_p2_number_density'),
 ('PartType0', 'C_p3_density'),
 ('PartType0', 'C_p3_fraction'),
 ('PartType0', 'C_p3_mass'),
 ('PartType0', 'C_p3_number_density'),
 ('PartType0', 'C_p4_density'),
 ('PartType0', 'C_p4_fraction'),
 ('PartType0', 'C_p4_mass'),
 ('PartType0', 'C_p4_number_density'),
 ('PartType0', 'C_p5_density'),
 ('PartType0', 'C_p5_fraction'),
 ('PartType0', 'C_p5_mass'),
 ('PartType0', 'C_p5_number_density'),
 ('PartType0', 'Carbon'),
 ('PartType0', 'Coordinates'),
 ('PartType0', 'Density'),
 ('PartType0', 'Fe_density'),
 ('PartType0', 'Fe_fraction'),
 ('PartType0', 'Fe_mass'),
 ('PartType0', 'Fe_nuclei_density'),
 ('PartType0', 'Fe_number_density'),
 ('PartType0', 'Fe_p16_density'),
 ('PartType0', 'Fe_p16_fraction'),
 ('PartType0', 'Fe_p16_mass'),
 ('PartType0', 'Fe_p16_number_density'),
 ('PartType0', 'Fe_p1_density'),
 ('PartType0', 'Fe_p1_fraction'),
 ('PartType0', 'Fe_p1_mass'),
 ('PartType0', 'Fe_p1_number_density'),
 ('PartType0', 'H_density'),
 ('PartType0', 'H_fraction'),
 ('PartType0', 'H_mass'),
 ('PartType0', 'H_nuclei_density'),
 ('PartType0', 'H_number_density'),
 ('PartType0', 'H_p0_density'),
 ('PartType0', 'H_p0_fraction'),
 ('PartType0', 'H_p0_mass'),
 ('PartType0', 'H_p0_number_density'),
 ('PartType0', 'H_p1_density'),
 ('PartType0', 'H_p1_fraction'),
 ('PartType0', 'H_p1_mass'),
 ('PartType0', 'H_p1_number_density'),
 ('PartType0', 'He_density'),
 ('PartType0', 'He_fraction'),
 ('PartType0', 'He_mass'),
 ('PartType0', 'He_nuclei_density'),
 ('PartType0', 'He_number_density'),
 ('PartType0', 'He_p0_density'),
 ('PartType0', 'He_p0_fraction'),
 ('PartType0', 'He_p0_mass'),
 ('PartType0', 'He_p0_number_density'),
 ('PartType0', 'He_p1_density'),
 ('PartType0', 'He_p1_fraction'),
 ('PartType0', 'He_p1_mass'),
 ('PartType0', 'He_p1_number_density'),
 ('PartType0', 'Helium'),
 ('PartType0', 'Hydrogen'),
 ('PartType0', 'InternalEnergy'),
 ('PartType0', 'Iron'),
 ('PartType0', 'IronFromSNIa'),
 ('PartType0', 'Magnesium'),
 ('PartType0', 'Mass'),
 ('PartType0', 'MaximumEntropy'),
 ('PartType0', 'MaximumTemperature'),
 ('PartType0', 'Metallicity'),
 ('PartType0', 'MetallicityWeightedPotential'),
 ('PartType0', 'MetallicityWeightedRedshift'),
 ('PartType0', 'Mg_density'),
 ('PartType0', 'Mg_fraction'),
 ('PartType0', 'Mg_mass'),
 ('PartType0', 'Mg_nuclei_density'),
 ('PartType0', 'Mg_number_density'),
 ('PartType0', 'Mg_p0_density'),
 ('PartType0', 'Mg_p0_fraction'),
 ('PartType0', 'Mg_p0_mass'),
 ('PartType0', 'Mg_p0_number_density'),
 ('PartType0', 'Mg_p1_density'),
 ('PartType0', 'Mg_p1_fraction'),
 ('PartType0', 'Mg_p1_mass'),
 ('PartType0', 'Mg_p1_number_density'),
 ('PartType0', 'N_density'),
 ('PartType0', 'N_fraction'),
 ('PartType0', 'N_mass'),
 ('PartType0', 'N_nuclei_density'),
 ('PartType0', 'N_number_density'),
 ('PartType0', 'N_p1_density'),
 ('PartType0', 'N_p1_fraction'),
 ('PartType0', 'N_p1_mass'),
 ('PartType0', 'N_p1_number_density'),
 ('PartType0', 'N_p2_density'),
 ('PartType0', 'N_p2_fraction'),
 ('PartType0', 'N_p2_mass'),
 ('PartType0', 'N_p2_number_density'),
 ('PartType0', 'N_p3_density'),
 ('PartType0', 'N_p3_fraction'),
 ('PartType0', 'N_p3_mass'),
 ('PartType0', 'N_p3_number_density'),
 ('PartType0', 'N_p4_density'),
 ('PartType0', 'N_p4_fraction'),
 ('PartType0', 'N_p4_mass'),
 ('PartType0', 'N_p4_number_density'),
 ('PartType0', 'N_p5_density'),
 ('PartType0', 'N_p5_fraction'),
 ('PartType0', 'N_p5_mass'),
 ('PartType0', 'N_p5_number_density'),
 ('PartType0', 'N_p6_density'),
 ('PartType0', 'N_p6_fraction'),
 ('PartType0', 'N_p6_mass'),
 ('PartType0', 'N_p6_number_density'),
 ('PartType0', 'Ne_density'),
 ('PartType0', 'Ne_fraction'),
 ('PartType0', 'Ne_mass'),
 ('PartType0', 'Ne_nuclei_density'),
 ('PartType0', 'Ne_number_density'),
 ('PartType0', 'Ne_p7_density'),
 ('PartType0', 'Ne_p7_fraction'),
 ('PartType0', 'Ne_p7_mass'),
 ('PartType0', 'Ne_p7_number_density'),
 ('PartType0', 'Ne_p8_density'),
 ('PartType0', 'Ne_p8_fraction'),
 ('PartType0', 'Ne_p8_mass'),
 ('PartType0', 'Ne_p8_number_density'),
 ('PartType0', 'Ne_p9_density'),
 ('PartType0', 'Ne_p9_fraction'),
 ('PartType0', 'Ne_p9_mass'),
 ('PartType0', 'Ne_p9_number_density'),
 ('PartType0', 'Neon'),
 ('PartType0', 'Nitrogen'),
 ('PartType0', 'O_density'),
 ('PartType0', 'O_fraction'),
 ('PartType0', 'O_mass'),
 ('PartType0', 'O_nuclei_density'),
 ('PartType0', 'O_number_density'),
 ('PartType0', 'O_p0_density'),
 ('PartType0', 'O_p0_fraction'),
 ('PartType0', 'O_p0_mass'),
 ('PartType0', 'O_p0_number_density'),
 ('PartType0', 'O_p5_density'),
 ('PartType0', 'O_p5_fraction'),
 ('PartType0', 'O_p5_mass'),
 ('PartType0', 'O_p5_number_density'),
 ('PartType0', 'O_p6_density'),
 ('PartType0', 'O_p6_fraction'),
 ('PartType0', 'O_p6_mass'),
 ('PartType0', 'O_p6_number_density'),
 ('PartType0', 'O_p7_density'),
 ('PartType0', 'O_p7_fraction'),
 ('PartType0', 'O_p7_mass'),
 ('PartType0', 'O_p7_number_density'),
 ('PartType0', 'OnEquationOfState'),
 ('PartType0', 'Oxygen'),
 ('PartType0', 'ParticleIDs'),
 ('PartType0', 'Potential'),
 ('PartType0', 'Si_density'),
 ('PartType0', 'Si_fraction'),
 ('PartType0', 'Si_mass'),
 ('PartType0', 'Si_nuclei_density'),
 ('PartType0', 'Si_number_density'),
 ('PartType0', 'Si_p12_density'),
 ('PartType0', 'Si_p12_fraction'),
 ('PartType0', 'Si_p12_mass'),
 ('PartType0', 'Si_p12_number_density'),
 ('PartType0', 'Si_p1_density'),
 ('PartType0', 'Si_p1_fraction'),
 ('PartType0', 'Si_p1_mass'),
 ('PartType0', 'Si_p1_number_density'),
 ('PartType0', 'Si_p2_density'),
 ('PartType0', 'Si_p2_fraction'),
 ('PartType0', 'Si_p2_mass'),
 ('PartType0', 'Si_p2_number_density'),
 ('PartType0', 'Si_p3_density'),
 ('PartType0', 'Si_p3_fraction'),
 ('PartType0', 'Si_p3_mass'),
 ('PartType0', 'Si_p3_number_density'),
 ('PartType0', 'Silicon'),
 ('PartType0', 'SmoothedIronFromSNIa'),
 ('PartType0', 'SmoothedMetallicity'),
 ('PartType0', 'SmoothingLength'),
 ('PartType0', 'StarFormationRate'),
 ('PartType0', 'Temperature'),
 ('PartType0', 'Velocity'),
 ('PartType0', 'WindFlag'),
 ('PartType0', 'angular_momentum'),
 ('PartType0', 'angular_momentum_magnitude'),
 ('PartType0', 'angular_momentum_x'),
 ('PartType0', 'angular_momentum_y'),
 ('PartType0', 'angular_momentum_z'),
 ('PartType0', 'cylindrical_radius'),
 ('PartType0', 'cylindrical_theta'),
 ('PartType0', 'cylindrical_z'),
 ('PartType0', 'density'),
 ('PartType0', 'gravitational_potential'),
 ('PartType0', 'index'),
 ('PartType0', 'mass'),
 ('PartType0', 'metallicity'),
 ('PartType0', 'ones'),
 ('PartType0', 'particle_angular_momentum'),
 ('PartType0', 'particle_angular_momentum_magnitude'),
 ('PartType0', 'particle_angular_momentum_x'),
 ('PartType0', 'particle_angular_momentum_y'),
 ('PartType0', 'particle_angular_momentum_z'),
 ('PartType0', 'particle_index'),
 ('PartType0', 'particle_mass'),
 ('PartType0', 'particle_ones'),
 ('PartType0', 'particle_position'),
 ('PartType0', 'particle_position_cylindrical_radius'),
 ('PartType0', 'particle_position_cylindrical_theta'),
 ('PartType0', 'particle_position_cylindrical_z'),
 ('PartType0', 'particle_position_relative_x'),
 ('PartType0', 'particle_position_relative_y'),
 ('PartType0', 'particle_position_relative_z'),
 ('PartType0', 'particle_position_spherical_phi'),
 ('PartType0', 'particle_position_spherical_radius'),
 ('PartType0', 'particle_position_spherical_theta'),
 ('PartType0', 'particle_position_x'),
 ('PartType0', 'particle_position_y'),
 ('PartType0', 'particle_position_z'),
 ('PartType0', 'particle_radial_velocity'),
 ('PartType0', 'particle_radius'),
 ('PartType0', 'particle_specific_angular_momentum'),
 ('PartType0', 'particle_specific_angular_momentum_x'),
 ('PartType0', 'particle_specific_angular_momentum_y'),
 ('PartType0', 'particle_specific_angular_momentum_z'),
 ('PartType0', 'particle_velocity'),
 ('PartType0', 'particle_velocity_cylindrical_radius'),
 ('PartType0', 'particle_velocity_cylindrical_theta'),
 ('PartType0', 'particle_velocity_cylindrical_z'),
 ('PartType0', 'particle_velocity_magnitude'),
 ('PartType0', 'particle_velocity_relative_x'),
 ('PartType0', 'particle_velocity_relative_y'),
 ('PartType0', 'particle_velocity_relative_z'),
 ('PartType0', 'particle_velocity_spherical_phi'),
 ('PartType0', 'particle_velocity_spherical_radius'),
 ('PartType0', 'particle_velocity_spherical_theta'),
 ('PartType0', 'particle_velocity_x'),
 ('PartType0', 'particle_velocity_y'),
 ('PartType0', 'particle_velocity_z'),
 ('PartType0', 'position'),
 ('PartType0', 'radial_velocity'),
 ('PartType0', 'radius'),
 ('PartType0', 'relative_particle_position'),
 ('PartType0', 'relative_particle_position_x'),
 ('PartType0', 'relative_particle_position_y'),
 ('PartType0', 'relative_particle_position_z'),
 ('PartType0', 'relative_particle_velocity'),
 ('PartType0', 'relative_particle_velocity_x'),
 ('PartType0', 'relative_particle_velocity_y'),
 ('PartType0', 'relative_particle_velocity_z'),
 ('PartType0', 'relative_x'),
 ('PartType0', 'relative_y'),
 ('PartType0', 'relative_z'),
 ('PartType0', 'smoothing_length'),
 ('PartType0', 'specific_angular_momentum'),
 ('PartType0', 'specific_angular_momentum_x'),
 ('PartType0', 'specific_angular_momentum_y'),
 ('PartType0', 'specific_angular_momentum_z'),
 ('PartType0', 'specific_thermal_energy'),
 ('PartType0', 'spherical_phi'),
 ('PartType0', 'spherical_radius'),
 ('PartType0', 'spherical_theta'),
 ('PartType0', 'star_formation_rate'),
 ('PartType0', 'temperature'),
 ('PartType0', 'velocity'),
 ('PartType0', 'velocity_cylindrical_radius'),
 ('PartType0', 'velocity_cylindrical_theta'),
 ('PartType0', 'velocity_cylindrical_z'),
 ('PartType0', 'velocity_magnitude'),
 ('PartType0', 'velocity_relative_x'),
 ('PartType0', 'velocity_relative_y'),
 ('PartType0', 'velocity_relative_z'),
 ('PartType0', 'velocity_spherical_phi'),
 ('PartType0', 'velocity_spherical_radius'),
 ('PartType0', 'velocity_spherical_theta'),
 ('PartType0', 'velocity_x'),
 ('PartType0', 'velocity_y'),
 ('PartType0', 'velocity_z'),
 ('PartType0', 'x'),
 ('PartType0', 'y'),
 ('PartType0', 'z'),
 ('PartType1', 'Coordinates'),
 ('PartType1', 'Mass'),
 ('PartType1', 'ParticleIDs'),
 ('PartType1', 'Potential'),
 ('PartType1', 'Velocity'),
 ('PartType1', 'gravitational_potential'),
 ('PartType1', 'particle_angular_momentum'),
 ('PartType1', 'particle_angular_momentum_magnitude'),
 ('PartType1', 'particle_angular_momentum_x'),
 ('PartType1', 'particle_angular_momentum_y'),
 ('PartType1', 'particle_angular_momentum_z'),
 ('PartType1', 'particle_index'),
 ('PartType1', 'particle_mass'),
 ('PartType1', 'particle_ones'),
 ('PartType1', 'particle_position'),
 ('PartType1', 'particle_position_cylindrical_radius'),
 ('PartType1', 'particle_position_cylindrical_theta'),
 ('PartType1', 'particle_position_cylindrical_z'),
 ('PartType1', 'particle_position_relative_x'),
 ('PartType1', 'particle_position_relative_y'),
 ('PartType1', 'particle_position_relative_z'),
 ('PartType1', 'particle_position_spherical_phi'),
 ('PartType1', 'particle_position_spherical_radius'),
 ('PartType1', 'particle_position_spherical_theta'),
 ('PartType1', 'particle_position_x'),
 ('PartType1', 'particle_position_y'),
 ('PartType1', 'particle_position_z'),
 ('PartType1', 'particle_radial_velocity'),
 ('PartType1', 'particle_radius'),
 ('PartType1', 'particle_specific_angular_momentum'),
 ('PartType1', 'particle_specific_angular_momentum_x'),
 ('PartType1', 'particle_specific_angular_momentum_y'),
 ('PartType1', 'particle_specific_angular_momentum_z'),
 ('PartType1', 'particle_velocity'),
 ('PartType1', 'particle_velocity_cylindrical_radius'),
 ('PartType1', 'particle_velocity_cylindrical_theta'),
 ('PartType1', 'particle_velocity_cylindrical_z'),
 ('PartType1', 'particle_velocity_magnitude'),
 ('PartType1', 'particle_velocity_relative_x'),
 ('PartType1', 'particle_velocity_relative_y'),
 ('PartType1', 'particle_velocity_relative_z'),
 ('PartType1', 'particle_velocity_spherical_phi'),
 ('PartType1', 'particle_velocity_spherical_radius'),
 ('PartType1', 'particle_velocity_spherical_theta'),
 ('PartType1', 'particle_velocity_x'),
 ('PartType1', 'particle_velocity_y'),
 ('PartType1', 'particle_velocity_z'),
 ('PartType1', 'relative_particle_position'),
 ('PartType1', 'relative_particle_position_x'),
 ('PartType1', 'relative_particle_position_y'),
 ('PartType1', 'relative_particle_position_z'),
 ('PartType1', 'relative_particle_velocity'),
 ('PartType1', 'relative_particle_velocity_x'),
 ('PartType1', 'relative_particle_velocity_y'),
 ('PartType1', 'relative_particle_velocity_z'),
 ('PartType4', 'AExpMaximumEntropy'),
 ('PartType4', 'AExpMaximumTemperature'),
 ('PartType4', 'C_density'),
 ('PartType4', 'C_fraction'),
 ('PartType4', 'C_mass'),
 ('PartType4', 'C_nuclei_density'),
 ('PartType4', 'C_number_density'),
 ('PartType4', 'Carbon'),
 ('PartType4', 'Coordinates'),
 ('PartType4', 'Density'),
 ('PartType4', 'Fe_density'),
 ('PartType4', 'Fe_fraction'),
 ('PartType4', 'Fe_mass'),
 ('PartType4', 'Fe_nuclei_density'),
 ('PartType4', 'Fe_number_density'),
 ('PartType4', 'H_density'),
 ('PartType4', 'H_fraction'),
 ('PartType4', 'H_mass'),
 ('PartType4', 'H_nuclei_density'),
 ('PartType4', 'H_number_density'),
 ('PartType4', 'He_density'),
 ('PartType4', 'He_fraction'),
 ('PartType4', 'He_mass'),
 ('PartType4', 'He_nuclei_density'),
 ('PartType4', 'He_number_density'),
 ('PartType4', 'Helium'),
 ('PartType4', 'Hydrogen'),
 ('PartType4', 'InitialMass'),
 ('PartType4', 'Iron'),
 ('PartType4', 'IronFromSNIa'),
 ('PartType4', 'Magnesium'),
 ('PartType4', 'Mass'),
 ('PartType4', 'MaximumEntropy'),
 ('PartType4', 'MaximumTemperature'),
 ('PartType4', 'Metallicity'),
 ('PartType4', 'MetallicityWeightedPotential'),
 ('PartType4', 'MetallicityWeightedRedshift'),
 ('PartType4', 'Mg_density'),
 ('PartType4', 'Mg_fraction'),
 ('PartType4', 'Mg_mass'),
 ('PartType4', 'Mg_nuclei_density'),
 ('PartType4', 'Mg_number_density'),
 ('PartType4', 'N_density'),
 ('PartType4', 'N_fraction'),
 ('PartType4', 'N_mass'),
 ('PartType4', 'N_nuclei_density'),
 ('PartType4', 'N_number_density'),
 ('PartType4', 'Ne_density'),
 ('PartType4', 'Ne_fraction'),
 ('PartType4', 'Ne_mass'),
 ('PartType4', 'Ne_nuclei_density'),
 ('PartType4', 'Ne_number_density'),
 ('PartType4', 'Neon'),
 ('PartType4', 'Nitrogen'),
 ('PartType4', 'O_density'),
 ('PartType4', 'O_fraction'),
 ('PartType4', 'O_mass'),
 ('PartType4', 'O_nuclei_density'),
 ('PartType4', 'O_number_density'),
 ('PartType4', 'Oxygen'),
 ('PartType4', 'ParticleIDs'),
 ('PartType4', 'Potential'),
 ('PartType4', 'Si_density'),
 ('PartType4', 'Si_fraction'),
 ('PartType4', 'Si_mass'),
 ('PartType4', 'Si_nuclei_density'),
 ('PartType4', 'Si_number_density'),
 ('PartType4', 'Silicon'),
 ('PartType4', 'SmoothedIronFromSNIa'),
 ('PartType4', 'SmoothedMetallicity'),
 ('PartType4', 'SmoothingLength'),
 ('PartType4', 'StellarFormationTime'),
 ('PartType4', 'Velocity'),
 ('PartType4', 'WindFlag'),
 ('PartType4', 'angular_momentum'),
 ('PartType4', 'angular_momentum_magnitude'),
 ('PartType4', 'angular_momentum_x'),
 ('PartType4', 'angular_momentum_y'),
 ('PartType4', 'angular_momentum_z'),
 ('PartType4', 'cylindrical_radius'),
 ('PartType4', 'cylindrical_theta'),
 ('PartType4', 'cylindrical_z'),
 ('PartType4', 'density'),
 ('PartType4', 'gravitational_potential'),
 ('PartType4', 'index'),
 ('PartType4', 'mass'),
 ('PartType4', 'metallicity'),
 ('PartType4', 'ones'),
 ('PartType4', 'particle_angular_momentum'),
 ('PartType4', 'particle_angular_momentum_magnitude'),
 ('PartType4', 'particle_angular_momentum_x'),
 ('PartType4', 'particle_angular_momentum_y'),
 ('PartType4', 'particle_angular_momentum_z'),
 ('PartType4', 'particle_index'),
 ('PartType4', 'particle_mass'),
 ('PartType4', 'particle_ones'),
 ('PartType4', 'particle_position'),
 ('PartType4', 'particle_position_cylindrical_radius'),
 ('PartType4', 'particle_position_cylindrical_theta'),
 ('PartType4', 'particle_position_cylindrical_z'),
 ('PartType4', 'particle_position_relative_x'),
 ('PartType4', 'particle_position_relative_y'),
 ('PartType4', 'particle_position_relative_z'),
 ('PartType4', 'particle_position_spherical_phi'),
 ('PartType4', 'particle_position_spherical_radius'),
 ('PartType4', 'particle_position_spherical_theta'),
 ('PartType4', 'particle_position_x'),
 ('PartType4', 'particle_position_y'),
 ('PartType4', 'particle_position_z'),
 ('PartType4', 'particle_radial_velocity'),
 ('PartType4', 'particle_radius'),
 ('PartType4', 'particle_specific_angular_momentum'),
 ('PartType4', 'particle_specific_angular_momentum_x'),
 ('PartType4', 'particle_specific_angular_momentum_y'),
 ('PartType4', 'particle_specific_angular_momentum_z'),
 ('PartType4', 'particle_velocity'),
 ('PartType4', 'particle_velocity_cylindrical_radius'),
 ('PartType4', 'particle_velocity_cylindrical_theta'),
 ('PartType4', 'particle_velocity_cylindrical_z'),
 ('PartType4', 'particle_velocity_magnitude'),
 ('PartType4', 'particle_velocity_relative_x'),
 ('PartType4', 'particle_velocity_relative_y'),
 ('PartType4', 'particle_velocity_relative_z'),
 ('PartType4', 'particle_velocity_spherical_phi'),
 ('PartType4', 'particle_velocity_spherical_radius'),
 ('PartType4', 'particle_velocity_spherical_theta'),
 ('PartType4', 'particle_velocity_x'),
 ('PartType4', 'particle_velocity_y'),
 ('PartType4', 'particle_velocity_z'),
 ('PartType4', 'position'),
 ('PartType4', 'radial_velocity'),
 ('PartType4', 'radius'),
 ('PartType4', 'relative_particle_position'),
 ('PartType4', 'relative_particle_position_x'),
 ('PartType4', 'relative_particle_position_y'),
 ('PartType4', 'relative_particle_position_z'),
 ('PartType4', 'relative_particle_velocity'),
 ('PartType4', 'relative_particle_velocity_x'),
 ('PartType4', 'relative_particle_velocity_y'),
 ('PartType4', 'relative_particle_velocity_z'),
 ('PartType4', 'relative_x'),
 ('PartType4', 'relative_y'),
 ('PartType4', 'relative_z'),
 ('PartType4', 'smoothing_length'),
 ('PartType4', 'specific_angular_momentum'),
 ('PartType4', 'specific_angular_momentum_x'),
 ('PartType4', 'specific_angular_momentum_y'),
 ('PartType4', 'specific_angular_momentum_z'),
 ('PartType4', 'spherical_phi'),
 ('PartType4', 'spherical_radius'),
 ('PartType4', 'spherical_theta'),
 ('PartType4', 'velocity'),
 ('PartType4', 'velocity_cylindrical_radius'),
 ('PartType4', 'velocity_cylindrical_theta'),
 ('PartType4', 'velocity_cylindrical_z'),
 ('PartType4', 'velocity_magnitude'),
 ('PartType4', 'velocity_relative_x'),
 ('PartType4', 'velocity_relative_y'),
 ('PartType4', 'velocity_relative_z'),
 ('PartType4', 'velocity_spherical_phi'),
 ('PartType4', 'velocity_spherical_radius'),
 ('PartType4', 'velocity_spherical_theta'),
 ('PartType4', 'velocity_x'),
 ('PartType4', 'velocity_y'),
 ('PartType4', 'velocity_z'),
 ('PartType4', 'x'),
 ('PartType4', 'y'),
 ('PartType4', 'z'),
 ('all', 'Coordinates'),
 ('all', 'Mass'),
 ('all', 'ParticleIDs'),
 ('all', 'Potential'),
 ('all', 'Velocity'),
 ('all', 'gravitational_potential'),
 ('all', 'particle_angular_momentum'),
 ('all', 'particle_angular_momentum_magnitude'),
 ('all', 'particle_angular_momentum_x'),
 ('all', 'particle_angular_momentum_y'),
 ('all', 'particle_angular_momentum_z'),
 ('all', 'particle_index'),
 ('all', 'particle_mass'),
 ('all', 'particle_ones'),
 ('all', 'particle_position'),
 ('all', 'particle_position_cylindrical_radius'),
 ('all', 'particle_position_cylindrical_theta'),
 ('all', 'particle_position_cylindrical_z'),
 ('all', 'particle_position_relative_x'),
 ('all', 'particle_position_relative_y'),
 ('all', 'particle_position_relative_z'),
 ('all', 'particle_position_spherical_phi'),
 ('all', 'particle_position_spherical_radius'),
 ('all', 'particle_position_spherical_theta'),
 ('all', 'particle_position_x'),
 ('all', 'particle_position_y'),
 ('all', 'particle_position_z'),
 ('all', 'particle_radial_velocity'),
 ('all', 'particle_radius'),
 ('all', 'particle_specific_angular_momentum'),
 ('all', 'particle_specific_angular_momentum_x'),
 ('all', 'particle_specific_angular_momentum_y'),
 ('all', 'particle_specific_angular_momentum_z'),
 ('all', 'particle_velocity'),
 ('all', 'particle_velocity_cylindrical_radius'),
 ('all', 'particle_velocity_cylindrical_theta'),
 ('all', 'particle_velocity_cylindrical_z'),
 ('all', 'particle_velocity_magnitude'),
 ('all', 'particle_velocity_relative_x'),
 ('all', 'particle_velocity_relative_y'),
 ('all', 'particle_velocity_relative_z'),
 ('all', 'particle_velocity_spherical_phi'),
 ('all', 'particle_velocity_spherical_radius'),
 ('all', 'particle_velocity_spherical_theta'),
 ('all', 'particle_velocity_x'),
 ('all', 'particle_velocity_y'),
 ('all', 'particle_velocity_z'),
 ('all', 'relative_particle_position'),
 ('all', 'relative_particle_position_x'),
 ('all', 'relative_particle_position_y'),
 ('all', 'relative_particle_position_z'),
 ('all', 'relative_particle_velocity'),
 ('all', 'relative_particle_velocity_x'),
 ('all', 'relative_particle_velocity_y'),
 ('all', 'relative_particle_velocity_z'),
 ('deposit', 'PartType0_cic'),
 ('deposit', 'PartType0_cic_velocity_x'),
 ('deposit', 'PartType0_cic_velocity_y'),
 ('deposit', 'PartType0_cic_velocity_z'),
 ('deposit', 'PartType0_count'),
 ('deposit', 'PartType0_density'),
 ('deposit', 'PartType0_mass'),
 ('deposit', 'PartType0_nn_velocity_x'),
 ('deposit', 'PartType0_nn_velocity_y'),
 ('deposit', 'PartType0_nn_velocity_z'),
 ('deposit', 'PartType1_cic'),
 ('deposit', 'PartType1_cic_velocity_x'),
 ('deposit', 'PartType1_cic_velocity_y'),
 ('deposit', 'PartType1_cic_velocity_z'),
 ('deposit', 'PartType1_count'),
 ('deposit', 'PartType1_density'),
 ('deposit', 'PartType1_mass'),
 ('deposit', 'PartType1_nn_velocity_x'),
 ('deposit', 'PartType1_nn_velocity_y'),
 ('deposit', 'PartType1_nn_velocity_z'),
 ('deposit', 'PartType4_cic'),
 ('deposit', 'PartType4_cic_velocity_x'),
 ('deposit', 'PartType4_cic_velocity_y'),
 ('deposit', 'PartType4_cic_velocity_z'),
 ('deposit', 'PartType4_count'),
 ('deposit', 'PartType4_density'),
 ('deposit', 'PartType4_mass'),
 ('deposit', 'PartType4_nn_velocity_x'),
 ('deposit', 'PartType4_nn_velocity_y'),
 ('deposit', 'PartType4_nn_velocity_z'),
 ('deposit', 'all_cic'),
 ('deposit', 'all_cic_velocity_x'),
 ('deposit', 'all_cic_velocity_y'),
 ('deposit', 'all_cic_velocity_z'),
 ('deposit', 'all_count'),
 ('deposit', 'all_density'),
 ('deposit', 'all_mass'),
 ('deposit', 'all_nn_velocity_x'),
 ('deposit', 'all_nn_velocity_y'),
 ('deposit', 'all_nn_velocity_z'),
 ('deposit', 'nbody_cic'),
 ('deposit', 'nbody_cic_velocity_x'),
 ('deposit', 'nbody_cic_velocity_y'),
 ('deposit', 'nbody_cic_velocity_z'),
 ('deposit', 'nbody_count'),
 ('deposit', 'nbody_density'),
 ('deposit', 'nbody_mass'),
 ('deposit', 'nbody_nn_velocity_x'),
 ('deposit', 'nbody_nn_velocity_y'),
 ('deposit', 'nbody_nn_velocity_z'),
 ('gas', 'C_density'),
 ('gas', 'C_fraction'),
 ('gas', 'C_mass'),
 ('gas', 'C_nuclei_density'),
 ('gas', 'C_number_density'),
 ('gas', 'C_p0_density'),
 ('gas', 'C_p0_mass'),
 ('gas', 'C_p0_number_density'),
 ('gas', 'C_p1_density'),
 ('gas', 'C_p1_mass'),
 ('gas', 'C_p1_number_density'),
 ('gas', 'C_p2_density'),
 ('gas', 'C_p2_mass'),
 ('gas', 'C_p2_number_density'),
 ('gas', 'C_p3_density'),
 ('gas', 'C_p3_mass'),
 ('gas', 'C_p3_number_density'),
 ('gas', 'C_p4_density'),
 ('gas', 'C_p4_mass'),
 ('gas', 'C_p4_number_density'),
 ('gas', 'C_p5_density'),
 ('gas', 'C_p5_mass'),
 ('gas', 'C_p5_number_density'),
 ('gas', 'Fe_density'),
 ('gas', 'Fe_fraction'),
 ('gas', 'Fe_mass'),
 ('gas', 'Fe_nuclei_density'),
 ('gas', 'Fe_number_density'),
 ('gas', 'Fe_p16_density'),
 ('gas', 'Fe_p16_mass'),
 ('gas', 'Fe_p16_number_density'),
 ('gas', 'Fe_p1_density'),
 ('gas', 'Fe_p1_mass'),
 ('gas', 'Fe_p1_number_density'),
 ('gas', 'H_density'),
 ('gas', 'H_fraction'),
 ('gas', 'H_mass'),
 ('gas', 'H_nuclei_density'),
 ('gas', 'H_number_density'),
 ('gas', 'H_p0_density'),
 ('gas', 'H_p0_mass'),
 ('gas', 'H_p0_number_density'),
 ('gas', 'H_p1_density'),
 ('gas', 'H_p1_mass'),
 ('gas', 'H_p1_number_density'),
 ('gas', 'He_density'),
 ('gas', 'He_fraction'),
 ('gas', 'He_mass'),
 ('gas', 'He_nuclei_density'),
 ('gas', 'He_number_density'),
 ('gas', 'He_p0_density'),
 ('gas', 'He_p0_mass'),
 ('gas', 'He_p0_number_density'),
 ('gas', 'He_p1_density'),
 ('gas', 'He_p1_mass'),
 ('gas', 'He_p1_number_density'),
 ('gas', 'Mg_density'),
 ('gas', 'Mg_fraction'),
 ('gas', 'Mg_mass'),
 ('gas', 'Mg_nuclei_density'),
 ('gas', 'Mg_number_density'),
 ('gas', 'Mg_p0_density'),
 ('gas', 'Mg_p0_mass'),
 ('gas', 'Mg_p0_number_density'),
 ('gas', 'Mg_p1_density'),
 ('gas', 'Mg_p1_mass'),
 ('gas', 'Mg_p1_number_density'),
 ('gas', 'N_density'),
 ('gas', 'N_fraction'),
 ('gas', 'N_mass'),
 ('gas', 'N_nuclei_density'),
 ('gas', 'N_number_density'),
 ('gas', 'N_p1_density'),
 ('gas', 'N_p1_mass'),
 ('gas', 'N_p1_number_density'),
 ('gas', 'N_p2_density'),
 ('gas', 'N_p2_mass'),
 ('gas', 'N_p2_number_density'),
 ('gas', 'N_p3_density'),
 ('gas', 'N_p3_mass'),
 ('gas', 'N_p3_number_density'),
 ('gas', 'N_p4_density'),
 ('gas', 'N_p4_mass'),
 ('gas', 'N_p4_number_density'),
 ('gas', 'N_p5_density'),
 ('gas', 'N_p5_mass'),
 ('gas', 'N_p5_number_density'),
 ('gas', 'N_p6_density'),
 ('gas', 'N_p6_mass'),
 ('gas', 'N_p6_number_density'),
 ('gas', 'Ne_density'),
 ('gas', 'Ne_fraction'),
 ('gas', 'Ne_mass'),
 ('gas', 'Ne_nuclei_density'),
 ('gas', 'Ne_number_density'),
 ('gas', 'Ne_p7_density'),
 ('gas', 'Ne_p7_mass'),
 ('gas', 'Ne_p7_number_density'),
 ('gas', 'Ne_p8_density'),
 ('gas', 'Ne_p8_mass'),
 ('gas', 'Ne_p8_number_density'),
 ('gas', 'Ne_p9_density'),
 ('gas', 'Ne_p9_mass'),
 ('gas', 'Ne_p9_number_density'),
 ('gas', 'O_density'),
 ('gas', 'O_fraction'),
 ('gas', 'O_mass'),
 ('gas', 'O_nuclei_density'),
 ('gas', 'O_number_density'),
 ('gas', 'O_p0_density'),
 ('gas', 'O_p0_mass'),
 ('gas', 'O_p0_number_density'),
 ('gas', 'O_p5_density'),
 ('gas', 'O_p5_mass'),
 ('gas', 'O_p5_number_density'),
 ('gas', 'O_p6_density'),
 ('gas', 'O_p6_mass'),
 ('gas', 'O_p6_number_density'),
 ('gas', 'O_p7_density'),
 ('gas', 'O_p7_mass'),
 ('gas', 'O_p7_number_density'),
 ('gas', 'Si_density'),
 ('gas', 'Si_fraction'),
 ('gas', 'Si_mass'),
 ('gas', 'Si_nuclei_density'),
 ('gas', 'Si_number_density'),
 ('gas', 'Si_p12_density'),
 ('gas', 'Si_p12_mass'),
 ('gas', 'Si_p12_number_density'),
 ('gas', 'Si_p1_density'),
 ('gas', 'Si_p1_mass'),
 ('gas', 'Si_p1_number_density'),
 ('gas', 'Si_p2_density'),
 ('gas', 'Si_p2_mass'),
 ('gas', 'Si_p2_number_density'),
 ('gas', 'Si_p3_density'),
 ('gas', 'Si_p3_mass'),
 ('gas', 'Si_p3_number_density'),
 ('gas', 'angular_momentum'),
 ('gas', 'angular_momentum_magnitude'),
 ('gas', 'angular_momentum_x'),
 ('gas', 'angular_momentum_y'),
 ('gas', 'angular_momentum_z'),
 ('gas', 'baryon_overdensity'),
 ('gas', 'cutting_plane_velocity_x'),
 ('gas', 'cutting_plane_velocity_y'),
 ('gas', 'cutting_plane_velocity_z'),
 ('gas', 'cylindrical_radius'),
 ('gas', 'cylindrical_theta'),
 ('gas', 'cylindrical_z'),
 ('gas', 'density'),
 ('gas', 'dynamical_time'),
 ('gas', 'four_velocity_magnitude'),
 ('gas', 'four_velocity_t'),
 ('gas', 'four_velocity_x'),
 ('gas', 'four_velocity_y'),
 ('gas', 'four_velocity_z'),
 ('gas', 'index'),
 ('gas', 'jeans_mass'),
 ('gas', 'kT'),
 ('gas', 'kinetic_energy_density'),
 ('gas', 'lorentz_factor'),
 ('gas', 'mass'),
 ('gas', 'mean_molecular_weight'),
 ('gas', 'metal_mass'),
 ('gas', 'metallicity'),
 ('gas', 'momentum_density_x'),
 ('gas', 'momentum_density_y'),
 ('gas', 'momentum_density_z'),
 ('gas', 'momentum_x'),
 ('gas', 'momentum_y'),
 ('gas', 'momentum_z'),
 ('gas', 'number_density'),
 ('gas', 'ones'),
 ('gas', 'particle_mass'),
 ('gas', 'particle_position'),
 ('gas', 'particle_position_cylindrical_radius'),
 ('gas', 'particle_position_cylindrical_theta'),
 ('gas', 'particle_position_cylindrical_z'),
 ('gas', 'particle_position_relative_x'),
 ('gas', 'particle_position_relative_y'),
 ('gas', 'particle_position_relative_z'),
 ('gas', 'particle_position_spherical_phi'),
 ('gas', 'particle_position_spherical_radius'),
 ('gas', 'particle_position_spherical_theta'),
 ('gas', 'particle_position_x'),
 ('gas', 'particle_position_y'),
 ('gas', 'particle_position_z'),
 ('gas', 'position'),
 ('gas', 'radial_velocity'),
 ('gas', 'radial_velocity_absolute'),
 ('gas', 'radius'),
 ('gas', 'relative_velocity_x'),
 ('gas', 'relative_velocity_y'),
 ('gas', 'relative_velocity_z'),
 ('gas', 'relative_x'),
 ('gas', 'relative_y'),
 ('gas', 'relative_z'),
 ('gas', 'smoothing_length'),
 ('gas', 'specific_angular_momentum'),
 ('gas', 'specific_angular_momentum_magnitude'),
 ('gas', 'specific_angular_momentum_x'),
 ('gas', 'specific_angular_momentum_y'),
 ('gas', 'specific_angular_momentum_z'),
 ('gas', 'spherical_phi'),
 ('gas', 'spherical_radius'),
 ('gas', 'spherical_theta'),
 ('gas', 'star_formation_rate'),
 ('gas', 'tangential_over_velocity_magnitude'),
 ('gas', 'tangential_velocity'),
 ('gas', 'temperature'),
 ('gas', 'velocity'),
 ('gas', 'velocity_cylindrical_radius'),
 ('gas', 'velocity_cylindrical_theta'),
 ('gas', 'velocity_cylindrical_z'),
 ('gas', 'velocity_los'),
 ('gas', 'velocity_magnitude'),
 ('gas', 'velocity_relative_x'),
 ('gas', 'velocity_relative_y'),
 ('gas', 'velocity_relative_z'),
 ('gas', 'velocity_spherical_phi'),
 ('gas', 'velocity_spherical_radius'),
 ('gas', 'velocity_spherical_theta'),
 ('gas', 'velocity_x'),
 ('gas', 'velocity_y'),
 ('gas', 'velocity_z'),
 ('gas', 'x'),
 ('gas', 'y'),
 ('gas', 'z'),
 ('index', 'cell_volume'),
 ('index', 'cylindrical_radius'),
 ('index', 'cylindrical_theta'),
 ('index', 'cylindrical_z'),
 ('index', 'dx'),
 ('index', 'dy'),
 ('index', 'dz'),
 ('index', 'grid_indices'),
 ('index', 'grid_level'),
 ('index', 'morton_index'),
 ('index', 'ones'),
 ('index', 'ones_over_dx'),
 ('index', 'path_element_x'),
 ('index', 'path_element_y'),
 ('index', 'path_element_z'),
 ('index', 'radius'),
 ('index', 'spherical_phi'),
 ('index', 'spherical_radius'),
 ('index', 'spherical_theta'),
 ('index', 'virial_radius_fraction'),
 ('index', 'volume'),
 ('index', 'x'),
 ('index', 'y'),
 ('index', 'z'),
 ('index', 'zeros'),
 ('nbody', 'Coordinates'),
 ('nbody', 'Mass'),
 ('nbody', 'ParticleIDs'),
 ('nbody', 'Potential'),
 ('nbody', 'Velocity'),
 ('nbody', 'gravitational_potential'),
 ('nbody', 'particle_angular_momentum'),
 ('nbody', 'particle_angular_momentum_magnitude'),
 ('nbody', 'particle_angular_momentum_x'),
 ('nbody', 'particle_angular_momentum_y'),
 ('nbody', 'particle_angular_momentum_z'),
 ('nbody', 'particle_index'),
 ('nbody', 'particle_mass'),
 ('nbody', 'particle_ones'),
 ('nbody', 'particle_position'),
 ('nbody', 'particle_position_cylindrical_radius'),
 ('nbody', 'particle_position_cylindrical_theta'),
 ('nbody', 'particle_position_cylindrical_z'),
 ('nbody', 'particle_position_relative_x'),
 ('nbody', 'particle_position_relative_y'),
 ('nbody', 'particle_position_relative_z'),
 ('nbody', 'particle_position_spherical_phi'),
 ('nbody', 'particle_position_spherical_radius'),
 ('nbody', 'particle_position_spherical_theta'),
 ('nbody', 'particle_position_x'),
 ('nbody', 'particle_position_y'),
 ('nbody', 'particle_position_z'),
 ('nbody', 'particle_radial_velocity'),
 ('nbody', 'particle_radius'),
 ('nbody', 'particle_specific_angular_momentum'),
 ('nbody', 'particle_specific_angular_momentum_x'),
 ('nbody', 'particle_specific_angular_momentum_y'),
 ('nbody', 'particle_specific_angular_momentum_z'),
 ('nbody', 'particle_velocity'),
 ('nbody', 'particle_velocity_cylindrical_radius'),
 ('nbody', 'particle_velocity_cylindrical_theta'),
 ('nbody', 'particle_velocity_cylindrical_z'),
 ('nbody', 'particle_velocity_magnitude'),
 ('nbody', 'particle_velocity_relative_x'),
 ('nbody', 'particle_velocity_relative_y'),
 ('nbody', 'particle_velocity_relative_z'),
 ('nbody', 'particle_velocity_spherical_phi'),
 ('nbody', 'particle_velocity_spherical_radius'),
 ('nbody', 'particle_velocity_spherical_theta'),
 ('nbody', 'particle_velocity_x'),
 ('nbody', 'particle_velocity_y'),
 ('nbody', 'particle_velocity_z'),
 ('nbody', 'relative_particle_position'),
 ('nbody', 'relative_particle_position_x'),
 ('nbody', 'relative_particle_position_y'),
 ('nbody', 'relative_particle_position_z'),
 ('nbody', 'relative_particle_velocity'),
 ('nbody', 'relative_particle_velocity_x'),
 ('nbody', 'relative_particle_velocity_y'),
 ('nbody', 'relative_particle_velocity_z')]

Note that the ion fields follow the naming convention described in YTEP-0003 http://ytep.readthedocs.org/en/latest/YTEPs/YTEP-0003.html#molecular-and-atomic-species-names

Accessing Particle Data

The raw particle data can be accessed using the particle types. This corresponds directly with what is in the hdf5 snapshots.

[7]:
ad[("PartType0", "Coordinates")]
[7]:
unyt_array([[ 7.63205767, 11.81453991,  0.51125962],
            [ 7.63086319, 11.81438446,  0.51114064],
            [ 7.63330412, 11.81966019,  0.51152855],
            ...,
            [ 8.08398151, 11.65721989, 24.98464966],
            [ 8.08369541, 11.65744495, 24.98437691],
            [ 8.08294582, 11.65711975, 24.98280525]], 'code_length')
[8]:
ad[("PartType4", "IronFromSNIa")]
[8]:
unyt_array([5.53385646e-04, 6.50276139e-04, 8.77305210e-05, ...,
            3.50287039e-04, 6.43636849e-06, 2.16105400e-04], '(dimensionless)')
[9]:
ad[("PartType1", "ParticleIDs")]
[9]:
unyt_array([3944999., 3945352., 3945396., ..., 4038555., 4040280.,
            4042104.], '(dimensionless)')
[10]:
ad[("PartType0", "Hydrogen")]
[10]:
unyt_array([0.57138085, 0.68047136, 0.58387858, ..., 0.69845635,
            0.60976744, 0.62402648], '(dimensionless)')

Projection Plots

The projection plots make use of derived fields that store the smoothed particle data (particles smoothed onto an oct-tree). Below we make a projection of all hydrogen gas followed by only the neutral hydrogen gas.

[11]:
pz = yt.ProjectionPlot(ds, "z", ("gas", "H_density"))
[12]:
pz.show()

[13]:
pz = yt.ProjectionPlot(ds, "z", ("gas", "H_p0_density"))
[14]:
pz.show()