/
Zlalex
/
Plasma_Engine_Design
Обзор
Документация
Войти
/
Zlalex
/
Plasma_Engine_Design
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
Realtime
main.py
45 строк
2 KB
zlalex
Edit Readme
01 июн 2026, 22:26
01 июн 2026, 22:26
6faf3f8
Код
Авторство
О чём код?
##Here's Algorythm to find optimal form for the Engine ## Also In this module will been added some functions that will shows parameters of engine, power, torque and etc. ## Authors: Zlagoda Alexey, Kamenev Andrey from stl import mesh from mpl_toolkits import mplot3d import matplotlib.pyplot as plt import os import FizModelling.Plasma.MGD_Merged as MGD import matplotlib.pyplot as plt import numpy as np import FizModelling.Plasma.Config as CFG from tqdm import tqdm if __name__ == "__main__": while True: Mode = int(input("Enter Mode (0-help, 1 - Find optimal Parameters, 2 - Check 3d model): ")) if Mode == 0: print("Help missing. Please, wait or read README.md") elif Mode == 1: ## вывод всез возможных конфигов из папки configs for file in os.listdir("Configs"): if file.endswith(".py"): print(file) Config = input("Enter Config file name: ") if Config == "AeroSpikeMode.py": import Configs.AeroSpikeMode Configs.AeroSpikeMode.run() elif Mode == 2: pass # file = input("Enter a path to file with engine model: ") # figure = plt.figure() # axes = mplot3d.Axes3D(figure) # if file: # if file.endswith('.stl'): # your_mesh = mesh.Mesh.from_file(file) # axes.add_collection3d(mplot3d.art3d.Poly3DCollection(your_mesh.vectors)) # else: # raise Exception('File format not supported') # else: # raise Exception('File not found') # # Настройте лимиты осей для корректного отображения # plt.show()