gpt4 book ai didi

floris - 如何更改使用 FlorisInterface 记录流场速度的网格点坐标?

转载 作者:行者123 更新时间:2023-12-03 20:51:32 25 4
gpt4 key购买 nike

我想更改计算尾流的网格点坐标,以便我可以将其与 CFD 模拟进行正确比较。
目前,我正在使用 FLORIS 框架和 FlorisInterface .
似乎我可以选择在 calculate_wake(points=...) 中定义点或者在使用 with_resolution=Vec3 重新初始化流场时定义分辨率 ( bounds_to_set=... ) 和 x,y,z 边界 ( reinitialize_flow_field(...) ) .
我遇到的问题有:

  • 使用时 FlorisInterface好像找不到参数bounds_to_setreinitialize_flow_field(...) ,但是它存在于 simulation.flow_field 中.
  • 我无法弄清楚如何points=...需要格式化为 calculate_wake(points=...) ;文档说它是一个包含 x、y 和 z 坐标的数组,但我不确定该数组的形状。

  • 在设置中定义用户指定的网格点通常最合适的方法是什么?

    最佳答案

    你看过这个例子:
    示例/flow_interaction/get_points_from_flow.py
    这显示了如何从一维 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)

    关于floris - 如何更改使用 FlorisInterface 记录流场速度的网格点坐标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62555398/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com