Skip to content

spel-uchile/SolidPropellantforLanding

Repository files navigation

Solid Propellant for Landing 🚀

This code is used to analysis the feasibility to use solid propellant on the soft-landing problem. To tackle this, an arraignment of solid propellant engines is proposed, which have multiple independent engines.

📢📢📢 Code execution can take several hours and use high resources 📢📢📢

Imports and requirements 🔧

The principal library used are listed below.

numpy 
matplotlib
pandas
scipy
multiprocessing

To install run:

pip install -r requirements.txt

For simultaneous simulation (Multi Core: 3 Core):

Run analysis and optimization

The main file is run_scenarios_multiCore.py. This script can be run as follows from a console (Anaconda Prompt is recommended).:

python run_scenarios_multiCore.py

📄 **Note: ** This Script calculates the parameters of the control law of each engine. The optimization of these parameters is made by the Genetic Algorithm and using 30 scenarios of uncertainties. Then, an evaluation is made for 60 scenarios with the updated uncertainties in each scenario. (See line 309 on Scenarios/S1D_AFFINE/S1D_AFFINE.py)

For simple simulation (1 Core):

Run analysis and optimization

The main file is run_scenarios_singleCore.py. This script can be run as follows from a console (Anaconda Prompt is recommended).:

python run_scenarios_singleCore.py

The default properties for this Script is executed to REGRESSIVE Propellant-Grain-Cross-Section (PGCS) (See line 26, 27 and 28). You can change the type of PGCS commenting the line 26, and uncomment line 27 or 28.

📄 **Note: ** This Script calculates the parameters of the control law of each engine. The optimization of these parameters is made by the Genetic Algorithm and using 30 scenarios of uncertainties. Then, an evaluation is made for 60 scenarios with the updated uncertainties in each scenario. (See line 309 on Scenarios/S1D_AFFINE/S1D_AFFINE.py)

Performance comparison

To compare evaluation performance, you need to change lines 30, 35 and 40 of "ext_visualize.py". This is the name of the folder where the Json file containing the simulation evaluation metrics is located.

Contact

els.obrq@gmail.com
Elias Obreque Sepulveda

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages