我想更改计算尾流的网格点坐标,以便可以正确地将其与CFD模拟进行比较。
目前,我正在使用带有FlorisInterface
的FLORIS框架。 似乎我可以选择定义calculate_wake(points=...)
中的点,或者在用reinitialize_flow_field(...)
重新初始化流场时定义分辨率(with_resolution=Vec3
(和x,y,z边界(bounds_to_set=...
(。
我遇到了一些问题:
- 使用
FlorisInterface
时,它似乎无法在reinitialize_flow_field(...)
中找到参数bounds_to_set
,但是它存在于simulation.flow_field
中。 - 我很难弄清楚
points=...
需要如何格式化calculate_wake(points=...)
;文档说它是一个包含x,y和z坐标的数组,但我不确定数组应该如何塑造。
在设置中定义用户指定的网格点通常最合适的方法是什么?
你看过这个例子吗:
示例/flow_interaction/get_points_from_flow.py
这显示了如何从 1D x,y,z 数组中选择任意点:
# Define a set points running through one row
x_points = np.arange(-100, 1000, 1)
y_points = np.zeros_like(x_points)
z_points = np.ones_like(x_points) * 100
# Get the values
flow_points = fi.get_set_of_points(x_points, y_points, z_points)
print(flow_points)