pencil.math.derivatives.der_4th_order_w_ghosts

4th Order derivatives. Currently only equidistant grids are supported.

Functions

xder3_4th(f, dx)

xder3_4th(f, dx)

yder3_4th(f, dy)

yder3_4th(f, dy)

zder3_4th(f, dz)

zder3_4th(f, dz)

Module Contents

pencil.math.derivatives.der_4th_order_w_ghosts.xder3_4th(f, dx)

xder3_4th(f, dx)

Compute the 3rd order derivative, 4th order accurate in x.

Parameters:
  • f (ndarray) – Array for which to compute the derivative.

  • dx (float) – Grid-spacing in x.

pencil.math.derivatives.der_4th_order_w_ghosts.yder3_4th(f, dy)

yder3_4th(f, dy)

Compute the 3rd order derivative, 4th order accurate in y.

Parameters:
  • f (ndarray) – Array for which to compute the derivative.

  • dy (float) – Grid-spacing in y.

pencil.math.derivatives.der_4th_order_w_ghosts.zder3_4th(f, dz)

zder3_4th(f, dz)

Compute the 3rd order derivative, 4th order accurate in z.

Parameters:
  • f (ndarray) – Array for which to compute the derivative.

  • dz (float) – Grid-spacing in z.