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

[snappyHexMesh] snappyHexMesh makes a 3D mesh when I'm looking for a 2D flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2017, 17:46
Default snappyHexMesh makes a 3D mesh when I'm looking for a 2D flow
  #1
New Member
 
Join Date: May 2017
Posts: 8
Rep Power: 8
Eefoe is on a distinguished road
Hi everyone,

I'm trying to simulate flow around an airfoil by following a tutorial given here. I was able to successfully complete the tutorial and get reasonable values, but now I'm at a stage where I'm trying to modify the airfoil in the tutorial (from a NACA0015 to a NACA0012) and making the domain much smaller.

All is well until I run simpleFoam and check my results, and I end up with an anomaly in my solution: flow is going around the airfoil through the front and back of the domain:




I tried seeing what I could do in the snappyHexMeshDict file and blockMeshDict files that I used to build the domain, but I have no leads on why this is happening.

Would anyone happen to have any clue as to what the cause may be? The blockMeshDict file says that the domain is 1 cell deep, but I can't find anything in the snappyHexMeshDict that says the same thing.
Eefoe is offline   Reply With Quote

Old   June 8, 2017, 02:09
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Attachment 56513snappyHexMesh is a 3D mesher, there is no way to tell snappy to make a 2D mesh. However, you can create a 2D mesh by extruding one layer of cells from the appropriate patch. After extrusion, you simply throw away all other cells.

So just extend your workflow with two more additional steps.

  1. snappyHexMesh
  2. extrudeMesh
  3. subsetMesh addedCells
Below is the 2D mesh of a cylinder in crossflow created by snappy and extrusion.
Attached Images
File Type: jpg snappyFlowOverCylinder.jpg (132.3 KB, 109 views)
GerhardHolzinger is offline   Reply With Quote

Old   June 12, 2017, 19:30
Default
  #3
New Member
 
Join Date: May 2017
Posts: 8
Rep Power: 8
Eefoe is on a distinguished road
That did it for me. Thanks!
Eefoe is offline   Reply With Quote

Reply


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] Optimizing snappyHexMesh for internal (ribbed) channel flow backscatter OpenFOAM Meshing & Mesh Conversion 1 November 5, 2018 13:28
[snappyHexMesh] Failed 10 mesh checks after snappyHexMesh jet_engine OpenFOAM Meshing & Mesh Conversion 9 November 21, 2016 13:37
[snappyHexMesh] problem with snappyHexMesh kanes OpenFOAM Meshing & Mesh Conversion 10 January 26, 2016 06:11
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11


All times are GMT -4. The time now is 13:56.