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

SnappyHexMesh AddLayer Control

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

Like Tree1Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   May 14, 2013, 11:14
Default
  #21
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 64
Rep Power: 3
Dadou is on a distinguished road
Quote:
Originally Posted by A.Wendy View Post
hi,

I've never worked with k-epsilon. sorry. but have you turned off the turbulence and tried a laminar simulation?

Andy
Hi,

no problem, the thing is that I need turbulence for this case. But anyway I'll try something

Thanks for your help

Regards

Mehdi
Dadou is offline   Reply With Quote

Old   May 14, 2013, 15:30
Default
  #22
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 4
A.Wendy is on a distinguished road
Quote:
Originally Posted by Dadou View Post
Hi,

no problem, the thing is that I need turbulence for this case. But anyway I'll try something

Thanks for your help

Regards

Mehdi

hi mehdi,

not for the whole time. only to check if the boundary conditions are ok. so use laminar model first check if the calculation works. if not modify the case until the laminar case works. then try to use the tubulence model

best wishes

andy
A.Wendy is offline   Reply With Quote

Old   May 15, 2013, 04:14
Default
  #23
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 64
Rep Power: 3
Dadou is on a distinguished road
Quote:
Originally Posted by A.Wendy View Post
hi mehdi,

not for the whole time. only to check if the boundary conditions are ok. so use laminar model first check if the calculation works. if not modify the case until the laminar case works. then try to use the tubulence model

best wishes

andy
Okay I will try it today
Dadou is offline   Reply With Quote

Old   May 17, 2013, 02:45
Default
  #24
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 4
A.Wendy is on a distinguished road
hi,

did the laminar computation worked?

Andy
A.Wendy is offline   Reply With Quote

Old   May 17, 2013, 04:52
Default
  #25
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 64
Rep Power: 3
Dadou is on a distinguished road
Quote:
Originally Posted by A.Wendy View Post
hi,

did the laminar computation worked?

Andy
hi,

Nop it doesn't work and I know why, I have a problem with the thickness of the boundary layer (y+) it has to be around 30 and I have 20000 (yeah I'm way to far) so I have to refine the mesh in the snappyHexMesh but the problem is that when I turn on the snap and lunch snappyHexMesh I don't have the smooth part on paraview. do you know what do I have to change?

I atteched my blockMesh and snappyHexMesh (be carefull it takes time to do it cause I have more the 5 millions cells)

Thank you

Mehdi
Attached Files
File Type: zip files.zip (4.5 KB, 0 views)
Dadou is offline   Reply With Quote

Old   May 28, 2014, 23:21
Default
  #26
Member
 
J.-H. Wang
Join Date: Oct 2010
Location: Ithaca, New York
Posts: 48
Rep Power: 6
f0208secretx is on a distinguished road
Hello all,

I've been playing with the addLayer control and can seem to make it work. The geometry I have is similar to the original post, a big cube with a small cube subtracted inside.

The snappyHexMeshDict of mine looks like
Code:
addLayersControls
{
    layers
    {
        "cube.*"
        {
            nSurfaceLayers 3;
        }
    }

    relativeSizes true;
    expansionRatio 1.1;
    finalLayerThickness 0.3;
    minThickness 0.1;
    nGrow 0;
    featureAngle 30;
    slipFeatureAngle 30;
    nRelaxIter 5;
    nSmoothSurfaceNormals 1;
    nSmoothNormals 3;
    nSmoothThickness 10;
    maxFaceThicknessRatio 0.5;
    maxThicknessToMedialRatio 0.3;
    minMedianAxisAngle 90;
    nBufferCellsNoExtrude 0;
    nLayerIter 50;
    nRelaxedIter 20;
    nLayerIter 50;
}
Right now I am really confused about the part shown in red, the name of the layer should be the patch name defined previously? I think it should be the name labeled in blue, correct?
Code:
geometry
{
    cube.stl
    {
        type triSurfaceMesh;
        name cube;
    }
    box10x10x10
    {
        type searchableBox;
        min (-5 -5 -5);
        max ( 5  5  5);
    }
};
But I cannot get it to work; been dancing around this problem for some time already... There is no error shown in my log file. I attached the complete dictionary & log file for your reference. Thanks a lot for any advise.


JHW
Attached Files
File Type: zip Archive.zip (6.5 KB, 0 views)
f0208secretx is offline   Reply With Quote

Old   May 29, 2014, 01:46
Default
  #27
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 64
Rep Power: 3
Dadou is on a distinguished road
Hi JHW,

I am a bit busy right now, but I will look it up this week end and let you know what's wrong (or maybe nothing wrong).

Hope by that time you will have an answer if not I will try my best to respond soon.

Regards,

Dadou
Dadou is offline   Reply With Quote

Old   May 29, 2014, 10:38
Default
  #28
Member
 
J.-H. Wang
Join Date: Oct 2010
Location: Ithaca, New York
Posts: 48
Rep Power: 6
f0208secretx is on a distinguished road
Hi,

Thanks for the offer. Is my understanding about the name of the patch correct? The blue font and the red font should match?


JHW
f0208secretx is offline   Reply With Quote

Old   May 30, 2014, 06:32
Default
  #29
Member
 
Elo´se
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 98
Rep Power: 4
Eloise is on a distinguished road
Hi JHW,

Look at you boundary file after mesh generation. You'll find there the name of the existing patches in your mesh. Re-use those names to insert your layers.

I hope that helps,
Regards,
Elo´se
f0208secretx likes this.
Eloise 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
Problems of running Oscillating plate tutorial vovogoal CFX 17 December 30, 2014 05:00
Strange Results With snappyHexMesh calebamiles OpenFOAM Running, Solving & CFD 0 August 14, 2011 17:02
error in two way fsi kmgraju CFX 1 May 2, 2011 03:32
stitchMesh and snappyHexMesh gdbaldw OpenFOAM 0 December 23, 2009 03:09
Solid Timescale Control Parthipan CFX 2 August 24, 2007 11:07


All times are GMT -4. The time now is 12:16.