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/)
-   -   [mesh manipulation] refineWallLayer - error (https://www.cfd-online.com/Forums/openfoam-meshing/160335-refinewalllayer-error.html)

dodobenq October 6, 2015 05:44

refineWallLayer - error
 
Hey Guys!

I want to refine my Mesh near the patch "cylinder". When I type in the following command
Code:

refineWallLayer -overwrite cylinder 0.3
this error appears:
Code:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0



--> FOAM FATAL IO ERROR:
incorrect first token, expected <int> or '(', found on line 0 the word 'cylinder'

file: IStringStream.sourceFile at line 0.

    From function operator>>(Istream&, List<T>&)
    in file /home/openfoam/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/ListIO.C at line 149.

FOAM exiting

Does anybody know, what am I doing wrong?

Kind Regards!

tomf October 7, 2015 04:48

Hi, the correct syntax would be:

Code:

refineWallLayer -overwrite '(cylinder)' 0.3
I got this from the hint " expected <int> or '(' " that the error message gave and just tested it on the cavity tutorial.

Regards,
Tom

dodobenq October 7, 2015 07:13

Worked well! Thanks :)

chandra shekhar pant December 1, 2019 07:17

Hello All,

I just stated to use the refineWallLayer utility, this worked for me too also. But just wondering what is the suffix, 0.5 ? Could I use any other number like, 0.7, 0.9 etc? Particularly what is the significance of this number. It will be a great help if you could explain this.


Thanks a lot !


All times are GMT -4. The time now is 21:07.