From ecf536d2061ba796a04e53abc73979052c8fe889 Mon Sep 17 00:00:00 2001 From: giovaniceotto Date: Wed, 29 Nov 2023 22:46:29 -0300 Subject: [PATCH] MNT: changes Generic Motor exhaust velocity to cached property --- rocketpy/motors/motor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocketpy/motors/motor.py b/rocketpy/motors/motor.py index 1af08d7f1..b2e658881 100644 --- a/rocketpy/motors/motor.py +++ b/rocketpy/motors/motor.py @@ -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.