|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 |
|
3 | | -__author__ = "Giovani Hidalgo Ceotto" |
| 3 | +__author__ = "Giovani Hidalgo Ceotto, João Lemes Gribel Soares" |
4 | 4 | __copyright__ = "Copyright 20XX, Projeto Jupiter" |
5 | 5 | __license__ = "MIT" |
6 | 6 |
|
@@ -85,7 +85,7 @@ class Flight: |
85 | 85 | calculate them and feed the triggers. Can greatly improve run |
86 | 86 | time in some cases. |
87 | 87 | Flight.terminateOnApogee : bool |
88 | | - Wheater to terminate simulation when rocket reaches apogee. |
| 88 | + Whether to terminate simulation when rocket reaches apogee. |
89 | 89 | Flight.solver : scipy.integrate.LSODA |
90 | 90 | Scipy LSODA integration scheme. |
91 | 91 |
|
@@ -336,23 +336,23 @@ class Flight: |
336 | 336 | Direction 3 is in the rocket's body axis and points in the |
337 | 337 | direction of cylindrical symmetry. |
338 | 338 | Flight.M1 : Function |
339 | | - Resultant momentum perpendicular to rockets axis due to |
| 339 | + Resultant moment (torque) perpendicular to rockets axis due to |
340 | 340 | aerodynamic forces and excentricity as a function of time. |
341 | 341 | Units in N*m. |
342 | 342 | Expressed as a function of time. Can be called or accessed |
343 | 343 | as array. |
344 | 344 | Direction 1 is in the rocket's body axis and points perpendicular |
345 | 345 | to the rocket's axis of cylindrical symmetry. |
346 | 346 | Flight.M2 : Function |
347 | | - Resultant momentum perpendicular to rockets axis due to |
| 347 | + Resultant moment (torque) perpendicular to rockets axis due to |
348 | 348 | aerodynamic forces and excentricity as a function of time. |
349 | 349 | Units in N*m. |
350 | 350 | Expressed as a function of time. Can be called or accessed |
351 | 351 | as array. |
352 | 352 | Direction 2 is in the rocket's body axis and points perpendicular |
353 | 353 | to the rocket's axis of cylindrical symmetry and direction 1. |
354 | 354 | Flight.M3 : Function |
355 | | - Resultant momentum in rockets axis due to aerodynamic |
| 355 | + Resultant moment (torque) in rockets axis due to aerodynamic |
356 | 356 | forces and excentricity as a function of time. Units in N*m. |
357 | 357 | Expressed as a function of time. Can be called or accessed |
358 | 358 | as array. |
@@ -461,15 +461,15 @@ class Flight: |
461 | 461 | Flight.apogeeFreestreamSpeed : float |
462 | 462 | Freestream speed of the rocket at apogee in m/s. |
463 | 463 | Flight.MachNumber : Function |
464 | | - Rocket's Mach number defined as it's freestream speed |
| 464 | + Rocket's Mach number defined as its freestream speed |
465 | 465 | devided by the speed of sound at its altitude. Expressed |
466 | 466 | as a function of time. Can be called or accessed as array. |
467 | 467 | Flight.maxMachNumber : float |
468 | 468 | Rocket's maximum Mach number experienced during flight. |
469 | 469 | Flight.maxMachNumberTime : float |
470 | 470 | Time at which the rocket experiences the maximum Mach number. |
471 | 471 | Flight.ReynoldsNumber : Function |
472 | | - Rocket's Reynolds number, using it's diameter as reference |
| 472 | + Rocket's Reynolds number, using its diameter as reference |
473 | 473 | length and freestreamSpeed as reference velocity. Expressed |
474 | 474 | as a function of time. Can be called or accessed as array. |
475 | 475 | Flight.maxReynoldsNumber : float |
@@ -550,7 +550,7 @@ def __init__( |
550 | 550 | except for the euler parameters which will be calculated based |
551 | 551 | on given values of inclination and heading. Default is None. |
552 | 552 | terminateOnApogee : boolean, optioanal |
553 | | - Wheater to terminate simulation when rocket reaches apogee. |
| 553 | + Whether to terminate simulation when rocket reaches apogee. |
554 | 554 | Default is False. |
555 | 555 | maxTime : int, float, optional |
556 | 556 | Maximum time in which to simulate trajectory in seconds. |
@@ -688,7 +688,7 @@ def __init__( |
688 | 688 | headingRad |
689 | 689 | ) |
690 | 690 |
|
691 | | - # Create knonw flight phases |
| 691 | + # Create known flight phases |
692 | 692 | self.flightPhases = FlightPhases() |
693 | 693 | self.flightPhases.addPhase(self.tInitial, self.initialDerivative, clear=False) |
694 | 694 | self.flightPhases.addPhase(self.maxTime) |
@@ -922,7 +922,7 @@ def __init__( |
922 | 922 | vz1 = self.solution[-1][6] |
923 | 923 | t1 = self.solution[-1][0] |
924 | 924 | t_root = -(t1 - t0) * vz0 / (vz1 - vz0) + t0 |
925 | | - # Fecth state at t_root |
| 925 | + # Fetch state at t_root |
926 | 926 | interpolator = phase.solver.dense_output() |
927 | 927 | self.apogeeState = interpolator(t_root) |
928 | 928 | # Store apogee data |
@@ -1552,7 +1552,7 @@ def postProcess(self): |
1552 | 1552 | self.ax, self.ay, self.az = [], [], [] |
1553 | 1553 | self.alpha1, self.alpha2, self.alpha3 = [], [], [] |
1554 | 1554 | # Go throught each time step and calculate accelerations |
1555 | | - # Get fligth phases |
| 1555 | + # Get flight phases |
1556 | 1556 | for phase_index, phase in self.timeIterator(self.flightPhases): |
1557 | 1557 | initTime = phase.t |
1558 | 1558 | finalTime = self.flightPhases[phase_index + 1].t |
@@ -1594,7 +1594,7 @@ def postProcess(self): |
1594 | 1594 | ) |
1595 | 1595 | self.windVelocityX, self.windVelocityY = [], [] |
1596 | 1596 | # Go throught each time step and calculate forces and atmospheric values |
1597 | | - # Get fligth phases |
| 1597 | + # Get flight phases |
1598 | 1598 | for phase_index, phase in self.timeIterator(self.flightPhases): |
1599 | 1599 | initTime = phase.t |
1600 | 1600 | finalTime = self.flightPhases[phase_index + 1].t |
@@ -1631,7 +1631,7 @@ def postProcess(self): |
1631 | 1631 |
|
1632 | 1632 | # Process fourth type of output - values calculated from previous outputs |
1633 | 1633 |
|
1634 | | - # Kinematicss functions and values |
| 1634 | + # Kinematics functions and values |
1635 | 1635 | # Velocity Magnitude |
1636 | 1636 | self.speed = (self.vx ** 2 + self.vy ** 2 + self.vz ** 2) ** 0.5 |
1637 | 1637 | self.speed.setOutputs("Speed - Velocity Magnitude (m/s)") |
@@ -2036,7 +2036,7 @@ def info(self): |
2036 | 2036 | print("Frontal Surface Wind Speed: {:.2f} m/s".format(self.frontalSurfaceWind)) |
2037 | 2037 | print("Lateral Surface Wind Speed: {:.2f} m/s".format(self.lateralSurfaceWind)) |
2038 | 2038 |
|
2039 | | - # Print of rail conditions |
| 2039 | + # Print out of rail conditions |
2040 | 2040 | print("\n\n Rail Departure State\n") |
2041 | 2041 | print("Rail Departure Time: {:.3f} s".format(self.outOfRailTime)) |
2042 | 2042 | print("Rail Departure Velocity: {:.3f} m/s".format(self.outOfRailVelocity)) |
@@ -2573,7 +2573,7 @@ def plotFlightPathAngleData(self): |
2573 | 2573 | return None |
2574 | 2574 |
|
2575 | 2575 | def plotAngularKinematicsData(self): |
2576 | | - """Prints out all Angular veolcity and acceleration graphs available |
| 2576 | + """Prints out all Angular velocity and acceleration graphs available |
2577 | 2577 | about the Flight |
2578 | 2578 |
|
2579 | 2579 | Parameters |
@@ -3190,7 +3190,7 @@ def plotPressureSignals(self): |
3190 | 3190 | has not been added. |
3191 | 3191 |
|
3192 | 3192 | 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. |
3194 | 3194 |
|
3195 | 3195 | Parameters |
3196 | 3196 | ---------- |
|
0 commit comments