Skip to content

Commit

Permalink
Create wind_funcs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aclerc committed Apr 22, 2024
1 parent 440414a commit 3a10a06
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions wind_up/wind_funcs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import math

import pandas as pd


def calc_cp(
power_kw: float | pd.Series,
ws_ms: float | pd.Series,
air_density_kgpm3: float | pd.Series,
rotor_diameter_m: float,
) -> float | pd.Series:
rotor_area_m2 = math.pi * (rotor_diameter_m / 2) ** 2
return 1000.0 * power_kw / (0.5 * air_density_kgpm3 * rotor_area_m2 * ws_ms**3)

0 comments on commit 3a10a06

Please sign in to comment.