package
Version:
v0.7.2
Opens a new window with list of versions in this module.
Published: May 6, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
pkg/drag
This package provides functionality for calculating the drag force on a rocket.
Responsibility
- Calculate the drag force on a rocket.
- Account for different drag coefficients based on the rocket's shape and velocity.
- Consider the effects of air density and viscosity.
Scope
- Support different drag models, such as the Newtonian drag model and the semi-empirical drag model.
- Provide options for customizing the drag calculation process.
Gotchas
- Accuracy of the drag coefficient data.
- Complexity of the drag models.
Test Suite Overview
The test suite includes unit tests for the core functionality of the package, including:
- Calculating the drag force on a rocket.
- Accounting for different drag coefficients.
- Considering the effects of air density and viscosity.
Documentation
¶
CalculateDragForce computes the drag force in Newtons
velocity in m/s, density in kg/m³, reference area in m²
DragCoefficient calculates the drag coefficient based on Mach number
using approximations for different sonic regimes
Source Files
¶
Click to show internal directories.
Click to hide internal directories.