fluids

repository·master·Indexed 19 days ago

https://github.com/calebbell/fluids

A lightweight, open-source Python library providing engineering utilities for fluid dynamics, serving as the fluid dynamics component of the Chemical Engineering Design Library (ChEDL). Version 1.3.1 includes modules for piping, pumps, tanks, and atmospheric properties, with specific functionality for calculating Darcy friction factors, Reynolds numbers, and pressure drops using Crane TP 410 methods. It provides datasets for pipe schedules, material roughness, and ASTM E11-17 and ISO 3310-1:2016 sieve sizes.

Tokens
78.1K
Snippets
281
Records
326
Agent score
65%

What's inside fluids

  1. Overview of fluids capabilities

    master

    Fluids is a lightweight, low-overhead engineering library for fluid dynamics. It is designed for chemical, mechanical, and civil engineers and includes modules for:

    • Piping and fittings
    • Pumps and tanks
    • Compressible and open-channel flow
    • Atmospheric and solar properties
    • Particle size distributions
    • Two-phase flow
    • Friction factors
    • Control valves, orifice plates, and other flow meters
    • Ejectors and relief valves
  2. Size pumps, motors, and variable speed drives with fluids.pump

    master
    The fluids.pump module provides tools for sizing pumps, motors, and variable speed drives (VSDs) based on fluid dynamics requirements. It is designed to help engineers determine the appropriate hardware specifications for a given fluid system.
  3. Calculate volumes and surface areas for tanks and heat exchangers with fluids.geometry

    master
    The fluids.geometry module provides tools for calculating the volume and surface area of various geometric shapes used in tank and heat exchanger design. This module is intended for engineering calculations involving fluid containment and thermal exchange surfaces.
  4. Use pipe schedules from fluids.piping

    master
    The fluids.piping module provides implementations of various pipe schedules based on industry standards, including B36.10M-2004 (Carbon Steel), B36-19M-2004 (Stainless Steel), and various plastic pipe schedules. This allows users to retrieve physical dimensions (like inner diameter and wall thickness) for specific pipe types and schedules.
  5. Calculate pressure drop for various fittings using fluids.fittings

    master

    The fluids.fittings module provides tools to calculate loss coefficients ($K$-factors) for various fluid system components. This includes standard geometries like entrances, exits, bends, contractions, expansions, tees, and valves, as well as comprehensive sets of fittings defined by the Hooper 2K and Darby 3K methods.

    Use this module when you need to determine the pressure drop across specific fittings in a piping system based on their geometry and flow characteristics.

  6. Calculate pressure drop for screens or grills using fluids.filters

    master
    The fluids.filters module provides functions to calculate the loss coefficient of a screen or grill within a pipe. These correlations are intended for use in hydraulic network design or simple fluid system modeling.
  7. Calculate friction factor and pipe roughness with fluids.friction

    master

    The fluids.friction module provides a rigorous set of friction factor correlations for fluid dynamics. It includes implementations for common models such as:

    • Colebrook
    • Blasius
    • Moody

    Use this module to determine friction factors based on pipe roughness and other fluid properties.

  8. Calculate dimensionless numbers with fluids.core

    master

    The fluids.core module provides functions to calculate various dimensionless numbers used in fluid mechanics and heat transfer. This includes:

    • Fluid Mechanics: Reynolds number, Mach number.
    • Forced Convection: Prandtl number.
    • Free Convection: Rayleigh number, Biot number.

    Refer to the fluids.core API documentation for specific function signatures and required input parameters (such as velocity, viscosity, characteristic length, etc.) for each calculation.

  9. Calculate drag and terminal velocity with fluids.drag

    master
    The fluids.drag module provides tools to calculate the drag coefficient ($C_d$) of moving particles and determine their terminal velocity. It includes various published drag coefficient models and a numerical integrator to simulate the position of a sphere over time.