我做了Floris文档中提供的exercises。所有这些只定义了每个风电场的一种涡轮机类型。JSON配置文件中只有一个字段对应于"turbine“。浏览一下source code,似乎Floris从来没有打算允许定义混合类型的农场。这是正确的吗?
我有一个由5台机器组成的小风电场,由3种不同类型的涡轮机组成。在这种情况下,有没有希望使用弗洛里斯?
发布于 2019-10-30 03:20:40
JSON输入文件确实只允许定义一个涡轮机类型。但是,在使用Floris接口实例化Floris对象之后,可以更改各个涡轮机参数。
以下示例说明如何通过服务器场的turbine_map属性中的涡轮机列表更改涡轮机参数。改变了3号和4号汽轮机的转子直径和轮毂高度。此外,还显示了如何改变每个涡轮机的Cp和Ct曲线的示例。
# Initialize the FLORIS interface fi
fi = wfct.floris_utilities.FlorisInterface("example_input.json")
D = fi.floris.farm.turbines[0].rotor_diameter
hh = fi.floris.farm.turbines[0].hub_height
rotor_diameters_new = [D, D, 0.5*D, 0.5*D]
hub_heights_new = [hh, hh, 0.75*hh, 0.75*hh]
# As an example, scaling the Cp and Ct curves by 90%
cp_new = [0.9*x for x in fi.floris.farm.turbines[0].power_thrust_table["power"]]
ct_new = [0.9*x for x in fi.floris.farm.turbines[0].power_thrust_table["thrust"]]
# Assign new parameters to turbines
for i_turb, turbine in enumerate(fi.floris.farm.turbine_map.turbines):
turbine.rotor_diameter = rotor_diameters_new[i_turb]
turbine.hub_height = hub_heights_new[i_turb]
turbine.power_thrust_table["power"] = cp_new
turbine.power_thrust_table["thrust"] = ct_new在更改了您感兴趣的涡轮机参数之后,其余的FLORIS计算将使用新的涡轮机类型。
https://stackoverflow.com/questions/58329713
复制相似问题