snappy works but does not add layers...why?
2 Attachment(s)
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, |
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
|
help
hi sandy
i create geometry in solid and save it .stl but when open in linux its there is wrong can you help me? |
ascci stl
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, |
help
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? |
ascii format
Quote:
Sandy, |
Quote:
|
1 Attachment(s)
Quote:
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? |
It is working
Quote:
Sandy |
Hi Sandy
Do you know how to use Add layer? thanks a lot |
Add layers
Quote:
Sandy, |
Quote:
Code:
addLayers true; Code:
|
Quote:
Sandy, |
1 Attachment(s)
Hello
look at the following test case: |
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 |
1 Attachment(s)
hello
sandy look at the .stl file and name it in the file and name add layer in snappyHexMeshDict file |
snap
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? |
Quote:
|
Quote:
Sorry I can not help you that much about this error, and I did not use extrudeMesh before, sorry again and good luck with your research. Sandy, |
snap
1 Attachment(s)
Hi nimasam
yes i use the extrudMesh please look at the my testcase |
snap
is it right:?
1:run blockMesh 2:snappyhexMeshDict -overwite 3:extrudeMesh |
is it right?
1:run blockMesh 2:run snappyHexMeshDict -overwrite 3:run extrudeMesh |
Quote:
Could you please help me with something.. I am trying to do simulation for a swirl atomization with OF 2.1.1, interFoam solver. My geometry is like in the attached picture, I want to use blockMesh to construct the mesh but I have a problem in defining the internal walls for the mixing region. Sandy, |
Quote:
this is my geometry https://www.dropbox.com/home/openfoam-shear Sandy, |
Quote:
i saw your test case, good job ;), whats the problem? its 2D now and there are several layers around airfoil. |
Quote:
1- blockMesh make your base mesh 2- snappyHesMesh -overwrite extract your airfoil in it 3- extrudeMesh you can derive one cell thick geometry |
Quote:
i guess, you need to make a public link in dropBox, then i would access your link ;) now i can not see any thing :) |
Quote:
I am sorry, this the link again and hope it is working https://www.dropbox.com/s/9o0bpfehxpp2cwz/img007.jpg Sandy, |
dear sandy :) i suggest to use snappyHexMesh, you can create your mesh in a CAD software, then easily with snappyHexMesh you can mesh your geometry
|
blockMesh
Quote:
Thank you for your advice. So as you suggested there is no way to use blockMesh and the only way is CAD and snappy . It is impossible or possible but very difficult by blockMesh? Sandy, |
i guess its possible, you should define several blocks, but it would not be easy tasks :) and you need to be patient enough :D
|
blockMesh
Quote:
Sandy, |
you can post your problems here, forum users will try to help you :D
|
Try this...it should work
In snappHexMeshDict, do not forget to add this part otherwise snappyHexMesh will work but still layers wont be added.
features ( { file "yourcase.eMesh"; level yourinput; } ); Example: features ( { file "motorbike.eMesh"; level 6; } ); The thread is too old still posting if someone got stuck like I was due to this. Hope it helps Thank you ! |
All times are GMT -4. The time now is 09:03. |