Skip to content

Coding Projects

Coding Projects

Frictional Pressure Drop in Pipes Calculator

This tool allows for interactive calculation of frictional pressure drop in pipes for single phase incompressible newtonian fluids. Calculates the Reynolds number and pressure drop based on the Darcy-Wisebach equation with the Haaland friction factor correlation. Results are displayed dynamically and can be exported as pdf.
 

Chemical Plant Capital Cost Estimator

This program allows easy calculation of the total fixed capital cost of a chemical plant using the detailed factorial method outlined by Towler & Sinnott. Select from a list of over 50 equipment options, or specify custom equipment in a range of materials. Adjustment for inflation (CEPCI) and currency conversion is provided. Final ISBL and Total Fixed Capital Cost of the plant is calculated. Export a full report of the results directly within the browser.
 

Heat Exchanger Design Calculator

Calculates critical parameters required for design of a shell-and-tube heat exchanger from typical thermodynamic and design inputs in SI units. Key results determined are: Required heat exchange area (A), required cold stream flowrate, number of tubes, as well as useful supporting data such as Reynold’s number and tube-side pressure drop. Features dynamic visualisation as well as comprehensive error detection. Can be used to quickly mock-up a heat exchanger design.

Fixed Bed Pressure Drop Calculator

A responsive application which determines the pressure drop (SI) across a packed bed using the Ergun equation. Additionally Reynold’s number is determined to indicate the flow regime.

PyScript / MatPlotLib and Chart.js Data Visualization

Implementation of PyScript, MatPlotLib, and Chart.js which enables in-browser running and visualization of Python programs, passing of data between python and JavaScript. The goal is to create an interface between python and javascript, to take advantage of python’s comuputational strengths, and combining it with the ease of use and interactivity of a html/javascript web-based interface, which could serve as a basis for running of complex python simulations using packages such as GEKKO or SymPy directly within the browser.

Dynamic Reactor Simulation using pure JavaScript

Proof-of-concept simulation of a one-dimensional Isothermal & Isobaric ammonia production reactor using a fourth-order Runge-Kutta method and Chart.js to solve a differential-algebraic system of equations. Possibly the first time a dynamic reactor simulation of this kind has been created in JavaScript. This project will be expanded to include more complex interactions and multiple reactions.