pymead.analysis.utils.viscosity_calculator#
- viscosity_calculator(T: float, rho: float | None = None, input_units: str = 'K') float[source]#
Used to calculate the viscosity from temperature using Sutherland’s law for dialogs in the GUI
- Parameters:
T (float) – The input temperature (can be in units of \(K\), \(^{\circ}C\), or \(^{\circ}F\))
rho (float or None) – The density, specified if an output of kinematic viscosity is desired instead of dynamic viscosity. Default:
None.input_units (str) – Input units. Must be one of
"K","C", or"F". Default:"K"
- Returns:
The dynamic viscosity if the density is not specified, or the kinematic viscosity if the density is specified
- Return type: