We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b625a8 commit 8af308bCopy full SHA for 8af308b
1 file changed
rocketpy/rocket/rocket.py
@@ -294,6 +294,12 @@ def __init__( # pylint: disable=too-many-statements
294
self.I_13_without_motor = inertia[4]
295
self.I_23_without_motor = inertia[5]
296
297
+ # Initial Inertia Tensor determinant singularity check
298
+ if abs(inertia) == 0:
299
+ raise ValueError(
300
+ "The rocket inertia tensor is singular (determinant is zero). "
301
+ )
302
+
303
# Define rocket geometrical parameters in SI units
304
self.center_of_mass_without_motor = center_of_mass_without_motor
305
self.radius = radius
0 commit comments