Skip to content

Commit e5c7533

Browse files
committed
ENH: use mass_flow_rate instead of differentiate
1 parent 624cc15 commit e5c7533

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rocketpy/simulation/flight.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,8 +1645,8 @@ def u_dot_generalized(self, t, u, post_processing=False):
16451645
# Retrieve necessary quantities
16461646
rho = self.env.density.get_value_opt(z)
16471647
total_mass = self.rocket.total_mass.get_value_opt(t)
1648-
total_mass_dot = self.rocket.total_mass.differentiate(t)
1649-
total_mass_ddot = self.rocket.total_mass.differentiate(t, order=2)
1648+
total_mass_dot = self.rocket.motor.total_mass_flow_rate(t)
1649+
total_mass_ddot = self.rocket.motor.total_mass_flow_rate.differentiate(t)
16501650
## CM position vector and time derivatives relative to CDM in body frame
16511651
r_CM_z = (
16521652
-1

0 commit comments

Comments
 (0)