CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] what is the importance of locationInMesh keyWord in snappyHexDict?

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

Like Tree1Likes
  • 1 Post By gelbebanane

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2013, 09:46
Angry what is the importance of locationInMesh keyWord in snappyHexDict?
  #1
Member
 
Join Date: Oct 2013
Posts: 92
Rep Power: 12
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, 8 views)
fedvasu is offline   Reply With Quote

Old   October 24, 2013, 03:50
Default
  #2
Member
 
phil
Join Date: Oct 2013
Posts: 36
Rep Power: 12
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
Houthuys likes this.
gelbebanane is offline   Reply With Quote

Old   October 24, 2013, 07:38
Default
  #3
Member
 
Join Date: Oct 2013
Posts: 92
Rep Power: 12
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, 07:48
Default
  #4
Member
 
phil
Join Date: Oct 2013
Posts: 36
Rep Power: 12
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Undefined keyword in dictionary in snappyHexMesh RebeccaWS OpenFOAM Meshing & Mesh Conversion 7 September 6, 2016 07:19
[OpenFOAM] Take derivative of mean velocity in paraFoam hiuluom ParaView 13 April 26, 2016 07:44
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 15:07
Derivative of velocity and mean velocity hiuluom OpenFOAM Post-Processing 1 May 30, 2015 00:42
simpleFoam in parallel issue plucas OpenFOAM Running, Solving & CFD 3 July 17, 2013 12:30


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