Urgent
Hello all,
I am new to OpenFOAM, I am trying to generate mesh using snappyHexMesh. I realised that castellated mesh is not working properly. If I keep it ON or OFF; meshing are still same. Can you help me what is wrong in it?? Also, if i increase level of refinement, there is error, and the meshing aborted. refinementSurfaces { hull { level (2 2); } This is my SHM code- #includeEtc "caseDicts/mesh/generation/snappyHexMeshDict.cfg" castellatedMesh on; snap on; addLayers on; geometry { hull { type triSurfaceMesh; file "hull.stl"; patchInfo { type wall; } } }; castellatedMeshControls { features ( { file "hull.eMesh"; level 6; } ); refinementSurfaces { hull { level (2 2); } resolveFeatureAngle 60; } refinementRegions { //inside , outside , distance CAD { mode inside; levels ((1E15 5)); } } locationInMesh (1.5 1 0); // Offset from (0 0 0) to avoid // coinciding with face or edge //nCellsBetweenLevels 3; } snapControls { // explicitFeatureSnap true; // implicitFeatureSnap false; // by default } addLayersControls { layers { "hull.*" { nSurfaceLayers 6; } // top // { // nSurfaceLayers 5; // { } relativeSizes true; // false, usually with firstLayerThickness expansionRatio 1.2; finalLayerThickness 0.002; minThickness 1e-4; // firstLayerThickness 0.01; // maxThicknessToMedialRatio 0.6; } meshQualityControls { minTetQuality -1e+30; } writeFlags ( // scalarLevels layerSets layerFields ); mergeTolerance 1e-6; // ************************************************** *********************** // |
Are you running snappyHexMesh -overwrite?
snappyHexMesh creates different mesh in idfferent timestep (folder), 0 (castelled), 1 (snap), 2 (boundary layer). You have to open in paraview e move with the timestep. Otherwise, you can run snappyHexMesh -overwrite and snappy will create the mesh in the normal folder |
Quote:
Thanks for your prompt reply. I did not use snappyHexMesh -overwrite, I would use it and see . Thank you so much. |
Carlo_P,
Using snappyHexMesh -overwrite worked. Thank you :) |
Great!
If you want to add a reputation point, I will appreciate :):):) |
All times are GMT -4. The time now is 08:54. |