Mesh-Growth-Rate-Finder

Version 1.0.0 (914 Bytes) by CANARD ES
Calculates the growth rate for uniform growth of CFD mesh from a given minimum cell size to maximum size.
39 Downloads
Updated 24 Apr 2020

In the sizing controls in Ansys Meshing module, while setting sizes for the edges, there are two options: 'element size' or 'number of divisions' (not considering 'sphere of influence'). The problem is that you can not set both together, but in CFD we often have to set the first cell height (from Y+ calculation), and we have to set the number of divisions (especially, when we have a quad/hexa mesh and we wish to do mesh independence study).
The only way is to set the number of divisions and specify the growth rate for the bias in such a manner that the resulting smallest division equals the first cell height. It isn't always easy or convenient to do hand calculations every time, so I have written a simple code in matlab (in which you put the edge length, number of divisions and first cell height, and it gives you the required growth rate) for the purpose.

Cite As

CANARD ES (2024). Mesh-Growth-Rate-Finder (https://github.com/CANARDS/Mesh-Growth-Rate-Finder), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Computational Fluid Dynamics (CFD) in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.