models.rocket¶
machwave.models.rocket
¶
Fuselage
¶
Deals primarily with aerodynamic parameters.
Source code in machwave/models/rocket/fuselage.py
frontal_area
property
¶
Frontal area of the fuselage [m^2].
__init__(length, outer_diameter, drag_coefficient, frontal_area=None)
¶
Initialize the Fuselage object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
length
|
float
|
Fuselage length [m]. |
required |
outer_diameter
|
float
|
Fuselage outer diameter [m]. |
required |
drag_coefficient
|
ndarray | float | int
|
Drag coefficient value(s). Can be single value, or 2D array with first column as velocity and second column as corresponding drag coefficient. |
required |
Source code in machwave/models/rocket/fuselage.py
get_drag_coefficient(velocity=0)
¶
Get the drag coefficient of the fuselage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
velocity
|
float
|
Velocity at which to calculate drag coefficient. |
0
|
Returns:
| Type | Description |
|---|---|
float
|
Drag coefficient value. |
Raises:
| Type | Description |
|---|---|
DragCoefficientTypeError
|
If type of drag_coefficient is not recognized. |
ValueError
|
If velocity is None and drag_coefficient is a list. |
Source code in machwave/models/rocket/fuselage.py
Rocket
¶
A Rocket with propulsion, recovery system, fuselage and a specified dry-structure mass (mass_without_motor).
Source code in machwave/models/rocket/base.py
__init__(propulsion, recovery, fuselage, mass_without_motor)
¶
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
propulsion
|
Motor
|
Rocket motor or propulsion system. |
required |
recovery
|
Recovery
|
Recovery system (parachute, etc.). |
required |
fuselage
|
Fuselage
|
Rocket body. |
required |
mass_without_motor
|
float
|
Structure + avionics + recovery + fuselage mass [kg]. |
required |