CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

Scaling and SnappyHexMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 15, 2013, 05:27
Default Scaling and SnappyHexMesh
  #1
New Member
 
Aditya
Join Date: May 2013
Location: Munich Germany
Posts: 27
Rep Power: 4
kingmaker is on a distinguished road
Hello

I am trying to do a blower simulation. I have a working simulation. But while checking throught the log files I found that I have "did not succesfully snap mesh. Giving up" statement at the end of snappyHexMesh. So I searched some thing and some one suggested that we have to scale the mesh to correct units before doing snappyHexMesh.
I did it.

Now the problem is when I scale the mesh before snappyHexMesh, Some of the patches which should have faces on them are shown as empty and are removed by "createPatch" utility.

I am confused what I am doing wrong. Do I also have to change the base mesh. ??

Here is the outline of the sequence of operations I perform before solving :

PHP Code:
1.surfaceFeatureExtract
2.BlockMesh
3.Decomposepar
4.transformPoint
(scaling)
5.snappyHexmesh
6.reconstructParMesh
7.toposet
8.decomposePar
9.MRFSimpleFoam 
(I am running a parallel simulation)

or is there any other reason for getting this "did not succesfully snap mesh. Giving up" problem...??

Thanks in advance
kingmaker is offline   Reply With Quote

Old   July 15, 2013, 06:21
Default
  #2
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 9
colinB is on a distinguished road
Dear kingmaker,

Quote:
1.surfaceFeatureExtract
2.BlockMesh
3.Decomposepar
4.transformPoint
(scaling)
5.snappyHexmesh
6.reconstructParMesh
7.toposet
8.decomposePar
9.MRFSimpleFoam
in order to have get snappyHexMesh to do the meshing right
both the background mesh from blockMesh as well as the
stl file have to have the same scale.

So in order to do so you should scale the mesh before the domain
and stl file are decomposed, so the correct order of your workflow
should look like follows:

Quote:
1.surfaceFeatureExtract
2.BlockMesh
3.
transformPoint(scaling)
4.decomposePar

5.snappyHexmesh
6.reconstructParMesh
7.toposet
8.decomposePar
9.MRFSimpleFoam
one more question why do you use topoSet?
It looks to me like you are trying to refine the mesh in certain
regions, but are missing the refineMesh command, am I right?

I hope I could contribute
regards
colinB is offline   Reply With Quote

Old   July 15, 2013, 07:40
Default
  #3
New Member
 
Aditya
Join Date: May 2013
Location: Munich Germany
Posts: 27
Rep Power: 4
kingmaker is on a distinguished road
Hello colinB

Thank you for your reply. I will try this and post the result. Also about topoSet, I just do some patch merges and invertions in topoSet to make things easy. I am not doing any refinement there. So is it also necessary to do "refineMesh" command after that.. ??
kingmaker is offline   Reply With Quote

Old   July 15, 2013, 09:05
Default
  #4
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 9
colinB is on a distinguished road
Hi

concerning topoSet:

I understand topoSet as a selection tool to pick certain cells in a region
and therefore I would expect a manipulation command right afterwards
like the refineMesh command (this is what I use it for).
So if you don't want to refine anything you don't have to use the command
here of course.

However I don't have a clue how to perform mesh merges and inversions
so I can not tell you whether the command is placed properly here and
whether it is maybe the source of your error message.

regards
colinB is offline   Reply With Quote

Reply

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
stl and snappyHexMesh dimensions mismatch romant OpenFOAM Native Meshers: snappyHexMesh and Others 11 May 4, 2015 09:44
SnappyHexMesh for internal Flow vishwa OpenFOAM Native Meshers: snappyHexMesh and Others 23 August 6, 2014 03:50
What is this in snappyHexMesh ? andrea.pasquali OpenFOAM 5 November 8, 2011 12:28
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
motorBike tutorial and Scaling - New geometry used, scaled and now large velocity!!! scott OpenFOAM 1 July 29, 2010 04:09


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