Skip to content

Commit

Permalink
changed cd and cl to work with loc code
Browse files Browse the repository at this point in the history
  • Loading branch information
FernCarrera committed May 30, 2019
1 parent 85f780d commit 871bf17
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Model/Propulsion/cruise_comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def setup(self):
def compute(self,inputs,outputs):
W = inputs['W']*9.81
# add Cl & Cd if airfoil code doesnt work
cl = 2*W/(rho*(inputs['V']**2)*inputs['S'])
k = 1/(3.14*0.8*inputs['AR']) # e = 0.8
cd = inputs['cd0'] + k*cl**2
#outputs['P_C'] = (( (2*(W**3)*(inputs['Cd']**2))/(inputs['S']*rho*(inputs['Cl']**3)) )**.5)/1000
outputs['P_C'] = (( (2*(W**3)*(cd**2))/(inputs['S']*rho*(cl**3) ))**.5)/1000
#cl = 2*W/(rho*(inputs['V']**2)*inputs['S'])
#k = 1/(3.14*0.8*inputs['AR']) # e = 0.8
#cd = inputs['cd0'] + k*cl**2
outputs['P_C'] = (( (2*(W**3)*(inputs['Cd']**2))/(inputs['S']*rho*(inputs['Cl']**3)) )**.5)/1000
#outputs['P_C'] = (( (2*(W**3)*(cd**2))/(inputs['S']*rho*(cl**3) ))**.5)/1000

0 comments on commit 871bf17

Please sign in to comment.