From 500f5261c7b8a70c172939c710f38c654ac3c5d0 Mon Sep 17 00:00:00 2001 From: MateusStano Date: Thu, 6 Jun 2024 19:17:41 +0200 Subject: [PATCH] ENH: get_value_opt in gravity --- rocketpy/simulation/flight.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocketpy/simulation/flight.py b/rocketpy/simulation/flight.py index 6635a63a3..5ec2b581a 100644 --- a/rocketpy/simulation/flight.py +++ b/rocketpy/simulation/flight.py @@ -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 = (