-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fda13e2
commit 143d65f
Showing
8 changed files
with
219 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from .fof_fields import * | ||
from .fof_types import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
""" | ||
Contains the particle fields for the various particle types. | ||
""" | ||
|
||
# TODO: Decide what fields are needed here | ||
shared = { | ||
"Coordinates": "coordinates", | ||
"Masses": "masses", | ||
"ParticleIDs": "particle_ids", | ||
"Velocities": "velocities", | ||
"Potential": "potential", | ||
} | ||
|
||
baryon = { | ||
"ElementAbundance": "element_abundance", | ||
"Maximal Temperature": "maximal_temperature", | ||
"Maximal Temperature scale-factor": "maximal_temperature_scale_factor", | ||
"Maximal Temperature time": "maximal_temperature_time", | ||
"IronMassFracFromSNIa": "iron_mass_frac_from_sn1a", | ||
"MetalMassFracFromAGB": "metal_mass_frac_from_agb", | ||
"MetalMassFracFromSNII": "metal_mass_frac_from_snii", | ||
"MetalMassFracFromSNIa": "metal_mass_frac_from_sn1a", | ||
"Metallicity": "metallicity", | ||
"SmoothedElementAbundance": "smoothed_element_abundance", | ||
"SmoothedIronMassFracFromSNIa": "smoothed_iron_mass_frac_from_sn1a", | ||
"SmoothedMetallicity": "smoothed_metallicity", | ||
"TotalMassFromAGB": "total_mass_from_agb", | ||
"TotalMassFromSNII": "total_mass_from_snii", | ||
} | ||
|
||
gas = { | ||
"Density": "density", | ||
"Entropy": "entropy", | ||
"InternalEnergy": "internal_energy", | ||
"SmoothingLength": "smoothing_length", | ||
"Pressure": "pressure", | ||
"Diffusion": "diffusion", | ||
"SFR": "sfr", | ||
"Temperature": "temperature", | ||
"Viscosity": "viscosity", | ||
"sSFR": "specific_sfr", | ||
"MaterialID": "material_id", | ||
"Diffusion": "diffusion", | ||
"Viscosity": "viscosity", | ||
"RadiatedEnergy": "radiated_energy", | ||
**shared, | ||
**baryon, | ||
} | ||
|
||
dark_matter = {**shared} | ||
|
||
boundary = {**shared} | ||
|
||
sinks = {**shared} | ||
|
||
stars = { | ||
"BirthDensity": "birth_density", | ||
"BirthTime": "birth_time", | ||
"InitialMasses": "initial_masses", | ||
"SmoothingLength": "smoothing_length", | ||
**shared, | ||
**baryon, | ||
} | ||
|
||
black_holes = {**shared} | ||
|
||
neutrinos = {**shared} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
""" | ||
Includes the fancy names. | ||
""" | ||
|
||
# Describes the conversion of hdf5 group names to swiftsimio names | ||
fof_name_underscores = {"Groups": "fof_groups"} | ||
|
||
fof_name_class = {"Groups": "FOFGroups"} | ||
|
||
fof_name_text = {"Groups": "FOF Groups"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.