|
[Sponsors] |
[snappyHexMesh] snappyhexmesh gives me missing regions |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Omar
Join Date: Apr 2024
Posts: 15
Rep Power: 2 ![]() |
Hello everybody, i am relatively new to openfoam and i'm trying to use snappyhexmesh in order to realise the meshing of this geometry.The fluid supposed to be water entering the tube and there is a heat flux applied on the top surface of the solid.I tried to export the solid body and fluid body as stl files and then i want to use snappyhexmesh in order to realise the mesh. Therefore i have the fluid.stl file containing the inlet outlet and the tube regions of the fluid, whereas the solid.stl contains the rest of the regions.N ormally i define the surfaces in surfacefeatureextract file like the following:
fluid.stl { extractionMethod extractFromSurface; extractFromSurfaceCoeffs {includedAngle 150;} writeObj yes; } solid.stl { extractionMethod extractFromSurface; extractFromSurfaceCoeffs {includedAngle 150;} writeObj yes; } And then i insert them in snappyhexmesh with the following code : castellatedMesh true; snap true; addLayers false; geometry { solid.stl {type triSurfaceMesh; name solid;} fluid.stl {type triSurfaceMesh; name fluid;} refinementBox {type searchableBox; min (-0.1 -0.1 -0.3); max ( 0.4 0.1 0.1);} }; castellatedMeshControls { maxLocalCells 1000000; //max cells per CPU core maxGlobalCells 2000000; //max cells to use before mesh deletion step minRefinementCells 10; //was 0 - zero means no bad cells are allowed during refinement stages maxLoadUnbalance 0.10; nCellsBetweenLevels 1; // expansion factor between each high & low refinement zone // Explicit feature edge refinement // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ features "SurfaceFeatureExtract" command ( {file "solid.eMesh"; level 5;} {file "fluid.eMesh"; level 4;} ); // Surface based refinement // ~~~~~~~~~~~~~~~~~~~~~~~~ refinementSurfaces { solid {level (5 5);} fluid {level (5 5);} } resolveFeatureAngle 80; refinementRegions {volume {mode distance; levels ((0.0006 4) (0.002 3) (0.01 2));}} locationInMesh (0 0 -0.05); } // Settings for the snapping. snapControls { nSmoothPatch 3; tolerance 4.0; nSolveIter 30; nRelaxIter 5; nFeatureSnapIter 15; implicitFeatureSnap false; explicitFeatureSnap true; multiRegionFeatureSnap false; } addLayersControls { relativeSizes false; layers { fluid {nSurfaceLayers 3;} //solid //{nSurfaceLayers 3;} } expansionRatio 1.3; finalLayerThickness 0.00016; minThickness 0.00008; nGrow 0; // was 1 featureAngle 80; nRelaxIter 3; nSmoothSurfaceNormals 1; nSmoothNormals 3; nSmoothThickness 10; maxFaceThicknessRatio 0.5; maxThicknessToMedialRatio 0.3; minMedianAxisAngle 130; nBufferCellsNoExtrude 0; nLayerIter 50; // Overall max number of layer addition iterations } meshQualityControls { maxNonOrtho 65; maxBoundarySkewness 20; maxInternalSkewness 4; maxConcave 80; minFlatness 0.5; minVol 1e-13; minTetQuality 1e-9; minArea -1; minTwist 0.02; minDeterminant 0.001; minFaceWeight 0.02; minVolRatio 0.01; minTriangleTwist -1; // Advanced nSmoothScale 4; errorReduction 0.75; } debug 0; mergeTolerance 1E-6; When i execute this i only obtain the meshing of the fluid inlet and outlet and of the solid from the exterior.Whereas inside the solid i don't have the geometry of the tube .Also when i open the boundary file it gives me all of the regions except the tube region inside of the solid. Does anyone have an idea what should i modify so i can mesh the internal tube if it is possible using snappyhexmesh?I also tried to take each region and insert them as stl files separatly like inlet,outlet,tube,box,heatflux.stl files and it is still gives me the same output of just the external meshed geometry.Really any help would be greatly appreciated. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh crashes on shell refinement | Ryôzanpaku Tiger | OpenFOAM Meshing & Mesh Conversion | 0 | November 11, 2023 09:39 |
[snappyHexMesh] SnappyHexMesh in parallel missing 0 folder | libindaniel2000 | OpenFOAM Meshing & Mesh Conversion | 0 | May 26, 2016 22:46 |
[snappyHexMesh] does SnappyHexMesh allows intersection of refinement regions | douglasx | OpenFOAM Meshing & Mesh Conversion | 2 | April 2, 2014 09:30 |
Missing contact regions in Fluent | cstebbings | FLUENT | 0 | February 24, 2014 14:05 |
[snappyHexMesh] snappyHexMesh layers at the corner missing | wc34071209 | OpenFOAM Meshing & Mesh Conversion | 3 | February 12, 2014 11:32 |