Skip to main content

CFD PreProcessing Library

Project description


What is CFDPre?

CFDPre is an open-source collection of object-oriented software tools for calculating boundary layer mesh dimensions for Computational Fluid Dynamics simulations. Among other things, it can be used to:

  • Calculate First Layer Thickness, Growth Ratio and Final Layer Thickess

Installation

Install PyPI Downloads

In your command line, within Python environment:

    pip install cfdpre
  • The Python module can also be installed using pip on Windows, macOS, and Linux.

Usage

from cfdpre import yhgrcalc
yhgrcalc('Air', 50, 10, 2.5, 125, 1, 8)

Output:

{'fluid': 'Air',
 'temperature [C]': 50,
 'pressure [bar]': 10,
 'massflow [kg/sec]': 2.5,
 'hydraulicdia [mm]': 125,
 'target yplus': 1,
 'number of layers': 8,
 'dynvisc [N-sec/m^2]': 1.9762497305390764e-05,
 'thermal conductivity [W/m-k]': 0.028357331300649127,
 'specific heat [cp] [J/kg-k]': 1019.3146170790077,
 'density [kg/m^3]': 10.792698589669245,
 'kinematic viscosity [m^2/s]': 1.8310987878701066e-06,
 'flow velocity [m/sec]': 18.875569021507275,
 'reynolds number': 1288541.1444310248,
 'prandtl number': 0.7103701741111368,
 'skin friction coefficient [cf]': 0.003583573389858024,
 'wall shear stress [tau_wall]': 6.889956204766108,
 'height of cell centroid from wall [yp] [m]': 2.2917570116263883e-06,
 'first layer height [yh] [m]': 4.583514023252777e-06,
 'Growth Ratio': 2.3120331242085856,
 'Final Layer Thickness [m]': 0.0016186648187374523}

Documentation

In progress - not yet made!

Call for Contributors

The CFDPre project welcomes your expertise and enthusiasm! Better to discuss on the users group before starting to contribute!

Project Log

January 2025:

  1. Created Library

Project RoadMap:

  1. Documentation for existing functionality.
  2. Include example data within library.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cfdpre-0.2.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cfdpre-0.2.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file cfdpre-0.2.4.tar.gz.

File metadata

  • Download URL: cfdpre-0.2.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for cfdpre-0.2.4.tar.gz
Algorithm Hash digest
SHA256 18fd54d9eb0e16a454604d6cee450159dbdf9c80a45ee89ca547c70d180da1ab
MD5 0a8fda0eff56b868fdb3650128cbc238
BLAKE2b-256 d3005362f6b33b69f426c02403d691fdbaa4be654fba0b7cd18e3601b1841573

See more details on using hashes here.

File details

Details for the file cfdpre-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: cfdpre-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for cfdpre-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0a894f8ef13e750a530c26e04a4d50bf30de2d21fc464943d7840db3e282a102
MD5 7d92fd1b01393d5a137ea3668ad7cc22
BLAKE2b-256 da2ca498e11488da037f0c366d54406f9aca491d6ab34ab23ddbfb6b14dc3c53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page