pencil.math.derivatives.der_6th_order_w_ghosts

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

FAG: added 5th derivative and filled derivative ghosts (except corners)

with periodic boundary values. TODO: include proper boundary conditions for non-internal ghosts. Add separate get_ghosts routine to handle this.

Functions

xder_6th(f, dx)

xder_6th(f, dx)

yder_6th(f, dy)

yder_6th(f, dy)

zder_6th(f, dz[, run2D])

zder_6th(f, dz)

xder2_6th(f, dx)

xder_6th(f, dx)

yder2_6th(f, dy)

yder2_6th(f, dy)

zder2_6th(f, dz)

zder2_6th(f, dz)

xder5_6th(f, dx)

xder5_6th(f, dx)

yder5_6th(f, dy)

yder5_6th(f, dy)

zder5_6th(f, dz)

zder5_6th(f, dy)

xder6_6th(f, dx)

xder6_6th(f, dx)

yder6_6th(f, dy)

yder6_6th(f, dy)

zder6_6th(f, dz)

zder6_6th(f, dz)

Module Contents

pencil.math.derivatives.der_6th_order_w_ghosts.xder_6th(f, dx)

xder_6th(f, dx)

Compute the 1st order derivative, 6th order accurate in x.

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

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

pencil.math.derivatives.der_6th_order_w_ghosts.yder_6th(f, dy)

yder_6th(f, dy)

Compute the 1st order derivative, 6th order accurate in y.

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

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

pencil.math.derivatives.der_6th_order_w_ghosts.zder_6th(f, dz, run2D=False)

zder_6th(f, dz)

Compute the 1st order derivative, 6th order accurate in z.

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

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

pencil.math.derivatives.der_6th_order_w_ghosts.xder2_6th(f, dx)

xder_6th(f, dx)

Compute the 2nd order derivative, 6th order accurate in x.

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

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

pencil.math.derivatives.der_6th_order_w_ghosts.yder2_6th(f, dy)

yder2_6th(f, dy)

Compute the 2nd order derivative, 6th order accurate in y.

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

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

pencil.math.derivatives.der_6th_order_w_ghosts.zder2_6th(f, dz)

zder2_6th(f, dz)

Compute the 2nd order derivative, 6th order accurate in z.

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

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

pencil.math.derivatives.der_6th_order_w_ghosts.xder5_6th(f, dx)

xder5_6th(f, dx)

Compute the 5th order derivative, 6th order accurate in x.

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

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

pencil.math.derivatives.der_6th_order_w_ghosts.yder5_6th(f, dy)

yder5_6th(f, dy)

Compute the 5th order derivative, 6th order accurate in y.

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

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

pencil.math.derivatives.der_6th_order_w_ghosts.zder5_6th(f, dz)

zder5_6th(f, dy)

Compute the 5th order derivative, 6th order accurate in z.

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

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

pencil.math.derivatives.der_6th_order_w_ghosts.xder6_6th(f, dx)

xder6_6th(f, dx)

Compute the 6th order derivative, 6th order accurate in x.

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

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

pencil.math.derivatives.der_6th_order_w_ghosts.yder6_6th(f, dy)

yder6_6th(f, dy)

Compute the 6th order derivative, 6th order accurate in y.

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

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

pencil.math.derivatives.der_6th_order_w_ghosts.zder6_6th(f, dz)

zder6_6th(f, dz)

Compute the 6th order derivative, 6th order accurate in z.

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

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