Skip to content

Commit

Permalink
remove fuselage influences for better numerical stability and more ac…
Browse files Browse the repository at this point in the history
…curate drag
  • Loading branch information
peterdsharpe committed Oct 5, 2023
1 parent 7ffd0c2 commit 9e04a1e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
15 changes: 8 additions & 7 deletions aerosandbox/aerodynamics/aero_3D/lifting_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,13 +903,14 @@ def get_velocity_at_points(self,

freestream_velocities = np.add(wide(self.steady_freestream_velocity), rotation_freestream_velocities)

if self.airplane.fuselages:
V_induced_fuselage = self.calculate_fuselage_influences(
points=points
)
V = V_induced + V_induced_fuselage + freestream_velocities
else:
V = V_induced + freestream_velocities
V = V_induced + freestream_velocities

# if self.airplane.fuselages:
# V_induced_fuselage = self.calculate_fuselage_influences(
# points=points
# )
# V = V + V_induced_fuselage

return V

def calculate_fuselage_influences(self, points: np.ndarray) -> np.ndarray:
Expand Down
15 changes: 8 additions & 7 deletions aerosandbox/aerodynamics/aero_3D/nonlinear_lifting_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,13 +575,14 @@ def get_velocity_at_points(self,

freestream_velocities = np.add(wide(self.steady_freestream_velocity), rotation_freestream_velocities)

if self.airplane.fuselages:
V_induced_fuselage = self.calculate_fuselage_influences(
points=points
)
V = V_induced + V_induced_fuselage + freestream_velocities
else:
V = V_induced + freestream_velocities
V = V_induced + freestream_velocities

# if self.airplane.fuselages:
# V_induced_fuselage = self.calculate_fuselage_influences(
# points=points
# )
# V = V + V_induced_fuselage

return V

def calculate_fuselage_influences(self, points: np.ndarray) -> np.ndarray:
Expand Down

0 comments on commit 9e04a1e

Please sign in to comment.