PyMSES

Table Of Contents

Previous topic

Dataset transformations

Next topic

Filters module

This Page

Sources module

pymses.sources — Source file formats package

pymses.sources.ramses.output — RAMSES output package

pymses.sources.ramses.sources — RAMSES data sources module

class RamsesGenericSource(reader_list, dom_decomp=None, cpu_list=None, ndim=None, fields_to_read=None)

Bases: pymses.core.sources.Source

RAMSES generic data source

get_domain_dset(icpu, fields_to_read=None)

Data source reading method

Parameters :

icpu : int

CPU file number to read

fields_to_read : list of strings

list of AMR data fields that need to be read : Warning : usually this information is not needed here as it is already stored in self.fields_to_read (or in self.part_read_fields ): this option is only used internally for the remember_data cell_to_point source option Warning : It is the self.readers[...].ivars_descrs_by_file information that is used to determine which field is really read from the file system. This information is created when the source is created (the scripts line like source = RamsesOutput.amrsource([“rho”]))

Returns :

dset : Dataset

the dataset containing the data from the given cpu number file

class RamsesAmrSource(reader_list, dom_decomp=None, cpu_list=None, ndim=None, fields_to_read=None)

Bases: pymses.sources.ramses.sources.RamsesGenericSource

RAMSES AMR data source class

get_source_type()
Returns :Source.AMR_SOURCE = 10 (compared to Source.PARTICLE_SOURCE = 11) :
class RamsesParticleSource(reader_list, dom_decomp=None, cpu_list=None, ndim=None, fields_to_read=None)

Bases: pymses.sources.ramses.sources.RamsesGenericSource

RAMSES particle data source class

get_source_type()
Returns :Source.PARTICLE_SOURCE = 11 (compared to Source.AMR_SOURCE = 10) :

pymses.sources.hop — HOP data sources package