pencil.calc.Reynolds
Calculate the Reynolds number fields from the momentum and induction equations using the ratio of advective to diffusive expressions.
Functions
|
Computes the fluid Reynolds number from the advective and effective |
|
Computes the magnetic Reynolds number from the advective and effective |
Module Contents
- pencil.calc.Reynolds.fluid_reynolds(uu, param, grid, lnrho=list(), shock=list(), nghost=3, lmix=True, quiet=True)
Computes the fluid Reynolds number from the advective and effective viscous expressions in the momentum equation.
call signature:
fluid_reynolds(uu, ivisc, grid, rho=None, shock=None, nghost=3)
- Keyword Arguments:
*uu* – The velocity field [3,mz,my,mx] from the simulation data
*param* – The Param simulation object with viscosity data information
*grid* – The Grid simulation object
*lnrho* – The log density field if it is non-uniform
*shock* – The shock variable if shock viscosity is applied
*nghost* – The number of ghost zones appropriate to the order of accuracy
*lmix* – Option not to include hyper values when Laplacian values present
- pencil.calc.Reynolds.magnetic_reynolds(uu, param, grid, aa=list(), bb=list(), jj=list(), nghost=3, lmix=True, quiet=True)
Computes the magnetic Reynolds number from the advective and effective resistive expressions in the induction equation.
call signature:
magnetic_reynolds(uu, param, grid, aa=None, bb=None, jj=None, nghost=3):
- Keyword Arguments:
*uu* – The velocity field [3,mz,my,mx] from the simulation data
*param* – The Param simulation object with resistivity data information
*grid* – The Grid simulation object
*aa* – The vector potential if bb is not present or hyper diffusion
*bb* – The magnetic field
*jj* – The current density field
*nghost* – The number of ghost zones appropriate to the order of accuracy
*lmix* – Option not to include hyper values when Laplacian values present