Skip to content

Fluidmec

A scientific Python library for fluid mechanics.

Fluidmec provides reusable engineering calculations, physical validation and numerical methods for students, engineers and researchers.

Get Started API Reference GitHub

Installation

pip install fluidmec

Quick Example

from fluidmec.core import reynolds_number

Re = reynolds_number(
    velocity=2.0,
    length=0.5,
    kinematic_viscosity=1e-6
)

print(Re)

Expected output:

1000000.0

Available Modules

  • :material-calculator: Dimensionless Numbers


    Reynolds, Froude, Richardson, Weber, Strouhal and Keulegan-Carpenter numbers.

    Explore module

  • :material-water: Fluid Properties


    Density, viscosity, reduced gravity and specific weight.

    Explore module

  • :material-gauge: Hydrostatics


    Pressure distributions, hydrostatic forces and centres of pressure.

    Explore module

  • :material-lightning-bolt: Energy Conservation


    Bernoulli equation, energy heads and ideal discharge calculations.

    Explore module

  • :material-pipe: Pipe Flow


    Darcy friction factors, Colebrook-White solver, pressure losses and pump power.

    Explore module

  • :material-waves: Open Channel Flow


    Manning equation, normal depth, critical depth and hydraulic jumps.

    Explore module

Mathematical Foundations

Reynolds Number

\[ Re = \frac{|U|L}{\nu} \]

Froude Number

\[ Fr = \frac{|U|}{\sqrt{gL}} \]

Hydrostatic Pressure

\[ p = p_0 + \rho gh \]

Bernoulli Equation

\[ \frac{p}{\rho g}+\frac{U^2}{2g}+z =\text{constant} \]

Design Principles

  • SI units
  • NumPy vectorisation
  • Physical input validation
  • Reproducible calculations
  • Modular architecture
  • Automated testing

Development status

Fluidmec is under active development. Independent engineering verification is required before safety-critical applications.

Author

Developed by Soham Banerjee.

The project combines computer science, scientific computing and engineering fluid mechanics.