@@ -596,7 +596,7 @@ def evaluate_static_margin(self):
596
596
597
597
def evaluate_dry_inertias (self ):
598
598
"""Calculates and returns the rocket's dry inertias relative to
599
- the rocket's center of mass. The inertias are saved and returned
599
+ the rocket's center of dry mass. The inertias are saved and returned
600
600
in units of kg*m². This does not consider propellant mass but does take
601
601
into account the motor dry mass.
602
602
@@ -605,27 +605,27 @@ def evaluate_dry_inertias(self):
605
605
self.dry_I_11 : float
606
606
Float value corresponding to rocket inertia tensor 11
607
607
component, which corresponds to the inertia relative to the
608
- e_1 axis, centered at the instantaneous center of mass.
608
+ e_1 axis, centered at the center of dry mass.
609
609
self.dry_I_22 : float
610
610
Float value corresponding to rocket inertia tensor 22
611
611
component, which corresponds to the inertia relative to the
612
- e_2 axis, centered at the instantaneous center of mass.
612
+ e_2 axis, centered at the center of dry mass.
613
613
self.dry_I_33 : float
614
614
Float value corresponding to rocket inertia tensor 33
615
615
component, which corresponds to the inertia relative to the
616
- e_3 axis, centered at the instantaneous center of mass.
616
+ e_3 axis, centered at the center of dry mass.
617
617
self.dry_I_12 : float
618
618
Float value corresponding to rocket inertia tensor 12
619
619
component, which corresponds to the inertia relative to the
620
- e_1 and e_2 axes, centered at the instantaneous center of mass.
620
+ e_1 and e_2 axes, centered at the center of dry mass.
621
621
self.dry_I_13 : float
622
622
Float value corresponding to rocket inertia tensor 13
623
623
component, which corresponds to the inertia relative to the
624
- e_1 and e_3 axes, centered at the instantaneous center of mass.
624
+ e_1 and e_3 axes, centered at the center of dry mass.
625
625
self.dry_I_23 : float
626
626
Float value corresponding to rocket inertia tensor 23
627
627
component, which corresponds to the inertia relative to the
628
- e_2 and e_3 axes, centered at the instantaneous center of mass.
628
+ e_2 and e_3 axes, centered at the center of dry mass.
629
629
630
630
Notes
631
631
-----
@@ -681,23 +681,23 @@ def evaluate_dry_inertias(self):
681
681
682
682
def evaluate_inertias (self ):
683
683
"""Calculates and returns the rocket's inertias relative to
684
- the rocket's center of mass. The inertias are saved and returned
684
+ the rocket's center of dry mass. The inertias are saved and returned
685
685
in units of kg*m².
686
686
687
687
Returns
688
688
-------
689
689
self.I_11 : float
690
690
Float value corresponding to rocket inertia tensor 11
691
691
component, which corresponds to the inertia relative to the
692
- e_1 axis, centered at the instantaneous center of mass.
692
+ e_1 axis, centered at the center of dry mass.
693
693
self.I_22 : float
694
694
Float value corresponding to rocket inertia tensor 22
695
695
component, which corresponds to the inertia relative to the
696
- e_2 axis, centered at the instantaneous center of mass.
696
+ e_2 axis, centered at the center of dry mass.
697
697
self.I_33 : float
698
698
Float value corresponding to rocket inertia tensor 33
699
699
component, which corresponds to the inertia relative to the
700
- e_3 axis, centered at the instantaneous center of mass.
700
+ e_3 axis, centered at the center of dry mass.
701
701
702
702
Notes
703
703
-----
@@ -714,25 +714,25 @@ def evaluate_inertias(self):
714
714
"""
715
715
# Get masses
716
716
prop_mass = self .motor .propellant_mass # Propellant mass as a function of time
717
- dry_mass = self .dry_mass # Constant rocket mass with motor, without propellant
718
717
719
718
# Compute axes distances
720
- CM_to_CDM = self .center_of_mass - self .center_of_dry_mass_position
721
- CM_to_CPM = self .center_of_mass - self .center_of_propellant_position
719
+ CDM_to_CPM = (
720
+ self .center_of_dry_mass_position - self .center_of_propellant_position
721
+ )
722
722
723
723
# Compute inertias
724
- self .I_11 = parallel_axis_theorem_from_com (
725
- self .dry_I_11 , dry_mass , CM_to_CDM
726
- ) + parallel_axis_theorem_from_com ( self . motor . I_11 , prop_mass , CM_to_CPM )
724
+ self .I_11 = self . dry_I_11 + parallel_axis_theorem_from_com (
725
+ self .motor . propellant_I_11 , prop_mass , CDM_to_CPM
726
+ )
727
727
728
- self .I_22 = parallel_axis_theorem_from_com (
729
- self .dry_I_22 , dry_mass , CM_to_CDM
730
- ) + parallel_axis_theorem_from_com ( self . motor . I_22 , prop_mass , CM_to_CPM )
728
+ self .I_22 = self . dry_I_22 + parallel_axis_theorem_from_com (
729
+ self .motor . propellant_I_22 , prop_mass , CDM_to_CPM
730
+ )
731
731
732
- self .I_33 = self .dry_I_33 + self .motor .I_33
733
- self .I_12 = self .dry_I_12 + self .motor .I_12
734
- self .I_13 = self .dry_I_13 + self .motor .I_13
735
- self .I_23 = self .dry_I_23 + self .motor .I_23
732
+ self .I_33 = self .dry_I_33 + self .motor .propellant_I_33
733
+ self .I_12 = self .dry_I_12 + self .motor .propellant_I_12
734
+ self .I_13 = self .dry_I_13 + self .motor .propellant_I_13
735
+ self .I_23 = self .dry_I_23 + self .motor .propellant_I_23
736
736
737
737
# Return inertias
738
738
return (
@@ -814,7 +814,7 @@ def evaluate_com_to_cdm_function(self):
814
814
815
815
def get_inertia_tensor_at_time (self , t ):
816
816
"""Returns a Matrix representing the inertia tensor of the rocket with
817
- respect to the rocket's center of mass at a given time. It evaluates
817
+ respect to the rocket's center of dry mass at a given time. It evaluates
818
818
each inertia tensor component at the given time and returns a Matrix
819
819
with the computed values.
820
820
@@ -844,8 +844,8 @@ def get_inertia_tensor_at_time(self, t):
844
844
845
845
def get_inertia_tensor_derivative_at_time (self , t ):
846
846
"""Returns a Matrix representing the time derivative of the inertia
847
- tensor of the rocket with respect to the rocket's center of mass at a
848
- given time. It evaluates each inertia tensor component's derivative at
847
+ tensor of the rocket with respect to the rocket's center of dry mass at
848
+ a given time. It evaluates each inertia tensor component's derivative at
849
849
the given time and returns a Matrix with the computed values.
850
850
851
851
Parameters
0 commit comments