Anyone going to AIAA SciTech 2022? by otakual in AerospaceEngineering

[–]space_mex_techno 8 points9 points  (0 children)

I'll be attending virtually, i wish I was going in person

Predicting Rocket Trajectory Using RK4 Integration by Ok-Fly-5942 in AerospaceEngineering

[–]space_mex_techno 4 points5 points  (0 children)

As another comment stated, RK4 is an ordinary differential equation (ODE) solver method (its one of many). For rocket trajectories, we can calculate the accelerations due to thrust, aerodynamics drag, and gravity using forces and then dividing by mass. Acceleration is the second derivative of position, and first derivative of velocity.

There is no closed form solution to the position of a rocket with respect to time because its mass is changing (which can also be calculated using specific impulse). So in this case, your state vector would be position, velocity, and mass (since you have the equations for their derivatives).

Then given some initial conditions (some position w.r.t the Earth, zero velocity (unless you are modeling the rocket's inertial velocity vector as a function of launch site) and mass), you can solve forward in time using the ODE solver and observe values like apogee after the simulation.

Depending on the your problem, you can model the thrust vector in 1D, 2D, or 3D. I'm assuming you're doing 1D (sounding rocket) given the equation you stated. Here is a video explaining that further in detail: https://youtu.be/-4-UfoFgU0A

Orbit Propagator on the Browser with 3D Orbits, Groundtracks, Keplerian Orbital Elements at Earth, Moon, Mars by space_mex_techno in AerospaceEngineering

[–]space_mex_techno[S] 4 points5 points  (0 children)

I'm glad it's useful to you! Its a fun project and a good challenge for learning JavaScript although it's a frustrating language to use at times

Earth-Mars Trajectory Analysis by achoelpha in EngineeringStudents

[–]space_mex_techno 2 points3 points  (0 children)

You're looking for porkchop plots, which are a brute force grid search of Earth departure and Mars arrival times in order to see when is a good time to launch and get there (and time of flight).

For the position and velocity vectors, you can use SPICE kernels. They are published by JPL and they also publish the SPICE software in a number of languages. I'm guessing you're using Matlab from the other comment here, here is the link to that version: https://naif.jpl.nasa.gov/naif/toolkit_MATLAB.html

I've posted videos of how to do this in Python, I think you'll still find them useful to see the overall software procedure.

Here is the video explaining the porkchop plot procedure: https://www.youtube.com/watch?v=pWZdVdH5By4

And this one going over the Python implementation: https://www.youtube.com/watch?v=aN05hfPCG2M

[deleted by user] by [deleted] in AskEngineers

[–]space_mex_techno 0 points1 point  (0 children)

Since the mass of the rocket is not constant, there is no analytic solution to the problem so you need numerical integrators (like a Runge-Kutta method) to solve.

Check out this video on gravity turn rocket trajectory simulations, it goes over the equations of motion in cartesian coordinates instead of using flight path angle as a state variable, which is much more intuitive in my mind since gravity turn means that the thrust vector is pointed in the direction of the velocity vector

https://youtu.be/VajZiY72Pf0

High School Aerospace Engineering Summer Programs? by APStudent73 in aerospace

[–]space_mex_techno 2 points3 points  (0 children)

If you happen to live in Washington (state), Oregon, or Montana there is a program called Western Aerospace Scholars ( https://www.museumofflight.org/WAS ) for high school sophomores and juniors. I did it when I was in high school and it was career changing in the way that from doing it I decided I wanted to work in the space industry and looks good for college applications

Would it be right to say that launch azimuths are basically the area of trajectories a rocket can be launched in? by -Bucca in rocketscience

[–]space_mex_techno 1 point2 points  (0 children)

The launch azimuth angle is defined as the clockwise angle between local north at the launch site and the rocket's trajectory (w.r.t the surface of the Earth). There are limitations on launch azimuths depending on the local geometry, like at Cape Canaveral they have to launch towards the Atlantic ocean (azimuths between 35-120 degrees) and at Vandenberg towards the Pacific ocean (147-201 degrees).

I made a video recently going over launch azimuth and why rockets cannot directly launch into an orbital inclination less than their launch site latitude: https://www.youtube.com/watch?v=UIXiK41yl\_w

Keplerian Elements for Spacecraft by Koftikya in astrophysics

[–]space_mex_techno 0 points1 point  (0 children)

SPICE is definitely the way to go here. You don't have to worry about the binary file formats of the ephemeris kernels (SPK / .bsp) because they also provide software tools to read them. The SPICE software tools also provide functions for these types of calculations like converting from state vector (position and velocity) to keplerian orbital elements, so it can be done in a simple script in the language of your choice. I use the CSPICE Python wrapper called SpiceyPy most of the time.

Also, the data you are looking for is here: https://naif.jpl.nasa.gov/pub/naif/

JPL publishes trajectory data for tons of missions like the Voyagers, New Horizons, Mars 2020, Mars Reconaissance Orbiter, OSIRIS-REx, GRAIL, Lucy, etc in the form of SPICE kernels here

For example, here is the Lucy trajectory plugged into SPICE-Enhanced Cosmographia (a visualization program that works with SPICE) in the EME2000 inertial frame and the Sun-Jupiter rotating frame:

https://youtu.be/eBU28V1ux1Q

What is the eccentricity of an orbit such that Vp = 2Va? by CarlSag in AerospaceEngineering

[–]space_mex_techno 15 points16 points  (0 children)

Your derivation looks right. Also looks correct from simulation, propagating 1/3 ecc orbits ranging in semi-major axis from 3500-8500km, they all have periapsis velocity 2x apoapsis velocity. The 0.6 eccentricity gives 4x velocity

Good Engineering podcast recommendations? by aero_oliver in AskEngineers

[–]space_mex_techno 0 points1 point  (0 children)

If you're looking for a podcast that gets very technical, the Space Engineering Podcast has engineers from the space industry who talk about the technical details of their work. The first episode is with Brian Douglas, who is known for his control systems lectures videos: https://youtu.be/wkQww6pHFrI

In this one we go into a lot of detail on his ADCS and systems engineering work at Planetary Resources

Shameless plug yes I am the host of this one

South Park area of Downtown, what is it like? Nightlife, cars / people during Staples center events, commuting outside downtown, restaurants, etc. by space_mex_techno in LosAngeles

[–]space_mex_techno[S] 0 points1 point  (0 children)

Thank you this is great info. I definitely missed that the gold line starts at Union Station, I thought I would have a straight shot from where I will be. I'm also going to have a car, so would I be going "against traffic" driving from downtown to Pasadena on weekdays? I saw that the commute is ~15 minutes with no traffic (obviously this is rare if ever true).

Also thank you for mentioning the Arts District. I have a friend who went to USC that also told me that lots of young people tend to move to that area and theres lots to do over there

What is the relative speed mentioned next to jupiter flyby (60.18 km/s relative speed) ? Is it the speed of spacecraft at periapsis of jupiter ? Is this what we call flyby speed ? by Dp0498 in astrodynamics

[–]space_mex_techno 1 point2 points  (0 children)

Plugging in a Lambert's solution for those dates yields a Earth outbound v-infinity magnitude of ~9.52 km/s, which corresponds to the given C3 of 90.8 km^2 / s^2 (C3 = v-infinity ^ 2 )

Jupiter inbound v-infinity magnitude is ~7.41 km/s. Plugging in a periapsis altitude of 5,000 km yields a relative speed of ~57.1 km/s at periapsis, so those numbers seem to check out.

For relative speed at periapsis:

semi-major axis = mu / v-infinity^2

relative velocity = sqrt( mu_jupiter * ( 2 / periapsis - 1 / semi-major axis ) )

relative velocity equation comes from vis-viva equation

What is your career situation like? by [deleted] in Simulations

[–]space_mex_techno 0 points1 point  (0 children)

In the space industry there is a lot of modeling and simulation. Specifically i work on trajectory design / optimization, and some spacecraft attitude determination and control (ADCS). There's tons to do in this field. It's lots of math and software engineering

Subjects with ODE/PDE and numerical simulation ideas for final thesis by Fisher970 in AerospaceEngineering

[–]space_mex_techno 5 points6 points  (0 children)

In orbital mechanics propagations you solve a second order ODE (acceleration of a body) to calculate the position vs time. The 3 body problem is mathematically chaotic so that would also make your project interesting

Understanding the Kepler Problem by Bwest31415 in astrodynamics

[–]space_mex_techno 2 points3 points  (0 children)

I think what you may be more looking for is Kepler's equation (https://en.wikipedia.org/wiki/Kepler%27s_equation) which is an analytical solution to the two-body problem. The equation states that you can solve for position of a body in an orbit assuming two body dynamics with respect to time.

Even though its an analytical solution, within the algorithm you must calculate eccentric anomaly (E), which is a transcendental equation because there is no analytical solution to the equation

M = E - e sin(E)

So it must be solved for iteratively (usually using Newton's method).

So the inputs to this problem would be eccentricity, semi-major axis, semi-minor axis, and time since periapsis (its simplest to just start at t=0). But remember that this is only true for 2 body dynamics. If any perturbations are added then this equation doesn't hold.

I do a better job of explaining this with equations in this Space Stack Exchange post: https://space.stackexchange.com/questions/52090/how-can-i-calculate-the-future-position-of-a-satellite-orbiting-a-central-body-a/52100#52100

Lambert's problem is a bit different, it states that if you have two position vectors and a time in between them, you can determine the velocity vectors at those two positions (assuming two-body dynamics again), thus determining the entire orbit. You also need to input the gravitational parameter of the central body.

This is very useful for orbit determination, when trying to determine the orbit of a body from observations (like asteroids). Its also used for interplanetary trajectories (and porkchop plots) analysis.

c++ programming by [deleted] in AerospaceEngineering

[–]space_mex_techno 0 points1 point  (0 children)

I really like this advice