Skip to content

Commit f295465

Browse files
Merge pull request #78 from Projeto-Jupiter/typofix/Flight
Fixed typos on Flight class docs
2 parents 04c0c4d + 7c1160a commit f295465

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

rocketpy/Flight.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
__author__ = "Giovani Hidalgo Ceotto"
3+
__author__ = "Giovani Hidalgo Ceotto, João Lemes Gribel Soares"
44
__copyright__ = "Copyright 20XX, Projeto Jupiter"
55
__license__ = "MIT"
66

@@ -85,7 +85,7 @@ class Flight:
8585
calculate them and feed the triggers. Can greatly improve run
8686
time in some cases.
8787
Flight.terminateOnApogee : bool
88-
Wheater to terminate simulation when rocket reaches apogee.
88+
Whether to terminate simulation when rocket reaches apogee.
8989
Flight.solver : scipy.integrate.LSODA
9090
Scipy LSODA integration scheme.
9191
@@ -336,23 +336,23 @@ class Flight:
336336
Direction 3 is in the rocket's body axis and points in the
337337
direction of cylindrical symmetry.
338338
Flight.M1 : Function
339-
Resultant momentum perpendicular to rockets axis due to
339+
Resultant moment (torque) perpendicular to rockets axis due to
340340
aerodynamic forces and excentricity as a function of time.
341341
Units in N*m.
342342
Expressed as a function of time. Can be called or accessed
343343
as array.
344344
Direction 1 is in the rocket's body axis and points perpendicular
345345
to the rocket's axis of cylindrical symmetry.
346346
Flight.M2 : Function
347-
Resultant momentum perpendicular to rockets axis due to
347+
Resultant moment (torque) perpendicular to rockets axis due to
348348
aerodynamic forces and excentricity as a function of time.
349349
Units in N*m.
350350
Expressed as a function of time. Can be called or accessed
351351
as array.
352352
Direction 2 is in the rocket's body axis and points perpendicular
353353
to the rocket's axis of cylindrical symmetry and direction 1.
354354
Flight.M3 : Function
355-
Resultant momentum in rockets axis due to aerodynamic
355+
Resultant moment (torque) in rockets axis due to aerodynamic
356356
forces and excentricity as a function of time. Units in N*m.
357357
Expressed as a function of time. Can be called or accessed
358358
as array.
@@ -461,15 +461,15 @@ class Flight:
461461
Flight.apogeeFreestreamSpeed : float
462462
Freestream speed of the rocket at apogee in m/s.
463463
Flight.MachNumber : Function
464-
Rocket's Mach number defined as it's freestream speed
464+
Rocket's Mach number defined as its freestream speed
465465
devided by the speed of sound at its altitude. Expressed
466466
as a function of time. Can be called or accessed as array.
467467
Flight.maxMachNumber : float
468468
Rocket's maximum Mach number experienced during flight.
469469
Flight.maxMachNumberTime : float
470470
Time at which the rocket experiences the maximum Mach number.
471471
Flight.ReynoldsNumber : Function
472-
Rocket's Reynolds number, using it's diameter as reference
472+
Rocket's Reynolds number, using its diameter as reference
473473
length and freestreamSpeed as reference velocity. Expressed
474474
as a function of time. Can be called or accessed as array.
475475
Flight.maxReynoldsNumber : float
@@ -550,7 +550,7 @@ def __init__(
550550
except for the euler parameters which will be calculated based
551551
on given values of inclination and heading. Default is None.
552552
terminateOnApogee : boolean, optioanal
553-
Wheater to terminate simulation when rocket reaches apogee.
553+
Whether to terminate simulation when rocket reaches apogee.
554554
Default is False.
555555
maxTime : int, float, optional
556556
Maximum time in which to simulate trajectory in seconds.
@@ -688,7 +688,7 @@ def __init__(
688688
headingRad
689689
)
690690

691-
# Create knonw flight phases
691+
# Create known flight phases
692692
self.flightPhases = FlightPhases()
693693
self.flightPhases.addPhase(self.tInitial, self.initialDerivative, clear=False)
694694
self.flightPhases.addPhase(self.maxTime)
@@ -922,7 +922,7 @@ def __init__(
922922
vz1 = self.solution[-1][6]
923923
t1 = self.solution[-1][0]
924924
t_root = -(t1 - t0) * vz0 / (vz1 - vz0) + t0
925-
# Fecth state at t_root
925+
# Fetch state at t_root
926926
interpolator = phase.solver.dense_output()
927927
self.apogeeState = interpolator(t_root)
928928
# Store apogee data
@@ -1552,7 +1552,7 @@ def postProcess(self):
15521552
self.ax, self.ay, self.az = [], [], []
15531553
self.alpha1, self.alpha2, self.alpha3 = [], [], []
15541554
# Go throught each time step and calculate accelerations
1555-
# Get fligth phases
1555+
# Get flight phases
15561556
for phase_index, phase in self.timeIterator(self.flightPhases):
15571557
initTime = phase.t
15581558
finalTime = self.flightPhases[phase_index + 1].t
@@ -1594,7 +1594,7 @@ def postProcess(self):
15941594
)
15951595
self.windVelocityX, self.windVelocityY = [], []
15961596
# Go throught each time step and calculate forces and atmospheric values
1597-
# Get fligth phases
1597+
# Get flight phases
15981598
for phase_index, phase in self.timeIterator(self.flightPhases):
15991599
initTime = phase.t
16001600
finalTime = self.flightPhases[phase_index + 1].t
@@ -1631,7 +1631,7 @@ def postProcess(self):
16311631

16321632
# Process fourth type of output - values calculated from previous outputs
16331633

1634-
# Kinematicss functions and values
1634+
# Kinematics functions and values
16351635
# Velocity Magnitude
16361636
self.speed = (self.vx ** 2 + self.vy ** 2 + self.vz ** 2) ** 0.5
16371637
self.speed.setOutputs("Speed - Velocity Magnitude (m/s)")
@@ -2036,7 +2036,7 @@ def info(self):
20362036
print("Frontal Surface Wind Speed: {:.2f} m/s".format(self.frontalSurfaceWind))
20372037
print("Lateral Surface Wind Speed: {:.2f} m/s".format(self.lateralSurfaceWind))
20382038

2039-
# Print of rail conditions
2039+
# Print out of rail conditions
20402040
print("\n\n Rail Departure State\n")
20412041
print("Rail Departure Time: {:.3f} s".format(self.outOfRailTime))
20422042
print("Rail Departure Velocity: {:.3f} m/s".format(self.outOfRailVelocity))
@@ -2573,7 +2573,7 @@ def plotFlightPathAngleData(self):
25732573
return None
25742574

25752575
def plotAngularKinematicsData(self):
2576-
"""Prints out all Angular veolcity and acceleration graphs available
2576+
"""Prints out all Angular velocity and acceleration graphs available
25772577
about the Flight
25782578
25792579
Parameters
@@ -3190,7 +3190,7 @@ def plotPressureSignals(self):
31903190
has not been added.
31913191
31923192
This function aims to help the engineer to visually check if there
3193-
isn't no anomalies with the Flight Simulation.
3193+
are anomalies with the Flight Simulation.
31943194
31953195
Parameters
31963196
----------

0 commit comments

Comments
 (0)