@@ -563,10 +563,10 @@ def evaluate_surfaces_cp_to_cdm(self):
563563 surface center of pressure to the rocket's center of mass.
564564 """
565565 for surface , position in self .aerodynamic_surfaces :
566- self .evaluate_single_surface_cp_to_cdm (surface , position )
566+ self .__evaluate_single_surface_cp_to_cdm (surface , position )
567567 return self .surfaces_cp_to_cdm
568568
569- def evaluate_single_surface_cp_to_cdm (self , surface , position ):
569+ def __evaluate_single_surface_cp_to_cdm (self , surface , position ):
570570 """Calculates the relative position of each aerodynamic surface
571571 center of pressure to the rocket's center of dry mass in Body Axes
572572 Coordinate System."""
@@ -996,21 +996,22 @@ def add_surfaces(self, surfaces, positions):
996996 -------
997997 None
998998 """
999+ # TODO: separate this method into smaller methods: https://github.com/RocketPy-Team/RocketPy/pull/696#discussion_r1771978422
9991000 try :
10001001 for surface , position in zip (surfaces , positions ):
10011002 if not isinstance (position , (Vector , tuple , list )):
10021003 position = Vector ([0 , 0 , position ])
10031004 else :
10041005 position = Vector (position )
10051006 self .aerodynamic_surfaces .add (surface , position )
1006- self .evaluate_single_surface_cp_to_cdm (surface , position )
1007+ self .__evaluate_single_surface_cp_to_cdm (surface , position )
10071008 except TypeError :
10081009 if not isinstance (positions , (Vector , tuple , list )):
10091010 positions = Vector ([0 , 0 , positions ])
10101011 else :
10111012 positions = Vector (positions )
10121013 self .aerodynamic_surfaces .add (surfaces , positions )
1013- self .evaluate_single_surface_cp_to_cdm (surfaces , positions )
1014+ self .__evaluate_single_surface_cp_to_cdm (surfaces , positions )
10141015
10151016 self .evaluate_center_of_pressure ()
10161017 self .evaluate_stability_margin ()
@@ -1175,7 +1176,7 @@ def add_trapezoidal_fins(
11751176 Parameters
11761177 ----------
11771178 n : int
1178- Number of fins, from 2 to infinity .
1179+ Number of fins, must be greater than 2 .
11791180 span : int, float
11801181 Fin span in meters.
11811182 root_chord : int, float
@@ -1273,7 +1274,7 @@ def add_elliptical_fins(
12731274 Parameters
12741275 ----------
12751276 n : int
1276- Number of fins, from 2 to infinity .
1277+ Number of fins, must be greater than 2 .
12771278 root_chord : int, float
12781279 Fin root chord in meters.
12791280 span : int, float
@@ -1341,8 +1342,8 @@ def add_free_form_fins(
13411342 Parameters
13421343 ----------
13431344 n : int
1344- Number of fins, from 2 to infinity .
1345- shape_points : list[tuple[float, float]]
1345+ Number of fins, must be greater than 2 .
1346+ shape_points : list
13461347 List of tuples (x, y) containing the coordinates of the fin's
13471348 geometry defining points. The point (0, 0) is the root leading edge.
13481349 Positive x is rearwards, positive y is upwards (span direction).
0 commit comments