Computing Trajectories of a More General Linear Projectile
Version 1.0.2 (915 KB) by
Nick Lorenzo
Computes 3D trajectories of a projectile subject to linear drag, a non-uniform gravitational field, constant wind, and atmospheric thinning.
Context
In [1], we studied, in a full 3D context, a projectile subject to linear drag, a non-uniform gravitational field, time-dependent wind, and parameterized atmospheric thinning. In this general context, we applied a perturbation technique to find exact integral solutions to spatially linearized approximations of the resulting nonlinear, coupled, second-order system of ODEs, with physical interpretations of various quantities throughout the paper. In the special case of constant wind, we provided closed-form solutions, extended our analyses considerably, and provided numerical evidence of the quality of our solutions. This code reproduces that numerical evidence.
This code
We provide the following code to reproduce the numerical evidence presented in [1].
- lpd__subtrajectoryConstantWind.m -- implements Algorithm 1 of [1].
- lpd__completeTrajectoryConstantWind.m -- implements Algorithm 2 of [1].
- lpd__numericallySolveConstantWind.m -- numerically solves the original model of [1] using Matlab's stiff ODE solver ode15s.
- lpd__compare.m -- compares the order 0, expanded, and numerical solutions of the original model of [1] as computed by lpd__completeTrajectoryConstantWind.m and lpd__numericallySolveConstantWind.m.
- lpd__saveTrajectoryData.m -- saves comparison data generated by lpd__compare.m as .csv files for subsequent use in creating LaTeX figures.
- lpd__demo.mlx -- reproduces the numerical evidence presented in [1] as a Live Script demonstration.
References
[1] N. Lorenzo, "A More General Linear Projectile Problem", https://arxiv.org/abs/2411.02145
Cite As
Nick Lorenzo (2024). Computing Trajectories of a More General Linear Projectile (https://www.mathworks.com/matlabcentral/fileexchange/174950-computing-trajectories-of-a-more-general-linear-projectile), MATLAB Central File Exchange. Retrieved .
Lorenzo, Nick. A More General Linear Projectile Problem. arXiv, 2024, doi:10.48550/ARXIV.2411.02145.
MATLAB Release Compatibility
Created with
R2024b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.