services.eng¶
Import/export utilities for interoperability with external rocket simulation tools. Provides .eng file generation — the standard thrust-curve format used by OpenRocket, RASAero, and other flight simulators. Supply time-thrust arrays from a Machwave simulation and get a ready-to-use .eng string.
machwave.services.eng
¶
generate_eng_file_content(time, thrust, propellant_mass, burn_time, chamber_length, outer_diameter, motor_mass, manufacturer, name, eng_res=25)
¶
Generate .eng file content for rocket simulation software.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time
|
ndarray
|
Time array [s]. |
required |
thrust
|
ndarray
|
Thrust array [N]. |
required |
propellant_mass
|
ndarray
|
Propellant mass array [kg]. |
required |
burn_time
|
float
|
Total burn time [s]. |
required |
chamber_length
|
float
|
Chamber length [m]. |
required |
outer_diameter
|
float
|
Motor outer diameter [m]. |
required |
motor_mass
|
float
|
Motor mass [kg]. |
required |
manufacturer
|
str
|
Manufacturer name. |
required |
name
|
str
|
Motor name. |
required |
eng_res
|
int
|
Number of time steps in output file. Default is 25. |
25
|
Returns:
| Type | Description |
|---|---|
str
|
Content of the .eng file as a string. |