Skip to content

Commit

Permalink
BUG: use surface z instead of cm z in reynolds calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusStano authored and Gui-FernandesBR committed Sep 14, 2024
1 parent ce1fe23 commit 60fd27e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rocketpy/simulation/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -1806,10 +1806,10 @@ def u_dot_generalized(
# TODO: Reynolds is only used in generic surfaces. This calculation
# should be moved to the surface class for efficiency
comp_reynolds = (
self.env.density.get_value_opt(z)
self.env.density.get_value_opt(comp_z)
* comp_stream_speed
* aero_surface.reference_length
/ self.env.dynamic_viscosity.get_value_opt(z)
/ self.env.dynamic_viscosity.get_value_opt(comp_z)
)
# Forces and moments
X, Y, Z, M, N, L = aero_surface.compute_forces_and_moments(
Expand Down

0 comments on commit 60fd27e

Please sign in to comment.