CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] 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 Search this Thread 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: 90
Rep Power: 17
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X gschaider OpenFOAM Installation 136 October 10, 2017 17:25
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


All times are GMT -4. The time now is 01:47.