Skip to content

Commit 7c14e54

Browse files
committed
bug: fix b and c geometrical parameters calculation
1 parent 03f1dc4 commit 7c14e54

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

rocketpy/Flight.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -1356,16 +1356,15 @@ def uDot(self, t, u, postProcessing=False):
13561356
# Geometry
13571357
# b = -self.rocket.distanceRocketPropellant
13581358
b = (
1359-
-(self.rocket.motorPosition - self.rocket.centerOfDryMassPosition)
1359+
-(
1360+
self.rocket.centerOfPropellantPosition(0)
1361+
- self.rocket.centerOfDryMassPosition
1362+
)
13601363
* self.rocket._csys
13611364
)
13621365
# c = -self.rocket.distanceRocketNozzle
13631366
c = (
1364-
-(
1365-
self.rocket.motor.nozzlePosition
1366-
+ self.rocket.motorPosition
1367-
- self.rocket.centerOfDryMassPosition
1368-
)
1367+
-(self.rocket.motorPosition - self.rocket.centerOfDryMassPosition)
13691368
* self.rocket._csys
13701369
)
13711370
a = b * Mt / M

rocketpy/Rocket.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Rocket:
114114
Rocket.motor : Motor
115115
Rocket's motor. See Motor class for more details.
116116
Rocket.motorPosition : float
117-
Position, in m, of the motor's reference origin relative to the user defined
117+
Position, in m, of the motor's nozzle exit area relative to the user defined
118118
rocket coordinate system. See `Rocket.coordinateSystemOrientation` for more
119119
information regarding the rocket's coordinate system.
120120
Rocket.centerOfPropellantPosition : Function

0 commit comments

Comments
 (0)