CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

what is the importance of locationInMesh keyWord in snappyHexDict?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 23, 2013, 08:46
Angry what is the importance of locationInMesh keyWord in snappyHexDict?
  #1
Member
 
Join Date: Oct 2013
Posts: 36
Rep Power: 3
fedvasu is on a distinguished road
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.
Attached Files
File Type: txt attch.txt (9.4 KB, 6 views)
fedvasu is offline   Reply With Quote

Old   October 24, 2013, 02:50
Default
  #2
Member
 
phil
Join Date: Oct 2013
Posts: 33
Rep Power: 3
gelbebanane is on a distinguished road
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
gelbebanane is offline   Reply With Quote

Old   October 24, 2013, 06:38
Default
  #3
Member
 
Join Date: Oct 2013
Posts: 36
Rep Power: 3
fedvasu is on a distinguished road
Quote:
Originally Posted by gelbebanane View Post
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?
fedvasu is offline   Reply With Quote

Old   October 24, 2013, 06:48
Default
  #4
Member
 
phil
Join Date: Oct 2013
Posts: 33
Rep Power: 3
gelbebanane is on a distinguished road
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.
gelbebanane is offline   Reply With Quote

Reply

Tags
snappyhexmesh, snappyhexmeshdict

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to define to right point for locationInMesh Mirage12 OpenFOAM Native Meshers: snappyHexMesh and Others 4 April 10, 2014 10:12
keyword PISO is undefined in dictionary, Please help. TommiPLaiho OpenFOAM Pre-Processing 1 October 21, 2013 18:11
Undefined keyword in dictionary in snappyHexMesh RebeccaWS OpenFOAM Native Meshers: snappyHexMesh and Others 5 October 3, 2013 21:18
Variable as Keyword mturcios777 OpenFOAM Pre-Processing 0 September 18, 2013 12:05
simpleFoam in parallel issue plucas OpenFOAM Running, Solving & CFD 3 July 17, 2013 11:30


All times are GMT -4. The time now is 23:05.