Skip to content

Commit

Permalink
remove debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
helo9 committed Oct 21, 2019
1 parent 5d465aa commit cac4ef2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
9 changes: 6 additions & 3 deletions wingstructure/aero/liftingline.py
Expand Up @@ -16,7 +16,8 @@

class LiftAnalysis:
@classmethod
def generate(cls, wing, airfoil_db=defaultdict(AirfoilData), method='multhop', grid='default', M=None):
def generate(cls, wing, airfoil_db=defaultdict(AirfoilData), method='multhop', grid='default',
grid_pts=None, M=None):
"""Build a LiftAnalysis object
Parameters
Expand Down Expand Up @@ -51,16 +52,18 @@ def generate(cls, wing, airfoil_db=defaultdict(AirfoilData), method='multhop', g

ys[len(ys)//2] = 0.0

elif grid == 'defined':
ys = grid_pts
else:
ys = grid
raise Exception(f'Unknown grid argument: {grid}')

try:
calculator = _calculator_dict[method](wing, ys, airfoil_db)
except:
raise NotImplementedError('{} is not implemented yet!'.format(method))

analysis = cls()

analysis.ys = ys
analysis._base = calculator.baselift()
analysis._airbrake = calculator.airbrakelift()
Expand Down
4 changes: 1 addition & 3 deletions wingstructure/aero/multhop.py
Expand Up @@ -147,12 +147,10 @@ def multhop(ys: np.ndarray, αs: np.ndarray, chords: np.ndarray,

chords = solverinput[3]

import pdb

else:
M = len(ys)

θs = np.arccos(-2* ys/b)
θs = np.arccos(-2 * np.array(ys)/b)

γs, α_is = _multhop_solve(θs, αs, chords, dcls, b)

Expand Down
1 change: 0 additions & 1 deletion wingstructure/wingloads.py
Expand Up @@ -81,7 +81,6 @@ def calculation_points(flatwing, M):
array
span wise calculation positions
"""
from .aero.multhop import _calc_gridpoints

b = flatwing.span

Expand Down

0 comments on commit cac4ef2

Please sign in to comment.