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

[snappyHexMesh] SnappyHexMesh AddLayer Control

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

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2013, 10:14
Default
  #21
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 12
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, 14:30
Default
  #22
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 13
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, 03:14
Default
  #23
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 12
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, 01:45
Default
  #24
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 13
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, 03:52
Default
  #25
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 12
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, 1 views)
Dadou is offline   Reply With Quote

Old   May 28, 2014, 22:21
Default
  #26
Member
 
J.-H. Wang
Join Date: Oct 2010
Posts: 72
Rep Power: 15
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, 2 views)
f0208secretx is offline   Reply With Quote

Old   May 29, 2014, 00:46
Default
  #27
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 12
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, 09:38
Default
  #28
Member
 
J.-H. Wang
Join Date: Oct 2010
Posts: 72
Rep Power: 15
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, 05:32
Default
  #29
Senior Member
 
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 13
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Run snappyHexMesh steps (castellated, snap, addlayer) separately Glc OpenFOAM Meshing & Mesh Conversion 6 October 8, 2021 02:50
[snappyHexMesh] snappyHexMesh small pyramid volume control taeyounk OpenFOAM Meshing & Mesh Conversion 2 July 13, 2017 12:07
[snappyHexMesh] bumpy on the surface of 3D wing in addlayer step with snappyHexMesh Kim sung hwan OpenFOAM Meshing & Mesh Conversion 2 April 21, 2015 03:51
[snappyHexMesh] Mesh quality control in snappyHexMesh - OpenFOAM 2.3.0 arapuraz OpenFOAM Meshing & Mesh Conversion 1 August 12, 2014 04:17
[snappyHexMesh] AddLayer Control MAV OpenFOAM Meshing & Mesh Conversion 0 April 11, 2012 05:51


All times are GMT -4. The time now is 01:52.