CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Baffles01 - createPatch & createBaffle

Register Blogs Members List Search Today's Posts Mark Forums Read

Rate this Entry

Baffles01 - createPatch & createBaffle

Posted July 21, 2018 at 11:48 by student666
Updated September 22, 2018 at 12:52 by student666

Objective: test cases for using following dicts:
  • createPatchDict
  • createBafflesDict

Preliminary steps:
  1. Run the Salome script for the geometry and surface mesh generation
  2. Export walls, inlet outlet inside cad/stl as STL (ASCII)
  3. Run the utility buildRegionSTL, it will create the constant/triSurface folder with buildRegionSTL.stl
  4. 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 {    .....     }
************Set up the SHM dict file for create baffles (highlights) ********
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 };
**************createPatchDict set up*********************
Code:
pointSync true;//false;

// Patches to create.
patches
(
    {
        name baffle;
        patchInfo {type baffle;}
        constructFrom patches;
        patches (interna interna_slave);
    }
);
**************createBaffleDict set up*********************
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)
Posted in Pre-processing
Views 264 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 18:32.