Skip to content

Commit

Permalink
MNT: changes Generic Motor exhaust velocity to cached property
Browse files Browse the repository at this point in the history
  • Loading branch information
giovaniceotto committed Nov 30, 2023
1 parent 22bb07b commit ecf536d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocketpy/motors/motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ def propellant_initial_mass(self):
"""
return self.propellant_initial_mass

@funcify_method("Time (s)", "Exhaust velocity (m/s)")
@cached_property
def exhaust_velocity(self):
"""Exhaust velocity by assuming it as a constant. The formula used is
total impulse/propellant initial mass.
Expand Down

0 comments on commit ecf536d

Please sign in to comment.