Quantities¶
-
turbulucid.core.quantities.
delta_99
(y, v, u0='last', interpolate=False)¶ Compute delta_99.
Parameters: - y (ndarray) – The values of the wall-normal coordinate.
- v (ndarray) – The values of the streamwise velocity.
- u0 ({'last', 'max'}) – How to compute the free stream velocity. Last will lead to using the last value in the v array, max will lead to using the maximum value.
- interpolate (bool) – Whether to add new points to the profile using linear interpolation. Useful for coarse profiles.
Returns: The value of delta_99.
Return type: float
Raises: ValueError
– If the computed value is not positive.
-
turbulucid.core.quantities.
momentum_thickness
(y, v, u0='last', interpolate=False)¶ Compute the momentum thickness.
Parameters: - y (ndarray) – The values of the wall-normal coordinate.
- v (ndarray) – The values of the streamwise velocity.
- u0 ({'last', 'max'}) – How to compute the free stream velocity. Last will lead to using the last value in the v array, max will lead to using the maximum value.
- interpolate (bool) – Whether to add new points to the profile using linear interpolation. Useful for coarse profiles.
Returns: The value of the momentum thickness.
Return type: float
-
turbulucid.core.quantities.
delta_star
(y, v, u0='last', interpolate=False)¶ Compute the displacement thickness.
Parameters: - y (ndarray) – The values of the wall-normal coordinate.
- v (ndarray) – The values of the streamwise velocity.
- u0 ({'last', 'max'}) – How to compute the free stream velocity. Last will lead to using the last value in the v array, max will lead to using the maximum value.
- interpolate (bool) – Whether to add new points to the profile using linear interpolation. Useful for coarse profiles.
Returns: The value of the displacement thickness.
Return type: float