viscid.calculator.necalc module

class viscid.calculator.necalc.VneCalc(expr, local_dict, ret_type=None, ret_context=None)[source]

Bases: object

expr = None
local_dict = None
ret_context = None
ret_type = None
slice_dict = None
viscid.calculator.necalc.abs_max(fld)[source]
viscid.calculator.necalc.abs_min(fld)[source]
viscid.calculator.necalc.axpby(a, x, b, y)[source]
viscid.calculator.necalc.cross(fld_a, fld_b)[source]

cross product of two vector fields

viscid.calculator.necalc.curl(fld, bnd=True)[source]

2nd order centeral diff, 1st order @ boundaries if bnd

viscid.calculator.necalc.div(fld, bnd=True)[source]

2nd order centeral diff, 1st order @ boundaries if bnd

viscid.calculator.necalc.dot(fld_a, fld_b)[source]

3d dot product of two vector fields

viscid.calculator.necalc.grad(fld, bnd=True)[source]

2nd order centeral diff, 1st order @ boundaries if bnd

viscid.calculator.necalc.magnitude(fld)[source]
viscid.calculator.necalc.normalize(fld_a)[source]

normalize a vector field

viscid.calculator.necalc.project(fld_a, fld_b)[source]

project a along b (a dot b / magnitude(b))

viscid.calculator.necalc.scale(a, fld)[source]