pyR2D2 Package

This is a package for dealing with R2D2 simulation data.

Example

A pyR2D2.Data instance can be created as follows:

import pyR2D2
datadir = '../run/d001/data/'
d = pyR2D2.Data(datadir)

Classes

Data(datadir[, verbose, self_old])

Class for managing R2D2 data

Parameters(data)

Class for managing R2D2 basic parameters

XSelect(data)

Class for 2D selected data at a certain x

ZSelect(data)

Class for 2D selected data at a certain z

MPIRegion(data)

Class for 3D data at a selected MPI process

FullData(data)

Class for 3D full data

RestrictedData(data)

Class for 3D restricted-volume data

OpticalDepth(data)

Class for 2D data at certain optical depths

OnTheFly(data)

Class for on-the-fly analysis data

Slice(data)

Class for 2D slice data

ModelS(data)

Class for Model S based stratification data

Sync(data)

Class for downloading data from remote server

Class Inheritance Diagram

Inheritance diagram of pyR2D2.data.Data, pyR2D2.data_io.parameters.Parameters, pyR2D2.data_io.read.XSelect, pyR2D2.data_io.read.ZSelect, pyR2D2.data_io.read.MPIRegion, pyR2D2.data_io.read.FullData, pyR2D2.data_io.read.RestrictedData, pyR2D2.data_io.read.OpticalDepth, pyR2D2.data_io.read.OnTheFly, pyR2D2.data_io.read.Slice, pyR2D2.data_io.read.ModelS, pyR2D2.sync.sync.Sync

pyR2D2.util Package

Functions

caseid_select(main_locals[, force_read])

Choose caseid from input or from user input.

define_n0(data, main_locals[, nd_type])

Define n0 in main_locals if not exists.

eos(data, ro, se, var)

Returns the Table equation of state.

get_best_unit(size, unit_multipliers)

Get the best unit for displaying the size.

get_total_file_size(directory[, unit])

Evaluate total size of files in directory.

init(main_locals[, instance_name, verpose, ...])

Initialize pyR2D2.Data instance in main program.

initialize_instance(main_locals, instance_name)

Initializes arbitrary instance of pyR2D2.Data object in main program.

locals_define(data, main_locals)

Substitute selp.p to main_locals in main program.

update_results_file(file_path, total_size, ...)

Updates the results file with the size of a directory.

pyR2D2.write Package

Sub Packages