CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

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

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 19, 2016, 16:30
Default create two faceZones with single STL file - is it possible?
  #1
Member
 
Join Date: Mar 2009
Posts: 83
Rep Power: 10
aerogt3 is on a distinguished road
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);
            }
        }
        }
    }
aerogt3 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit OpenFOAM Paraview & paraFoam 60 September 18, 2013 03:23
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44


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