|
[Sponsors] |
[snappyHexMesh] snappy works but does not add layers...why? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 25, 2013, 06:28 |
snappy works but does not add layers...why?
|
#1 |
Member
sandy
Join Date: Mar 2013
Location: Cardiff, UK
Posts: 74
Rep Power: 13 |
Dear foamers,
Please any body can help me. My snappy utility for my work, but it does not add layers. My geometry and the snappy is like in photos, can any one have a go on my snappy dictionary below.. /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object snappyHexMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // castellatedMesh true; snap true; addLayers true; geometry { injector.stl { type triSurfaceMesh; name injector; } } castellatedMeshControls { maxLocalCells 500000; maxGlobalCells 1000000; minRefinementCells 100; nCellsBetweenLevels 6; features (); refinementSurfaces { injector { level (4 3); } } refinementRegions { } resolveFeatureAngle 200; locationInMesh (0 0 0); allowFreeStandingZoneFaces false; } snapControls { nSmoothPatch 3; tolerance 4; nSolveIter 60; nRelaxIter 5; } addLayersControls { relativeSizes true; layers { injector { nSurfaceLayers 4; } }/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object snappyHexMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // castellatedMesh true; snap true; addLayers true; geometry { injector.stl { type triSurfaceMesh; name injector; } } castellatedMeshControls { maxLocalCells 500000; maxGlobalCells 1000000; minRefinementCells 100; nCellsBetweenLevels 6; features (); refinementSurfaces { injector { level (4 3); } } refinementRegions { } resolveFeatureAngle 200; locationInMesh (0 0 0); allowFreeStandingZoneFaces false; } snapControls { nSmoothPatch 3; tolerance 4; nSolveIter 60; nRelaxIter 5; } addLayersControls { relativeSizes true; layers { injector { nSurfaceLayers 4; } } expansionRatio 1.0; finalLayerThickness 0.3; minThickness 0.1; nGrow 1; featureAngle 30; nRelaxIter 3; nSmoothSurfaceNormals 1; nSmoothNormals 3; nSmoothThickness 10; maxFaceThicknessRatio 0.5; maxThicknessToMedialRatio 0.3; minMedianAxisAngle 130; nBufferCellsNoExtrude 1; nLayerIter 50; } meshQualityControls { maxNonOrtho 65; maxBoundarySkewness 20; maxInternalSkewness 4; maxConcave 80; minVol 1e-13; minTetQuality 1e-30; minArea -1; minTwist 0.05; minDeterminant 0.001; minFaceWeight 0.05; minVolRatio 0.01; minTriangleTwist -1; nSmoothScale 4; errorReduction 0.75; minFlatness 0.5; } debug 0; mergeTolerance 1e-6; expansionRatio 1.0; finalLayerThickness 0.3; minThickness 0.1; nGrow 1; featureAngle 30; nRelaxIter 3; nSmoothSurfaceNormals 1; nSmoothNormals 3; nSmoothThickness 10; maxFaceThicknessRatio 0.5; maxThicknessToMedialRatio 0.3; minMedianAxisAngle 130; nBufferCellsNoExtrude 1; nLayerIter 50; } meshQualityControls { maxNonOrtho 65; maxBoundarySkewness 20; maxInternalSkewness 4; maxConcave 80; minVol 1e-13; minTetQuality 1e-30; minArea -1; minTwist 0.05; minDeterminant 0.001; minFaceWeight 0.05; minVolRatio 0.01; minTriangleTwist -1; nSmoothScale 4; errorReduction 0.75; minFlatness 0.5; } debug 0; mergeTolerance 1e-6; Sandy, |
|
March 25, 2013, 17:18 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Check the second tutorial at this page: http://openfoamwiki.net/index.php/Sn...als_and_Guides - namely the one from the 7th OpenFOAM Workshop
__________________
|
|
May 16, 2013, 06:17 |
help
|
#3 |
Member
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
hi sandy
i create geometry in solid and save it .stl but when open in linux its there is wrong can you help me? |
|
May 16, 2013, 06:35 |
ascci stl
|
#4 | |
Member
sandy
Join Date: Mar 2013
Location: Cardiff, UK
Posts: 74
Rep Power: 13 |
Quote:
In fact I do not why your file does not open with linux, but have you saved your file as an ascci format stl file. I think you should pick ascci when you save the file If you did not and I wish If I can help you more. Sandy, |
||
May 17, 2013, 09:07 |
help
|
#5 |
Member
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Hi sandy
Thank you very much for answering my question. But I do not know how to save your file format ascci? Do you know? |
|
May 17, 2013, 10:19 |
ascii format
|
#6 | |
Member
sandy
Join Date: Mar 2013
Location: Cardiff, UK
Posts: 74
Rep Power: 13 |
Quote:
Sandy, |
||
May 17, 2013, 11:01 |
|
#7 | |
Member
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Quote:
|
||
May 17, 2013, 11:42 |
|
#8 |
Member
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Dear sany
i import my geometry in blender but i cant see it!!!!!!!!!!!!!!!!!! ? i open it the all normal face is (0 0 0) is it right? Last edited by wyldckat; May 17, 2013 at 18:40. Reason: too many consecutive posts with very little information... so they've been merged accordingly |
|
May 20, 2013, 07:18 |
It is working
|
#9 |
Member
sandy
Join Date: Mar 2013
Location: Cardiff, UK
Posts: 74
Rep Power: 13 |
||
May 25, 2013, 10:56 |
|
#10 |
Member
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Hi Sandy
Do you know how to use Add layer? thanks a lot |
|
May 26, 2013, 07:29 |
Add layers
|
#11 |
Member
sandy
Join Date: Mar 2013
Location: Cardiff, UK
Posts: 74
Rep Power: 13 |
||
May 26, 2013, 07:39 |
|
#12 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
first :
Code:
addLayers true; Code:
layers { ".*" //put your patch name here { nSurfaceLayers 1; //put numbers of your layers here } }
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
May 26, 2013, 10:25 |
|
#13 | |
Member
sandy
Join Date: Mar 2013
Location: Cardiff, UK
Posts: 74
Rep Power: 13 |
Quote:
Sandy, |
||
May 26, 2013, 11:44 |
|
#14 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Hello
look at the following test case:
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
May 26, 2013, 15:27 |
|
#15 |
Member
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
hi sandi
probably your name of addlayer is wrong i think its true: injector.stl_injector second injector is the name in .stl file and not geometry |
|
May 27, 2013, 02:44 |
|
#16 |
Member
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
hello
sandy look at the .stl file and name it in the file and name add layer in snappyHexMeshDict file |
|
May 28, 2013, 05:06 |
snap
|
#17 |
Member
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
hi
i want to create 2d mesh around airfoil but when i use checkMesh is this error:Number of edges not aligned with or perpendicular to non-empty directions and the surface of airfoil not snap can you help me please? |
|
May 28, 2013, 05:26 |
|
#18 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
did you try to use extrudeMesh ?
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
May 28, 2013, 08:16 |
|
#19 |
Member
sandy
Join Date: Mar 2013
Location: Cardiff, UK
Posts: 74
Rep Power: 13 |
||
May 28, 2013, 08:30 |
snap
|
#20 |
Member
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Hi nimasam
yes i use the extrudMesh please look at the my testcase |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Impossible to add layers in SnappyHexMesh | knightwalker | OpenFOAM Meshing & Mesh Conversion | 4 | March 27, 2019 18:09 |
[OpenFOAM] Checking layers generated by snappy with paraview | bentkj | ParaView | 1 | February 22, 2018 04:32 |
[snappyHexMesh] snappy does not add layer to whole body | 5tern | OpenFOAM Meshing & Mesh Conversion | 0 | October 20, 2016 11:09 |
[snappyHexMesh] Adding layers goes wrong with SnappyHexMesh | Elise | OpenFOAM Meshing & Mesh Conversion | 1 | April 22, 2013 03:32 |
[snappyHexMesh] Add layers and deformation | Prosiaczek | OpenFOAM Meshing & Mesh Conversion | 0 | April 11, 2012 19:27 |