Mesh-Growth-Rate-Finder
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |
|