Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update multidim turbine files to use absolute turbine power #818

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 10 additions & 15 deletions floris/simulation/turbine/turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,21 +520,16 @@ def _initialize_multidim_power_thrust_table(self):
data = df2.loc[key]

# Build the interpolants
power_thrust_table_.update({
key: {
"wind_speed": data['ws'].values,
"power": (
# NOTE: generator_efficiency hardcoded to 0.944 here (NREL 5MW default).
# This code will be
# removed in a separate PR when power is specified as an absolute value for
# mutlidimensional turbines
0.5 * self.rotor_area * data['Cp'].values * 0.944
* data['ws'].values ** 3 * power_thrust_table_ref["ref_air_density"] / 1000
), # TODO: convert this to 'power' or 'P' in data tables, as per PR #765
"thrust_coefficient": data['Ct'].values,
**power_thrust_table_ref
},
})
power_thrust_table_.update(
{
key: {
"wind_speed": data['ws'].values,
"power": data['power'].values,
"thrust_coefficient": data['thrust_coefficient'].values,
**power_thrust_table_ref
},
}
)
# Add reference information at the lower level

# Set on-object version
Expand Down
Loading
Loading