@@ -382,13 +382,13 @@ def evaluateLiftCoefficient(self):
382
382
else :
383
383
# Defines clalpha2D as the derivative of the
384
384
# lift coefficient curve for a specific airfoil
385
- airfoilCl = Function (
385
+ self . airfoilCl = Function (
386
386
self .airfoil [0 ],
387
387
interpolation = "linear" ,
388
388
)
389
389
390
390
# Differentiating at x = 0 to get cl_alpha
391
- clalpha2D_Mach0 = airfoilCl .differentiate (x = 1e-3 , dx = 1e-3 )
391
+ clalpha2D_Mach0 = self . airfoilCl .differentiate (x = 1e-3 , dx = 1e-3 )
392
392
393
393
# Convert to radians if needed
394
394
if self .airfoil [1 ] == "degrees" :
@@ -633,23 +633,31 @@ def rollInfo(self):
633
633
self .rollForcingInterferenceFactor
634
634
)
635
635
)
636
- # TODO: lacks a title for the plot
636
+ # lacks a title for the plot
637
637
self .rollParameters [0 ]()
638
- # TODO: lacks a title for the plot
638
+ # lacks a title for the plot
639
639
self .rollParameters [1 ]()
640
640
641
641
return None
642
642
643
- def airfoilPlots (self ):
643
+ def airfoilInfo (self ):
644
+ """Prints out airfoil related information of the
645
+ fin set.
646
+
647
+ Parameters
648
+ ----------
649
+ None
650
+
651
+ Return
652
+ ------
653
+ None
654
+ """
644
655
if self .airfoil is not None :
645
- airfoilCl = Function (
646
- self .airfoil [0 ],
647
- inputs = "angle of attack" ,
648
- outputs = "lift coefficient" ,
649
- interpolation = "linear" ,
650
- extrapolation = None ,
651
- )
652
- airfoilCl .plot1D ()
656
+ print ("\n \n Aerodynamic Information\n " )
657
+ print ("Airfoil's Lift Curve as a Function of Alpha ({}))" .format (self .airfoil [1 ]))
658
+ self .airfoilCl .plot1D ()
659
+
660
+ return None
653
661
654
662
def allInfo (self ):
655
663
"""Prints out all data and graphs available about the Rocket.
@@ -675,7 +683,7 @@ def allInfo(self):
675
683
self .geometricalInfo ()
676
684
self .aerodynamicInfo ()
677
685
self .rollInfo ()
678
- self .airfoilPlots ()
686
+ self .airfoilInfo ()
679
687
680
688
return None
681
689
@@ -1479,6 +1487,7 @@ def geometricInfo(self):
1479
1487
return None
1480
1488
1481
1489
def aerodynamicInfo (self ):
1490
+
1482
1491
print (f"\n Tail name: { self .name } " )
1483
1492
print (f"Tail Center of Pressure Position in Local Coordinates: { self .cp } m" )
1484
1493
print (f"Tail Lift Coefficient Slope: { self .clalpha :.3f} 1/rad" )
0 commit comments