Skip to content

Commit

Permalink
Update Cp lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Sep 26, 2019
1 parent f9bfe53 commit 746b8a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/example_02.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@

tsr = np.arange(1,15,0.1)

# cp_0 = np.array([turbine.cp_interp(t,0) for t in tsr])
# cp_3 = np.array([turbine.cp_interp(t,3) for t in tsr])
cp_0 = np.array([turbine.Cp.interp_surface(0,t) for t in tsr])
cp_3 = np.array([turbine.Cp.interp_surface(np.deg2rad(3),t) for t in tsr])

cp_0 = np.array([turbine.cp_interp(t,0) for t in tsr])
cp_3 = np.array([turbine.cp_interp(t,3) for t in tsr])

print('Plotting Cp data')
fig, ax = plt.subplots()
ax.plot(tsr,cp_0,label='Pitch=0')
ax.plot(tsr,cp_3,label='Pitch=3')
Expand Down

0 comments on commit 746b8a9

Please sign in to comment.