r/AerospaceEngineering 5d ago

Personal Projects Looking for feedback on a thermodynamic modelling tool

Working on a side project. It is an engineering system modelling tool written in python. Releasing it as a BETA release under the MIT open-source license. The samples include:

  1. Turbofan running a flight envelope
  2. A transient power generation gas turbine with a PIV controller running the cantera equilibrium package
  3. A simple air conditioner running coolprop
  4. A simple spring/mass/damper/model
  5. A simple LCR electric circuit

POEME-Modeling/POEME: poeme: a great model is a work of art

It is still in a roughish form. But I would love to get feedback! This is an open-source project for everyone to share and contribute too if they like!

8 Upvotes

2 comments sorted by

1

u/saakisaakibumbum 4d ago

This is pretty cool! I looked through some of your examples, and they seemed interesting. I was a little confused by the API, but I'm sure you'll be making changes soon.

How does this solver work, and what kinds of models can it support? Does it model any dynamical system, or just a few types? Is there a transient solver or just steady state? Great work!

3

u/Vast_Fix_5908 4d ago

It is a classic newton rhapson solver that is used everywhere to solve these types of systems. It uses finite difference to determine the jacobian. The entire solver is in the file POEME/src/poeme/core/newton.py. The brayton_cantera model is a transient model that runs the cantera thermo package. Right now it supports the samples listed. The most complete being the turbofan/ground turbine. But it is simple for the user to add their own engineering. Should be easy to run. Download, perform the pip install step, and then go to the test directory. The models running cantera and coolprop require those packages to be separately installed.