pencil_ccyang.math

Functions

curl(v1, v2, v3, grid)

Takes the curl of a vector field in Cartesian coordinates.

Module Contents

pencil_ccyang.math.curl(v1, v2, v3, grid)

Takes the curl of a vector field in Cartesian coordinates.

Positional Arguments
v1, v2, v3

Components of the vector field.

grid

Grid geometry returned by read.grid(trim=True).