pencil.ism_dyn.derived_h5

Derive auxilliary data and other diagnostics from var.h5 file and save to new h5 file

uses:

compute “data” arrays of size [nz,ny,nx] as required store “time” of snapshot

Functions

is_vector(key)

Check if the variable denoted by the label key is a vector.

der_limits(n1, n2, m1, m2, l1, l2, nghost)

under_limits(n1, m1, l1, n1shift, m1shift, l1shift, nghost)

derive_data(sim_path, src, dst[, magic, par, comm, ...])

calc_derived_data(src, dst, key, par, gd[, l1, l2, ...])

compute from src data and existing dst data derived data

Module Contents

pencil.ism_dyn.derived_h5.is_vector(key)

Check if the variable denoted by the label key is a vector.

pencil.ism_dyn.derived_h5.der_limits(n1, n2, m1, m2, l1, l2, nghost)
pencil.ism_dyn.derived_h5.under_limits(n1, m1, l1, n1shift, m1shift, l1shift, nghost)
pencil.ism_dyn.derived_h5.derive_data(sim_path, src, dst, magic=['pp', 'tt'], par=[], comm=None, gd=[], grp_overwrite=False, overwrite=False, rank=0, size=1, nghost=3, status='a', chunksize=1000.0, dtype=np.float64, quiet=True, nmin=32, Reynolds_shock=False, lmix=False)
pencil.ism_dyn.derived_h5.calc_derived_data(src, dst, key, par, gd, l1=3, l2=-3, m1=3, m2=-3, n1=3, n2=-3, nghost=3, Reynolds_shock=False, lmix=False)

compute from src data and existing dst data derived data