CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] create two faceZones with single STL file - is it possible? (https://www.cfd-online.com/Forums/openfoam-meshing/177718-create-two-facezones-single-stl-file-possible.html)

aerogt3 September 19, 2016 16:30

create two faceZones with single STL file - is it possible?
 
Hello all,


I am meshing an automotive radiator duct. Currently, I create a porous media cellZone with a single faceZone in snappyHexMesh, and then I use topoSet to split that faceZone into two faceZones: an inlet and outlet.

The geometry for the faceZones must be in one STL file, so that the volume for the cellZone is properly closed.

However, I would like to generate the inlet/outlet faceZones directly from the beginning, instead of running topoSet as an additional step. Does anyone know if this is possible? So far, all I can do is generate patches, which while convertible to a faceZone, do not allow the prism layers to travel through (something we need.)

My attempt:

Code:

geometry
{
    A_testcar_5050.stl
    {
        type distributedTriSurfaceMesh;
        distributionType independent;
        name A_testcar_5050;
        regions
        {
            WALL_L_POROUS_Radiator_8_8 { name wall_l_porous_radiator; }
            WALL_L_body_8_8 { name wall_l_body; }
            WALL_L_body_small_2_2 { name wall_l_body_small; }
        }
    }
    internal_fluid_l_porous_radiator.stl
    {
        type triSurfaceMesh;
        name internal_fluid_l_porous_radiator;
        regions
        {
            INTERFACE_L_POROUS_radiator_inlet { name internal_l_porous_radiator_inlet; }
            INTERFACE_L_POROUS_radiator_outlet { name internal_l_porous_radiator_outlet; }
        }
    }
};

// Castellated Mesh settings
castellatedMeshControls
{
......

    refinementSurfaces
    {
        A_testcar_5050
        {
            level (8 8);
            regions
            {
                WALL_L_POROUS_Radiator_8_8 { level (7 7); }
                WALL_L_body_8_8 { level (7 7); }
                WALL_L_body_small_2_2 { level (9 9); }
            }
        }
        internal_fluid_l_porous_radiator
        {
            level (8 8);
            cellZone fluid_l_porous_radiator;
            cellZoneInside inside;
        regions
        {
            INTERFACE_L_POROUS_radiator_inlet
            {
                type faceZone;
                faceZone internal_l_porous_radiator_inlet;
                faceType internal;
                level (8 8);
            }
            INTERFACE_L_POROUS_radiator_outlet
            {
                type faceZone;
                faceZone internal_l_porous_radiator_outlet;
                faceType internal;
                level (8 8);
            }
        }
        }
    }



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