This guide will help you use the rocket optimization system without needing to know programming.
- Download Python from https://www.python.org/downloads/
- Install Python (make sure to check "Add Python to PATH")
- Open Command Prompt (Windows) or Terminal (Mac/Linux)
cd path/to/rocket-trajectory-optimizer
pip install -r requirements.txtpython run_complete_analysis.pyThat's it! The program will analyze your rocket and give you results.
File: run_complete_analysis.py
What it does:
- Checks if your rocket is safe
- Optimizes the design
- Gives you final specifications
How to use:
- Open
run_complete_analysis.pyin a text editor - Find the section that says "ENTER YOUR ROCKET PARAMETERS HERE"
- Change the numbers to match your rocket
- Save the file
- Run:
python run_complete_analysis.py
Example parameters:
ROCKET_CONFIG = {
'thrust': 80.0, # Your motor's thrust in Newtons
'burn_time': 1.8, # How long the motor burns (seconds)
'specific_impulse': 180, # Motor efficiency (from motor specs)
'mass_initial': 2.76, # Total weight with propellant (kg)
'mass_dry': 2.0, # Weight without propellant (kg)
}
TARGET_APOGEE = 5000.0 # How high you want to go (meters)File: run_feasibility_check.py
What it does:
- Quick check (2 seconds)
- Tells you if your rocket is safe
- Warns if it will go supersonic (dangerous!)
- Suggests fixes if there are problems
When to use:
- Before building your rocket
- To test different motor options
- To check if a design is safe
How to run:
python run_feasibility_check.pyFile: run_fast_optimization.py
What it does:
- Very fast (0.02 seconds)
- Gives you initial design estimates
- 80% accuracy (good enough for early design)
When to use:
- Quick design iterations
- Exploring different options
- Initial estimates
How to run:
python run_fast_optimization.pyFile: run_accurate_optimization.py
What it does:
- Fast (0.5 seconds)
- 90% accuracy
- Best balance of speed and accuracy
When to use:
- Final design before building
- Competition rockets
- When you need reliable results
How to run:
python run_accurate_optimization.pyFile: run_production_optimization.py
What it does:
- Highest accuracy (95%)
- Takes 1.6 seconds
- Tests 3 different flight regimes
When to use:
- Final competition designs
- Research projects
- When accuracy is critical
How to run:
python run_production_optimization.pyNote: On Windows, you may need to add this at the bottom of the file:
if __name__ == '__main__':
main()File: run_trajectory_simulation.py
What it does:
- Simulates your rocket's flight
- Shows altitude, velocity, and Mach number
- Gives you complete trajectory data
When to use:
- After optimization
- To see detailed flight path
- To verify your design
How to run:
python run_trajectory_simulation.pyThrust (Newtons)
- Force produced by your motor
- Found in motor specifications
- Example: Estes C6-5 = 5N, Cesaroni Pro38 = 200N
Burn Time (seconds)
- How long the motor burns
- Found in motor specifications
- Example: 1.8 seconds
Specific Impulse (seconds)
- Motor efficiency
- Found in motor specifications
- Higher = more efficient
- Example: 180 seconds
Initial Mass (kg)
- Total weight with propellant
- Weigh your rocket with motor
- Example: 2.76 kg
Dry Mass (kg)
- Weight without propellant
- Weigh your rocket without motor, then add motor casing weight
- Example: 2.0 kg
Diameter (meters)
- Body tube diameter
- Measure your rocket
- Example: 0.1 m = 10 cm
Nose Cone Length (meters)
- Length of nose cone
- Measure your rocket
- Example: 0.3 m = 30 cm
Body Length (meters)
- Length of body tube
- Measure your rocket
- Example: 1.0 m = 100 cm
Drag Coefficient
- How aerodynamic your rocket is
- Typical values: 0.3-0.5
- Lower = more aerodynamic
- Example: 0.35
Target Apogee (meters)
- How high you want your rocket to go
- Example: 5000 m = 5 km
Tolerance (meters)
- Acceptable error
- Example: 50 m means anywhere from 4950m to 5050m is OK
FEASIBLE
- Your rocket is safe and can reach the target
- You can proceed with building
NOT FEASIBLE - Supersonic
- Your rocket will go faster than Mach 1.2
- This is DANGEROUS!
- You must reduce thrust, burn time, or increase mass
NOT FEASIBLE - Insufficient Altitude
- Your rocket cannot reach the target
- You must increase thrust, burn time, or reduce mass
Diameter
- Optimized body tube diameter
- Use this size when building
Drag Coefficient (Cd)
- Expected drag for your rocket
- Lower is better (more aerodynamic)
Achieved Apogee
- Predicted maximum altitude
- Should be close to your target
Maximum Mach
- Fastest speed (relative to sound)
- Must be below 1.2 for safety
Solution: Install requirements
pip install -r requirements.txtSolutions:
- Reduce thrust (use smaller motor)
- Reduce burn time (use shorter burn motor)
- Increase mass (add weight)
- Increase diameter (more drag)
Solutions:
- Increase thrust (use bigger motor)
- Increase burn time (use longer burn motor)
- Reduce mass (make rocket lighter)
- Reduce diameter (less drag)
Solution: Use fast optimization instead:
python run_fast_optimization.pyPossible reasons:
- Wind (not modeled)
- Motor performance variation
- Build quality differences
- Measurement errors
Solution: Add safety margin (aim 10% higher than needed)
- Weigh your rocket carefully
- Measure dimensions precisely
- Use motor specifications from manufacturer
- Always check feasibility before building
- Never exceed Mach 1.2
- Add safety margins to your design
- Start with fast optimization
- Refine with accurate optimization
- Verify with trajectory simulation
- Save your results
- Record actual flight data
- Compare predictions vs reality
-
Design Phase
python run_feasibility_check.py
- Check if design is safe
- Adjust parameters if needed
-
Optimization Phase
python run_accurate_optimization.py
- Get optimized dimensions
- Record specifications
-
Verification Phase
python run_trajectory_simulation.py
- Verify flight path
- Check all parameters
-
Build and Test
- Build rocket with optimized specs
- Test fly
- Compare results
-
Initial Design
python run_fast_optimization.py
-
Refinement
python run_accurate_optimization.py
-
Final Verification
python run_production_optimization.py
-
Pre-Flight Check
python run_trajectory_simulation.py
- Read the error message carefully
- Check your parameter values
- Make sure all files are in the correct location
- Verify Python and packages are installed
"FileNotFoundError"
- You're in the wrong directory
- Solution:
cdto the project folder
"ImportError"
- Missing packages
- Solution:
pip install -r requirements.txt
"ValueError"
- Invalid parameter value
- Solution: Check your numbers (no negative values!)
PROGRAM SPEED ACCURACY USE FOR
================================================================
run_complete_analysis.py Fast Good Beginners
run_feasibility_check.py 2s 100% Safety check
run_fast_optimization.py 0.02s 80% Quick estimates
run_accurate_optimization.py 0.5s 90% Most projects
run_production_optimization.py 1.6s 95% Competitions
run_trajectory_simulation.py Fast High Verification
- Check
README.mdfor technical details - See
PROJECT_STRUCTURE.mdfor code organization - Read
SYSTEM_OVERVIEW.mdfor complete reference
Remember: Always prioritize safety! If the system says your rocket will go supersonic, DO NOT build it without modifications.
Happy rocketeering!