pydda.cost_functions.calculate_smoothness_cost#
- pydda.cost_functions.calculate_smoothness_cost(u, v, w, dx, dy, dz, Cx=1e-05, Cy=1e-05, Cz=1e-05)[source]#
Calculates the smoothness cost function by taking the Laplacian of the wind field. All arrays in the given lists must have the same dimensions and represent the same spatial coordinates. :Parameters: * u (Float array) – Float array with u component of wind field
v (Float array) – Float array with v component of wind field
w (Float array) – Float array with w component of wind field
Cx (float) – Constant controlling smoothness in x-direction
Cy (float) – Constant controlling smoothness in y-direction
Cz (float) – Constant controlling smoothness in z-direction
- Returns:
Js (float) – value of smoothness cost function