Source code for yt.frontends.exodus_ii.fields

from yt.fields.field_info_container import FieldInfoContainer

# We need to specify which fields we might have in our dataset.  The field info
# container subclass here will define which fields it knows about.  There are
# optionally methods on it that get called which can be subclassed.


[docs] class ExodusIIFieldInfo(FieldInfoContainer): known_other_fields = ( # Each entry here is of the form # ( "name", ("units", ["fields", "to", "alias"], # "display_name")), ) known_particle_fields = ( # Identical form to above # ( "name", ("units", ["fields", "to", "alias"], # "display_name")), ) def __init__(self, ds, field_list): super().__init__(ds, field_list) for name in self: self[name].take_log = False # If you want, you can check self.field_list
[docs] def setup_fluid_fields(self): # Here we do anything that might need info about the dataset. # You can use self.alias, self.add_output_field and self.add_field . pass
[docs] def setup_particle_fields(self, ptype): # This will get called for every particle type. pass