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/)
-   -   [snappyHexMesh] what is the importance of locationInMesh keyWord in snappyHexDict? (https://www.cfd-online.com/Forums/openfoam-meshing/125326-what-importance-locationinmesh-keyword-snappyhexdict.html)

fedvasu October 23, 2013 08:46

what is the importance of locationInMesh keyWord in snappyHexDict?
 
1 Attachment(s)
Hi Foamers,

I would like to know what is the signification of locationInMesh, how would go about specifying it? (how do I compute it?)

I have case where I need to generate mesh around an Industrial Fan (like a ceiling fan but Industrial). I have given all the parameters in snappyHexDict appropriately but the mesh generated doesn't acknowledge my surface (Fan .stl file) is a wall.

in boundary i have

Fan
{
type wall;
nFaces 0; // why 0??
startFace 80894;
}

you can see nFaces is 0.

I am attaching my snappyHexDict. I have closely followed the defaults of (for blockMesh and snappyHexMesh dicts) incompressible/pimpleFoam/pimpleDymFoam/propellor.

gelbebanane October 24, 2013 02:50

Hi,
i managed to get the coordinates through paraFoam.
Just open your blockMesh in paraFoam (without snappy Mesh) and then import also your Fan.stl. As you made your blockMesh by yourself you should have the min and max coordinates of your block. In paraFoam you have a visualisation of the current position from your Fan to your blockMesh. Now just pick a point that is obviously not inside the Fan and use this coordinates for "locationInMesh".

I think there are also some other ways to get it done properly. This method was the easiest for me without "googling" etc.

Greetings

fedvasu October 24, 2013 06:38

Quote:

Originally Posted by gelbebanane (Post 458674)
Hi,
i managed to get the coordinates through paraFoam.
Just open your blockMesh in paraFoam (without snappy Mesh) and then import also your Fan.stl. As you made your blockMesh by yourself you should have the min and max coordinates of your block. In paraFoam you have a visualisation of the current position from your Fan to your blockMesh. Now just pick a point that is obviously not inside the Fan and use this coordinates for "locationInMesh".

I think there are also some other ways to get it done properly. This method was the easiest for me without "googling" etc.

Greetings

oh, I was confused, i thought the point should obviously be inside my geometry, but still after correcting the locationInMesh issue, I am getting nFaces = 0; so that can't be the issue right??


there are no errors in log.snappyHexMesh , what am I missing?

gelbebanane October 24, 2013 06:48

Yes the point has to be inside the blockMesh mesh but as u want to simulate the streaming around your fan the point has to be outside the fan.

About your other error i have no idea what it could be, i am also very new to sHM and OF.


All times are GMT -4. The time now is 16:48.