pencil.read.pdims

Contains the perticle dimension class and its reading routine.

Classes

PDim

Class holding the data from pdim.dat and its methods.

Functions

pdim(*args, **kwargs)

Wrapper for PDim.read()

Module Contents

class pencil.read.pdims.PDim

Bases: object

Class holding the data from pdim.dat and its methods.

Fill members with default values.

npar = 0
mpvar = 0
npar_stalk = 0
mpaux = 0
keys()
read(datadir='data')

read(sim=None, datadir=’data’)

Read the pdim.dat file.

Parameters:
  • sim (obj) – Specifies the simulation object from which to obtain the datadir.

  • datadir (string) – Directory where the data is stored.

Return type:

Object containing the particle dimensions.

pencil.read.pdims.pdim(*args, **kwargs)

Wrapper for PDim.read()