Baffles01 - createPatch & createBaffle
Tags internal faces, openfoam, pre processing
Objective: test cases for using following dicts:
Preliminary steps:
************Set up the SHM dict file for create Patch (highlights) ********
************Set up the SHM dict file for create baffles (highlights) ********
**************createPatchDict set up*********************
**************createBaffleDict set up*********************
- createPatchDict
- createBafflesDict
Preliminary steps:
- Run the Salome script for the geometry and surface mesh generation
- Export walls, inlet outlet inside cad/stl as STL (ASCII)
- Run the utility buildRegionSTL, it will create the constant/triSurface folder with buildRegionSTL.stl
- Export the interna mesh as interna.stl inside constant/triSurface
************Set up the SHM dict file for create Patch (highlights) ********
Code:
geometry { "regionSTL.stl" { type triSurfaceMesh; name regionSTL; regions { inlet { name inlet; } outlet { name outlet; } walls { name walls; } } } "interna.stl" { type triSurfaceMesh; name interna; } }; castellatedMeshControls { .... refinementSurfaces { regionSTL { level (0 0); regions { inlet { level (1 1); patchInfo {type patch;}}; outlet { level (1 1); patchInfo {type patch;}}; } } interna { level (3 3); faceType baffle; faceZone interna; } } .... allowFreeStandingZoneFaces true; } snapControls { ..... } addLayersControls { ..... } meshQualityControls { ..... }
Code:
geometry { same as above }; castellatedMeshControls { .... refinementSurfaces { same as above interna { level (3 3); faceZone interna; } } .... allowFreeStandingZoneFaces true; } snapControls { same as above }; addLayersControls { same as above }; meshQualityControls { same as above };
Code:
pointSync true;//false; // Patches to create. patches ( { name baffle; patchInfo {type baffle;} constructFrom patches; patches (interna interna_slave); } );
Code:
pointSync true;//false; // Patches to create. internalFacesOnly true; baffles { baffle1 { //- Use surface to select faces and orientation. type faceZone; zoneName interna; patchPairs { type wall; patchFields { U { type fixedValue; value uniform (0 0 0); } } } } }
Code:
blockMesh surfaceFeatureExtract -overite snappyHexMesh -overwrite createPatch -overwrite pyFoamPlotRunner.py simpleFoam (you have to install pyFoam)
Code:
blockMesh surfaceFeatureExtract -overite snappyHexMesh -overwrite createBaffles -overwrite pyFoamPlotRunner.py simpleFoam (you have to install pyFoam)
Total Comments 0