CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] Hyperbolic tangent stretching using BlockMesh (https://www.cfd-online.com/Forums/openfoam-meshing/122720-hyperbolic-tangent-stretching-using-blockmesh.html)

Joachim August 26, 2013 14:20

Hyperbolic tangent stretching using BlockMesh
 
Hello everyone!

I was wondering, is it possible to use hyperbolic tangent stretching with blockMesh? I have been searching for a while, but I haven't found anything other than simpleGrading...

Thank you very much!

Joachim

Yosmcer August 29, 2013 10:48

Quote:

Originally Posted by Joachim (Post 448158)
I haven't found anything other than simpleGrading.

Hello, you have also edgeGrading.
However, I don't really understand what you want to be "hyperbolic tangent", so it may be of no help.

Joachim August 29, 2013 10:56

Thank you Yosmcer.
Basically, I don't want to have a constant cell expansion ratio across the domain. I would like to change the node distribution along the edge...

Yosmcer August 29, 2013 11:39

So edgeGrading will not do the trick (it alow only to define the grading for all edges).

I know no integrated solutions to do what you want, but add-on solutions exist, with name double grading:

http://code.google.com/p/blockmeshdg/

Is this what you are looking for?

Joachim August 29, 2013 11:42

arg, that's not really what I am looking for, but thanks anyway!

ngj August 29, 2013 13:43

Hi Joachim,

The short answer to your question will be "no", but if you compare the code linked above with the standard version of blockMesh, then you should be able to identify, where the grading is implemented.

From there on it is "merely" a matter of implementing your own preferred stretching function.

Kind regards

Niels


All times are GMT -4. The time now is 03:01.