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.
Cita come
CANARD ES (2024). Mesh-Growth-Rate-Finder (https://github.com/CANARDS/Mesh-Growth-Rate-Finder), GitHub. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Le versioni che utilizzano il ramo predefinito di GitHub non possono essere scaricate
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0 |
|