pg_utils.processing.postproc.get_eigen_field_function

pg_utils.processing.postproc.get_eigen_field_function(xpd_recipe: ExpansionRecipe, phys_par: dict) LabeledCollection[source]

Lambdify functions of field variables

This method converts symbolic expansions of the unknown variables to numerical functions of the variables for efficient evaluation

Parameters:
Returns:

collection of functions for numerical evaluation, the first N functions correspond to the fields indicated in xpd_recipe, and their names also inherits from the recipe; the trailing 4 functions are U_s (radial velocity), U_p (azimuthal velocity), U_z (axial velocity) and Zeta (axial vorticity).

Return type:

base.LabeledCollection

Note

This method assumes implicitly that stream function Psi is part of the variables of the xpd_recipe (which should be the case, as long as we are solving the PG model). This is required to calculate the velocity field and the axial vorticity.