@@ -63,7 +63,7 @@ def inertia_details(self):
6363 )
6464 )
6565 print (
66- "Rocket Inertia (with motor, but without propellant) 23: {:.3f} kg*m2" .format (
66+ "Rocket Inertia (with motor, but without propellant) 23: {:.3f} kg*m2\n " .format (
6767 self .rocket .dry_I_23
6868 )
6969 )
@@ -82,7 +82,7 @@ def rocket_geometrical_parameters(self):
8282 print ("Rocket Frontal Area: " + "{:.6f}" .format (self .rocket .area ) + " m2" )
8383 print ("\n Rocket Distances" )
8484 print (
85- "Rocket Center of Dry Mass - Center of Mass withour Motor: "
85+ "Rocket Center of Dry Mass - Center of Mass without Motor: "
8686 + "{:.3f} m" .format (
8787 abs (
8888 self .rocket .center_of_mass_without_motor
@@ -91,7 +91,7 @@ def rocket_geometrical_parameters(self):
9191 )
9292 )
9393 print (
94- "Rocket Center of Dry Mass - Nozzle Exit Distance : "
94+ "Rocket Center of Dry Mass - Nozzle Exit: "
9595 + "{:.3f} m" .format (
9696 abs (
9797 self .rocket .center_of_dry_mass_position - self .rocket .motor_position
@@ -109,7 +109,7 @@ def rocket_geometrical_parameters(self):
109109 )
110110 print (
111111 "Rocket Center of Mass - Rocket Loaded Center of Mass: "
112- + "{:.3f} m" .format (
112+ + "{:.3f} m\n " .format (
113113 abs (
114114 self .rocket .center_of_mass (0 )
115115 - self .rocket .center_of_dry_mass_position
@@ -135,36 +135,40 @@ def rocket_aerodynamics_quantities(self):
135135 + "/rad"
136136 )
137137
138- print ("\n Aerodynamics Center of Pressure\n " )
138+ print ("\n Center of Pressure\n " )
139139 for surface , position in self .rocket .aerodynamic_surfaces :
140140 name = surface .name
141- cpz = surface .cp [2 ]
141+ cpz = surface .cp [2 ] # relative to the user defined coordinate system
142142 print (
143143 name
144- + " Center of Pressure to CM : {:.3f}" .format (
144+ + " Center of Pressure position : {:.3f}" .format (
145145 position - self .rocket ._csys * cpz
146146 )
147147 + " m"
148148 )
149+ print ("\n Stability\n " )
149150 print (
150- "Distance - Center of Pressure to Center of Dry Mass: "
151- + "{:.3f}" .format (
152- self .rocket .center_of_mass (0 ) - self .rocket .cp_position (0 )
153- )
154- + " m"
151+ f"Center of Mass position (time=0): { self .rocket .center_of_mass (0 ):.3f} m"
155152 )
156153 print (
157- "Initial Static Margin: "
154+ "Initial Static Margin (mach=0, time=0) : "
158155 + "{:.3f}" .format (self .rocket .static_margin (0 ))
159156 + " c"
160157 )
161158 print (
162- "Final Static Margin: "
159+ "Final Static Margin (mach=0, time=burn_out) : "
163160 + "{:.3f}" .format (
164161 self .rocket .static_margin (self .rocket .motor .burn_out_time )
165162 )
166163 + " c"
167164 )
165+ print (
166+ "Rocket Center of Mass (time=0) - Center of Pressure (mach=0): "
167+ + "{:.3f}" .format (
168+ abs (self .rocket .center_of_mass (0 ) - self .rocket .cp_position (0 ))
169+ )
170+ + " m\n "
171+ )
168172
169173 return None
170174
@@ -188,18 +192,14 @@ def all(self):
188192 """
189193 # Print inertia details
190194 self .inertia_details ()
191- print ()
192195
193196 # Print rocket geometrical parameters
194197 self .rocket_geometrical_parameters ()
195- print ()
196198
197199 # Print rocket aerodynamics quantities
198200 self .rocket_aerodynamics_quantities ()
199- print ()
200201
201202 # Print parachute data
202203 self .parachute_data ()
203- print ()
204204
205205 return None
0 commit comments