Coders Packet

Hagen-Poiseuille's pressure gradient calculator in Java

By Kaustubh Srivastava

The program calculates pressure drop across a given length and cross-sectional area of a pipe when a fluid of certain dynamic viscosity flows through it with certain volumetric or mass flow rate.

Hey there!



The above-mentioned equation is the Hagen-Poiseuille's equation used to calculate pressure gradient across a length L and cross-sectional area A of a pipe when a fluid of given dynamic viscosity (mu) and with certain volumetric flow rate (Q) flows through it.

This program, i.e., Hagen-Poiseuille's pressure gradient calculator, accepts the required parameters and calculates Δp.

Uses modularity to a good extent through different functions, also uses the Math (for accessing Math.PI) class of java and exception handling and OOP's concepts well.

Download Complete Code

Comments

No comments yet