A Python-based framework to promote problem solving and critical thinking in chemical engineering.
PyChemEngg encapsulates complex equations into intuitive, word-based functions. This allows students to build solutions and test scenarios in a way that reinforces core engineering principles, rather than getting lost in syntax.
The goal is to use computation as a tool to stimulate deeper thinking and understanding.
# English-like and intuitive
from pychemengg.massbalances import physicalmassbalance as pmb
mixer1 = pmb.PhysicalProcess("mixer1")
streams = ["S1", "S2", "S3", "S4"]
flowrates = [200, 10, 135, "-F"]
fractions = [[0.2, 0.3, 0.5], [0.1, 0.2, 0.7], [0.4, 0.1, 0.5],["x", "x", "x"]]
S1, S2, S3, S4 = mixer1.attachstreams(streamnames=streams, flowrates=flowrates, fractions=fractions)
mixer1.degreesoffreedom()
# ...and so on!
Python is known for its simple syntax and English-like commands, making it easy for students to learn and apply engineering concepts without a steep programming curve.
The framework allows integration of mature scientific libraries like NumPy, SciPy, and Matplotlib for powerful and reliable computations.
Learning Python through this framework equips future engineers with a versatile skill that is in high demand in AI, machine learning, and data science.
PyChemEngg is an open-source project developed by Dr. Gill. Dive into the code or read the official documentation.