Skip to content

Commit

Permalink
ENH: use mass_flow_rate instead of differentiate
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusStano committed Apr 9, 2024
1 parent 624cc15 commit e5c7533
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 @@ -1645,8 +1645,8 @@ def u_dot_generalized(self, t, u, post_processing=False):
# Retrieve necessary quantities
rho = self.env.density.get_value_opt(z)
total_mass = self.rocket.total_mass.get_value_opt(t)
total_mass_dot = self.rocket.total_mass.differentiate(t)
total_mass_ddot = self.rocket.total_mass.differentiate(t, order=2)
total_mass_dot = self.rocket.motor.total_mass_flow_rate(t)
total_mass_ddot = self.rocket.motor.total_mass_flow_rate.differentiate(t)
## CM position vector and time derivatives relative to CDM in body frame
r_CM_z = (
-1
Expand Down

0 comments on commit e5c7533

Please sign in to comment.