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.0035835733898580227,
 'wall shear stress [tau_wall]': 6.889956204766106,
 'yplus [m]': 2.2917570116263887e-06,
 'first layer height [m]': 4.5835140232527775e-06,
 'Growth Ratio': 2.3120331242085856,
 'Final Layer Thickness [m]': 0.0016186648187374525}

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.2.tar.gz (3.6 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.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cfdpre-0.2.2.tar.gz
  • Upload date:
  • Size: 3.6 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.2.tar.gz
Algorithm Hash digest
SHA256 cdd746436d6cede7e351ef7de510d5ebc2e03d8c0cf09062d2c9e7cf41edb520
MD5 2f922848dd79c43fa65f6123bc90f8f1
BLAKE2b-256 563360713922a528d50c0bcc14166edeb186eeca8e68778e1cea826ef94e532f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cfdpre-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ca9de29032e19c9e011163cca8ebe3201f22910deb6e145b50ce0c52451c94ac
MD5 1f1e32d2c2851382c125de3f056b39da
BLAKE2b-256 713308b89fa4f73f95c959a19e9cc24af591691b1ebbb68328bf85a8fc34c22f

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