top of page
29. maj 2025
||
By Humzaa Imtiaz Ullah
Simulating a Mixer in Python

In this tutorial, we walk through a basic example of how to perform a material balance on a mixing tank using Python. This script allows users to enter flow rates and concentrations for two incoming streams, and it calculates both the outlet flow rate and the outlet concentration based on the principles of mass balance.
This example is part of a broader series, and in the video linked below, I explain the code in detail—perfect if you're new to Python or want to understand the logic behind it.
📺 Watch the full video tutorial below.
Here’s the Python code we use in the video:
bottom of page