rocketpal.core.flight_simulation module¶
- class rocketpal.core.flight_simulation.FlightSimulation(config, output_folder, motor_file_path, motor_config, parachutes, airbrakes, rail_button_config, nosecone_config, power_off_drag_curve_file_path, power_on_drag_curve_file_path, fins_config, launch_location, weather_config)[source]¶
Bases:
object- Parameters:
config (SimulationConfig)
output_folder (Path)
motor_file_path (Path)
motor_config (MotorConfig)
parachutes (list[ParachuteConfig])
airbrakes (list[AirbrakeConfig])
rail_button_config (RailButtonConfig)
nosecone_config (NoseconeConfig)
power_off_drag_curve_file_path (Path)
power_on_drag_curve_file_path (Path)
fins_config (FinsConfig)
launch_location (LocationConfig)
weather_config (WeatherConfig)
- config: SimulationConfig¶
- environment: Environment¶
- export_results()[source]¶
Exports the results of the simulation to CSV and KML files for further analysis and visualization.
- Return type:
None
- flight: Flight¶
- motor: SolidMotor¶
- output_folder: Path¶
- rocket: Rocket¶
- show_input_info()[source]¶
Outputs information and plots about the input parameters of the simulation, including environment, motor, and rocket details.
- Return type:
None
- show_results()[source]¶
Outputs information and plots about the results of the simulation, including flight data, trajectory, and other relevant metrics.
- Return type:
None
- stochastic_airbrakes: list[StochasticAirBrakes]¶
- stochastic_environment: StochasticEnvironment¶
- stochastic_flight: StochasticFlight¶
- stochastic_motor: StochasticSolidMotor¶
- stochastic_parachutes: list[StochasticParachute]¶
- stochastic_rocket: StochasticRocket¶
- rocketpal.core.flight_simulation.wind_speed_and_direction_to_east_and_north(wind_speed, wind_direction)[source]¶
Converts RocketPy-style wind speed and direction to east and north components.
- Parameters:
wind_speed (float) – The wind speed.
wind_direction (float) – The wind direction in degrees.
- Returns:
The east and north components of the wind speed.
- Return type:
tuple[float, float]