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

mergePatchPairs Misbehaving

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 19, 2011, 23:24
Default mergePatchPairs Misbehaving
  #1
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 151
Rep Power: 8
dancfd is on a distinguished road
Hello all,

I am having trouble using blockMesh & mergePatchPairs to generate a C-grid for an airfoil. I was unable to use the grading to get sufficient resolution (y+ = 30), therefore I created a "layer" of blocks around the airfoil to get the proper number of cells and expansion ratio. That led to a problem, which was cells that were too skinny in the wake. I addressed that by using mergePatchPairs to terminate the layer blocks at the trailing edge, however mergePatchPairs appears to join the wake and forward blocks improperly, leading to additional orthogonality errors and poor convergence.

I have attached my blockMeshDict and an image of the discrepant cells. What is shown is the block interface along the line that runs vertically from the trailing edge.

I would appreciate any assistance at all. Thanks in advance,

Dan
Attached Images
File Type: jpg interface.jpg (44.2 KB, 52 views)
Attached Files
File Type: txt blockMeshDict.txt (67.8 KB, 13 views)
dancfd is offline   Reply With Quote

Old   July 19, 2011, 23:49
Default
  #2
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 151
Rep Power: 8
dancfd is on a distinguished road
To follow up, I commented out the patches in mergePatchPairs, then ran stitchMesh internalRight internalLeft. I am left with this error:

Code:
--> FOAM FATAL IO ERROR: 
keyword internalRight is undefined in dictionary "/home/dan/OpenFOAM/dan-1.7.0/run/thesis/cases/VISN017fix2/0/p::boundaryField"

file: /home/dan/OpenFOAM/dan-1.7.0/run/thesis/cases/VISN017fix2/0/p::boundaryField from line 27 to line 43.

    From function dictionary::subDict(const word& keyword) const
    in file db/dictionary/dictionary.C at line 461.

FOAM exiting
Is it possible to stitch the faces together and make them internal? That could be another approach to solving the same problem.

Thanks,
Dan
dancfd is offline   Reply With Quote

Old   July 20, 2011, 00:08
Default
  #3
Senior Member
 
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 151
Rep Power: 8
dancfd is on a distinguished road
Last one for now... I got around the stitchMesh issue by temporarily emptying the /0 directory. Now stitchMesh runs, but it produces the same nonOrthogonality issue that blockMesh did.

Another way forward would be to split the wake from two blocks (top and bottom) to four (the thickness of the layer). To make this work, I would have to reduce the number of nodes in the y-direction, meaning it would not match the neighbouring block around the airfoil. I duplicated the vertices at the interfaces in question, and defined the left and right blocks that meet at the interface according to the separate set of duplicate vertices. It looks like the mergePatchPairs is completed successfully on the top, but not on the bottom of the wake (see pic of trailing edge). Any ideas on how I could fix this? New BlockMeshDict attached.

Dan
Attached Images
File Type: jpg trailingEdge.jpg (68.5 KB, 44 views)
Attached Files
File Type: txt blockMeshDict.txt (69.1 KB, 13 views)

Last edited by dancfd; July 20, 2011 at 01:11.
dancfd 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
mergePatchPairs for a meshing with fixed interface Cyp OpenFOAM Meshing & Mesh Conversion 17 May 22, 2014 09:34
mergePatchPairs master with few slaves piprus OpenFOAM Native Meshers: blockMesh 3 November 8, 2012 10:32
mergePatchPairs vs stitchMesh pg22 OpenFOAM Native Meshers: blockMesh 1 March 10, 2010 06:50
BlockMeshDict with multiple hex blocks mergePatchPairs prousa OpenFOAM Native Meshers: blockMesh 1 May 14, 2009 23:42
BlockMesh documentation User Guide clearance of mergePatchPairs proposals benru OpenFOAM Native Meshers: blockMesh 0 June 9, 2008 02:22


All times are GMT -4. The time now is 20:00.