drag

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateDragForce

func CalculateDragForce(velocity, density, referenceArea float64, dragCoefficient float64) float64

CalculateDragForce computes the drag force in Newtons velocity in m/s, density in kg/m³, reference area in m²

func DragCoefficient

func DragCoefficient(mach float64) float64

DragCoefficient calculates the drag coefficient based on Mach number using approximations for different sonic regimes

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL