CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   inflated quadratic element mesh (

fferroni February 8, 2012 04:57

inflated quadratic element mesh

I've been trying to change the parameters of simpleGrading in the mesh file so that I get smaller quadratic orthogonal elements near the edges. However, I seem to only be able to make them refined on one side. I just have a square cross-section that I would like to refine at the edges.

Thank you very much

Kind Regards,


akidess February 8, 2012 08:33

fferroni February 8, 2012 12:32

Apologies for the noob question, but where do I put the folder that I just downloaded?



akidess February 8, 2012 12:37

In principle any where, but I like to put it in OpenFOAM/user-2.0.x/applications/utilities/. After you extracted the files, run the Allwmake script once and then you can use the utility.

fferroni February 11, 2012 06:00

I did as you said, and put the blockmeshdg folder in applications/utilities and then ran allwmake from the folder but it told me the command didn't exist. i also tried wmake but it failed.


Kindest regards,


akidess February 11, 2012 08:30

What happened exactly when you ran ./Allwmake? What was the error message if you got any? Were you able to run any other OpenFOAM commands in the same shell?

The executable name is "blockMeshDG" by the way - the capitalization is important.

fferroni February 11, 2012 10:42

Ok it compiles now.

What is the required syntax for having inflated meshes at each side of a square? simpleGrading I suppose would not incorporate this effect?

Kindest Regards,


akidess February 11, 2012 11:06

Use it just like the standard blockMesh, but use negative coefficients where you want double grading.

fferroni February 15, 2012 03:54


That works very nicely.

Thank you very much.


All times are GMT -4. The time now is 11:17.