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

[snappyHexMesh] snappyHexMesh removes wrong cells

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By danielpiaget

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2015, 08:48
Default snappyHexMesh removes wrong cells
  #1
New Member
 
Join Date: Oct 2015
Location: Oviedo, Asturias, Espaņa
Posts: 17
Rep Power: 11
pela145 is on a distinguished road
Hello!

I probably have a simple problem with snappyHexMesh that could be solve with ease, but i tried it and looked in this forum for a similar problem but i didn't find it.

Well, i have created a .stl object with 3dsMax, a prism that pretends to be a buiding. Here you have its axis view and size in paraView.

buildingxy.jpgbuildingyz.jpg

Then i built up a rectangular mesh by editing pitzdaily tutorial. I had no problems with the mesh. Then i edited the snappyHexMechDict and i tried to remove the cells from the place where the object must be. However, the result of snappyHexMesh was that it had remove the external cells to the object and i had leave the internal cells, the opposite that i wanted.

I thought that the problem would be the locationInMesh, but i tried with different ones (all of them inside the building), even different decimals (i thought that i could be on a face) but it always happens the same.
initialmeshxy.jpg
initialmeshyz.jpg
finalmeshyz.jpg

If you need, i can post my blockMeshDict and my snappyHexMeshDict too.

I hope you could help me. I would be very grateful.
pela145 is offline   Reply With Quote

Old   October 26, 2015, 08:55
Default snappyHexMesh removes wrong cells (2)
  #2
New Member
 
Join Date: Oct 2015
Location: Oviedo, Asturias, Espaņa
Posts: 17
Rep Power: 11
pela145 is on a distinguished road
Here you have my blockMeshDict and my snappyHexMeshDict

blockMeshDict.pdf

snappyHexMeshDict.pdf
pela145 is offline   Reply With Quote

Old   October 26, 2015, 14:45
Default
  #3
Member
 
DanielP
Join Date: Jan 2015
Posts: 33
Rep Power: 11
danielpiaget is on a distinguished road
Hello Pela,

The locationInMesh must in the zone of the mesh you wish to keep. In your case, you must place the point outside the STL, but inside your initial mesh.

Daniel
pela145 likes this.
danielpiaget is offline   Reply With Quote

Old   October 27, 2015, 07:39
Default
  #4
New Member
 
Join Date: Oct 2015
Location: Oviedo, Asturias, Espaņa
Posts: 17
Rep Power: 11
pela145 is on a distinguished road
Quote:
Originally Posted by danielpiaget View Post
Hello Pela,

The locationInMesh must in the zone of the mesh you wish to keep. In your case, you must place the point outside the STL, but inside your initial mesh.

Daniel
Thank you very much Daniel, i thought that it was exactly the opposite.
pela145 is offline   Reply With Quote

Reply

Tags
mesh 3d, snappyhexmesh


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] SnappyHexMesh running killed! Mark JIN OpenFOAM Meshing & Mesh Conversion 7 June 14, 2022 02:37
cellZone not taking all the cells inside rahulksoni OpenFOAM 0 January 16, 2019 02:16
udf error srihari FLUENT 1 October 31, 2016 15:18
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
physical boundary error!! kris Siemens 2 August 3, 2005 01:32


All times are GMT -4. The time now is 02:57.