|
[Sponsors] |
June 22, 2020, 04:20 |
snappyHexMesh multiRegion failure
|
#1 |
New Member
Zicheng Li
Join Date: Dec 2019
Posts: 8
Rep Power: 7 |
Hi All!
I use OF4Win 18.10 then i have a CHT test case that failed to generate the multiregion grid with snappyHexMesh. Well,there are fluid and solid grid domains are ultimately required there is fluid.stl solid.stl there is snappyHexMeshDict HTML Code:
FoamFile { version 2.0; format ascii; class dictionary; object snappyHexMeshDict; } castellatedMesh on; snap on; addLayers off; geometry { fluid.stl { type triSurfaceMesh; name fluid; } solid.stl { type triSurfaceMesh; name solid; } inlet.stl { type triSurfaceMesh; name inlet; } outlet.stl { type triSurfaceMesh; name outlet; } }; castellatedMeshControls { maxLocalCells 1000000; maxGlobalCells 20000000; minRefinementCells 0; maxLoadUnbalance 0; nCellsBetweenLevels 1; features ( { file "fluid.eMesh"; level 2; } { file "solid.eMesh"; level 3; } { file "inlet.eMesh"; level 2; } { file "outlet.eMesh"; level 2; } ); refinementSurfaces { fluid { level (1 2); faceZone fluid; cellZone fluid; cellZoneInside inside; insidePoint (30 25 0); } solid { level (2 3); faceZone solid; cellZone solid; cellZoneInside inside; insidePoint (120 25 0); } inlet { level (1 2); patchInfo { type patch; } } outlet { level (1 2); patchInfo { type patch; } } } resolveFeatureAngle 30; refinementRegions { } locationInMesh (120 25 0); allowFreeStandingZoneFaces true; } snapControls { nSmoothPatch 5; tolerance 1.0; nSolveIter 300; nRelaxIter 10; nFeatureSnapIter 5; explicitFeatureSnap false; multiRegionFeatureSnap false; implicitFeatureSnap true; } addLayersControls { relativeSizes true; layers { "STL" { nSurfaceLayers 1; } } expansionRatio 1.0; finalLayerThickness 0.3; minThickness 0.1; nGrow 0; featureAngle 30; slipFeatureAngle 30; nRelaxedIter 3; nRelaxIter 3; nSmoothSurfaceNormals 1; nSmoothNormals 3; nSmoothThickness 10; maxFaceThicknessRatio 0.5; maxThicknessToMedialRatio 0.3; minMedialAxisAngle 90; nMedialAxisIter 10; nBufferCellsNoExtrude 0; nLayerIter 50; additionalReporting false; } meshQualityControls { maxNonOrtho 65; maxBoundarySkewness 20; maxInternalSkewness 4; maxConcave 80; minVol 1e-13; minTetQuality 1e-30; minArea -1; minTwist 0.02; minDeterminant 0.001; minFaceWeight 0.02; minVolRatio 0.01; minTriangleTwist -1; nSmoothScale 4; errorReduction 0.75; relaxed { maxNonOrtho 75; } } debug 0; mergeTolerance 1e-6; when i execute splitMeshRegions -cellZones -overwrite,it would generate a domain(blue) that i dont know how it got cut out. And it makes me wonder and tired.Can anyone please guide me how to do this? It would be a great help. Thank you. (Please send email to 2685306635@qq.com if you need mesh case folder) |
|
June 23, 2020, 04:45 |
Use topoSet / setSet
|
#2 |
New Member
Thangasivam
Join Date: Sep 2012
Location: India
Posts: 5
Rep Power: 14 |
Hello,
Try to use toposet. Follow the links to learn https://www.youtube.com/watch?v=6bx1...iaQc3I&index=8 https://openfoamwiki.net/index.php/TopoSet or Try to use setSet. Follow the links to learn https://www.youtube.com/watch?v=5PtNS1Nc_u0 https://openfoamwiki.net/index.php/SetSet Cheers, Sivam |
|
June 23, 2020, 11:39 |
|
#3 |
New Member
Join Date: Jun 2020
Location: UK
Posts: 22
Rep Power: 6 |
Hi,
Can you please share your snappyHexMesh log file? And also have you checked your "stl" files using "surfaceCheck" utiliy to see if they are closed? Cheers |
|
June 23, 2020, 11:56 |
|
#4 | |
New Member
Zicheng Li
Join Date: Dec 2019
Posts: 8
Rep Power: 7 |
Quote:
best wishes! |
||
June 24, 2020, 01:02 |
|
#5 | |
New Member
Zicheng Li
Join Date: Dec 2019
Posts: 8
Rep Power: 7 |
Quote:
i sure that my "stl"files are closed by "surfaceCheck".I huaven't seen any cell in my solid zone and this is my snappyhexmesh.log file. thank u bro! Best Wishes! |
||
June 25, 2020, 08:17 |
|
#6 |
New Member
Join Date: Jun 2020
Location: UK
Posts: 22
Rep Power: 6 |
Hi,
First, as the snappyHexMesh log shows, the cellZone detection goes a bit off and selects two cellZones: "Fluid" and "Fluid-out", which the later is "Solid" plus a portion of the fluid around. Just a few point: 1) You should remove the edge feature refinement for the sphere solid from "features" part since a sphere does not have any edge. 2) The same applies to the inlet and outlet edge features since they have already been captured in the fluid edge feature! 3) Also you'd better not to define inlet and outlet (or in general any surface patch) as separate geometry regions. I have shared a test case for your geometry (maybe with different dimensions) which does the job using OpenFOAM-5.x: sphereMultiRegion_case Cheers |
|
June 30, 2020, 06:09 |
|
#7 | |
New Member
Zicheng Li
Join Date: Dec 2019
Posts: 8
Rep Power: 7 |
Quote:
I get it! Best wishes! |
||
March 5, 2021, 07:00 |
p_rgh devergence with chtMutiRegionFoam in first iteration
|
#8 | ||||||
New Member
Zicheng Li
Join Date: Dec 2019
Posts: 8
Rep Power: 7 |
Hi all! The p_rgh appeared "nan" when my case is solved with chtMultiRegionFoam for fluid region in first iteration.I tried many ways, but still couldn't solve it.Now, I am very upset then wishing lovely people can give me some pertinent advice.Vielen Dank!
Well ,these my codes of fluid.Have a look ,please. mesh field p Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Last edited by Liz1219; March 5, 2021 at 23:39. |
|||||||
Tags |
multiregion, snappyhexmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Doubts regarding the use of snappyHexMesh for multiregion meshing | Shibi | OpenFOAM Meshing & Mesh Conversion | 4 | October 22, 2021 12:38 |
[snappyHexMesh] Multiregion snappyhexmesh | obiscolly50 | OpenFOAM Meshing & Mesh Conversion | 0 | April 18, 2019 01:51 |
snappyHexMesh axisymmetric multiRegion | Henning86 | OpenFOAM Running, Solving & CFD | 0 | October 23, 2014 13:05 |
[snappyHexMesh] SnappyHexMesh and MultiRegion - get regions from Salome to OF | dzi | OpenFOAM Meshing & Mesh Conversion | 2 | September 4, 2014 11:04 |
Simulation of SnappyHexMesh multiregion | nithishgupta | OpenFOAM Running, Solving & CFD | 0 | June 24, 2014 06:31 |