Propulsion Overhaul

Aperta
#1,370 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
numpy, python
Ambito
backend

Direzione di ricerca

This is a parent issue for several propulsion subsystem design questions, and it does not name files or tests. Start by reading the EngineModel and propulsion preprocessor entry points, then identify a specific sub-issue to work on. Done means the desired behavior and scope have been agreed and captured in a concrete follow-up issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

code cleanup user interface
Desired capability or behavior.

This parent issue is intended to discuss several desired overhauls for the propulsion subsystem.

  1. EngineModel.options is messy. It is confusing to have multiple sets of AviaryValues floating around - the propulsion preprocessor attempts to align everything but it isn't clear to me if this is stable. The reason this exists in the first place is the idea that an EngineModel builder might want to do things outside of OpenMDAO (such as EngineDecks reading in the engine data file), and need to know the value of certain options when they do so
  2. There isn't an answer for what to do when engines ask for different sets of not fully overlapping variables. For example, if Engine1 needs variables x, y but engine 2 needs y, z, what should vectors x and z look like? We could potentially support None as a valid option for all Aviary inputs/options to denote "NOT SET BY USER", so x=[1, None], y=[1,2], and z=[None,2].
    More items to be added here as they come up, and these items can be spun off into actual sub-issues when ready
  3. A better solution for "ragged arrays". If you have a variable like Aircraft.Engine.WING_LOCATIONS where there are different number of engines per type, you would normally get an array like [[1,2],[1,2,3]] which is fine for a list but is invalid for numpy arrays. So Aviary flattens them all out (giving you something like [1,2,1,2,3] and forcing you to extract out the correct indexes corresponding to each engine). This is probably broken when these variables are used inside EngineModel components themselves, because the slicer will probably only give a single value based on the engine index, which is wrong in this case.
Lingua principale
Python
Stelle
303
Fork
152
Merge medio
7g 14h
PR unite (30g)
10

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenMDAO/Aviary

Tutte le issue di OpenMDAO/Aviary

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.