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 2048 Comments 1 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 1

Comments

  1. Old Comment
    Casinos and their games offer a thrilling mix of entertainment and potential financial gain, creating vibrant environments where excitement and chance coexist. Key attractions include classic table games like blackjack, roulette, and poker, each requiring a blend of luck and strategy. Slot machines add a colorful and energetic element to the casino floor, appealing with their dynamic themes and the allure of jackpot payouts. Modern casinos also embrace technology, featuring virtual reality experiences and digital versions of traditional games to attract a younger, tech-savvy audience.[URL="https://tp-play.in/"]TPplay[/URL] Beyond gaming, casinos are often part of larger resorts, providing luxurious accommodations, fine dining, and varied entertainment options, ensuring a comprehensive leisure experience for all guests.
    permalink
    Posted April 29, 2024 at 14:13 by Bealan Bealan is offline
 

All times are GMT -4. The time now is 07:59.