Skip to content

Commit

Permalink
ENH: get_value_opt in gravity
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusStano committed Jun 6, 2024
1 parent cb56292 commit 500f526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocketpy/simulation/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,7 @@ def u_dot_generalized(self, t, u, post_processing=False):
)
M3 += self.rocket.cp_eccentricity_x * R2 - self.rocket.cp_eccentricity_y * R1

weightB = Kt @ Vector([0, 0, -total_mass * self.env.gravity(z)])
weightB = Kt @ Vector([0, 0, -total_mass * self.env.gravity.get_value_opt(z)])
T00 = total_mass * r_CM
T03 = 2 * total_mass_dot * (r_NOZ - r_CM) - 2 * total_mass * r_CM_dot
T04 = (
Expand Down

0 comments on commit 500f526

Please sign in to comment.