def delta_star(y, v):
"""Compute the displacement thickness using Simpson's method.
Parameters
----------
y : ndarray
The independent variable.
v : ndarray
The velocity values.
Returns
-------
float
The value of the displacement thickness.
"""
return simps((1-v/v[-1]), x=y)
评论列表
文章目录