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.
2 parents 1fa8de1 + 5362247 commit 92922c6Copy full SHA for 92922c6
1 file changed
rocketpy/rocket/aero_surface.py
@@ -1,7 +1,6 @@
1
from abc import ABC, abstractmethod
2
import warnings
3
4
-import matplotlib.pyplot as plt
5
import numpy as np
6
from scipy.optimize import fsolve
7
@@ -426,12 +425,13 @@ def final_shape(x):
426
425
427
# Evaluate final geometry parameters
428
self.shape_vec = [nosecone_x, nosecone_y]
429
- self._length = nosecone_x[-1]
430
- print(
431
- "Due to the chosen bluffness ratio, the nose cone length was reduced to {:.3f} m.".format(
432
- self.length
+ if abs(nosecone_x[-1] - self.length) >= 0.001: # 1 milimiter
+ self._length = nosecone_x[-1]
+ print(
+ "Due to the chosen bluffness ratio, the nose cone length was reduced to m.".format(
+ self.length
433
+ )
434
)
- )
435
self.fineness_ratio = self.length / (2 * self.base_radius)
436
437
return None
0 commit comments