Dear developers,
I'm trying to make a turbine model with a multi-dimensional Cp - Ct table.
The table is saved in csv format and looks like
power_demand ws power thrust_coefficient
0 5 3.0 98.705963 0.816387
1 5 3.1 108.909235 0.816387
2 5 3.2 119.792482 0.816387
Then, I define the model as
from floris.turbine_library import TurbineInterface
iea3_4 = TurbineInterface.from_turbine_dict(
{
"turbine_type": "IEA 3.4 MW OpenFAST",
"rotor_diameter": 130.0,
"hub_height": 110.0,
"TSR": 8.16,
"multi_dimensional_cp_ct": True,
"power_thrust_table": {
"ref_air_density": 1.225,
"ref_tilt": 5.0,
"cosine_loss_exponent_yaw": 1.88,
"cosine_loss_exponent_tilt": 1.88,
"power_thrust_data_file": "./LUT_IEA3_4MW_4floris.csv",
},
}
)
This code crashes in power_thrust_table.validator, with:
ValueError: power_thrust_data_file must be defined if multi_dimensional_cp_ct is True.
As far as I can see, the table is correctly read in _initialize_multidim_power_thrust_table, hence it seems to be a problem with the validator.
Furthermore, according to the documentation:
power_thrust_data_file should be 1 level up, but that produces the same error, with the difference that the table is not read.
- The name and content of the columns should be different, but that also appears to be wrong.
My example is coherent with floris/turbine_library/iea_15MW_multi_dim_cp_ct.yaml.
Best regards,
Riccardo
Dear developers,
I'm trying to make a turbine model with a multi-dimensional Cp - Ct table.
The table is saved in csv format and looks like
Then, I define the model as
This code crashes in
power_thrust_table.validator, with:As far as I can see, the table is correctly read in
_initialize_multidim_power_thrust_table, hence it seems to be a problem with the validator.Furthermore, according to the documentation:
power_thrust_data_fileshould be 1 level up, but that produces the same error, with the difference that the table is not read.My example is coherent with
floris/turbine_library/iea_15MW_multi_dim_cp_ct.yaml.Best regards,
Riccardo