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

[Commercial meshers] Zero sized slave baffles

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2022, 10:40
Default Zero sized slave baffles
  #1
Senior Member
 
Nico
Join Date: Jan 2022
Location: Germany
Posts: 122
Rep Power: 6
Hr_kules is on a distinguished road
Hey everyone, i want to establish an procedure to import a mesh from fluent to openfoam and run an CHTmultiRegionFoam simulation on it.

For the sake of simplicity i am starting with three boxes. One is a solid that is connected to two fluid boxes. The mesh is conforming and was build in fluent.

When i run my current procedure i get zerosized slave baffles. However, for an CHTMultiRegionFoam simulation i reference the heat shell and tube heat exchanger example and want to use baffles and mapped walls.

The procedure looks like following:
fluentmeshtofoam -writeSets
createPatch -overwrite
topoSet -overwrite
createbaffles -overwrite
SplitmeshRegions -cellZones -overwrite

these are my dictionary files:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  9                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      createPatchDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

pointSync true;

patches
(
    {
        name interfaceFluidcoldPlate;

        patchInfo
        {
            type wall;
        }

        constructFrom patches;

        patches (fluidcold_to_plate);
    }
    {
        name interfaceFluidhotPlate;

        patchInfo
        {
            type wall;
        }

        constructFrom patches;

        patches (fluidhot_to_plate);
    }
    {
        name interfacePlateFluidcold;

        patchInfo
        {
            type wall;
        }

        constructFrom patches;

        patches (plate_to_fluidcold);
    }
    {
        name interfacePlateFluidhot;

        patchInfo
        {
            type wall;
        }

        constructFrom patches;

        patches (plate_to_fluidhot);
    }   
);

// ************************************************************************* //
topoSet:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  9                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
    //- Create solid zone
    {
        name plate;
        type cellZoneSet;
        action new;
        source setToCellZone;
        sourceInfo
        {
            set plate;
        }
    }
    //- Create fluid zone
    {
        name fluidcold;
        type cellZoneSet;
        action new;
        source setToCellZone;
        sourceInfo
        {
            set fluidcold;
        }
    }
    //- Create fluid zone
    {
        name fluidhot;
        type cellZoneSet;
        action new;
        source setToCellZone;
        sourceInfo
        {
            set fluidhot;
        }
    }
   
    {
        name    fluidcold_to_plate;
        type    faceSet;
        action  new;
        source  patchToFace;
        sourceInfo
        {
            name    interfaceFluidcoldPlate;
        }
    }
    {
         name fluidcold_to_plate;
         type faceZoneSet;
         action new;
         source setToFaceZone;
         sourceInfo
         {
            faceSet fluidcold_to_plate;
         }
        
    }
    
    {
        name    fluidhot_to_plate;
        type    faceSet;
        action  new;
        source  patchToFace;
        sourceInfo
        {
            name    interfaceFluidhotPlate;
        }
    }
    
    {
    name fluidhot_to_plate;
    type faceZoneSet;
    action new;
    source setToFaceZone;
    sourceInfo
    {
        faceSet fluidhot_to_plate;
    }
        
    }   
    

    
);

// ************************************************************************* //
createBaffles:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  9
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    object      createBafflesDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

internalFacesOnly false;

baffles
{
    baffles1
    {
        type        faceZone;
        zoneName    fluidhot_to_plate;

        patches
        {
            master
            {
                name        fluidhot_to_plate;
                type        mappedWall;
                sampleMode  nearestPatchFace;
                sampleRegion plate;
                samplePatch plate_to_fluidhot;
            }
            slave
            {
                name        plate_to_fluidhot;
                type        mappedWall;
                sampleMode  nearestPatchFace;
                sampleRegion fluidhot;
                samplePatch fluidhot_to_plate;
            }
        }
    }

    baffles2
    {
        type        faceZone;
        zoneName    fluidcold_to_plate;

        patches
        {
            master
            {
                name        fluidcold_to_plate;
                type        mappedWall;
                sampleMode  nearestPatchFace;
                sampleRegion plate;
                samplePatch plate_to_fluidcold;
            }
            slave
            {
                name        plate_to_fluidcold;
                type        mappedWall;
                sampleMode  nearestPatchFace;
                sampleRegion fluidcold;
                samplePatch fluidcold_to_plate;
            }
        }
    }
}


// ************************************************************************* //
and the resulting boundaries with the empty slave walls:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  9
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

13
(
    wallfluidhot
    {
        type            wall;
        inGroups        List<word> 1(wall);
        nFaces          3456;
        startFace       165744;
    }
    inlethot
    {
        type            patch;
        nFaces          576;
        startFace       169200;
    }
    outlethot
    {
        type            patch;
        nFaces          576;
        startFace       169776;
    }
    wallplate
    {
        type            wall;
        inGroups        List<word> 1(wall);
        nFaces          288;
        startFace       170352;
    }
    outletcold
    {
        type            patch;
        nFaces          576;
        startFace       170640;
    }
    inletcold
    {
        type            patch;
        nFaces          576;
        startFace       171216;
    }
    wallfluidcold
    {
        type            wall;
        inGroups        List<word> 1(wall);
        nFaces          3456;
        startFace       171792;
    }
    interfacePlateFluidcold
    {
        type            wall;
        inGroups        List<word> 1(wall);
        nFaces          1152;
        startFace       175248;
    }
    interfacePlateFluidhot
    {
        type            wall;
        inGroups        List<word> 1(wall);
        nFaces          1152;
        startFace       176400;
    }
    fluidhot_to_plate
    {
        type            mappedWall;
        inGroups        List<word>
3
(
wall
mappedPatch
baffles1
)
;
        nFaces          1152;
        startFace       177552;
        sampleMode      nearestPatchFace;
        sampleRegion    plate;
        samplePatch     plate_to_fluidhot;
    }
    plate_to_fluidhot
    {
        type            mappedWall;
        inGroups        List<word>
3
(
wall
mappedPatch
baffles1
)
;
        nFaces          0;
        startFace       178704;
        sampleMode      nearestPatchFace;
        sampleRegion    fluidhot;
        samplePatch     fluidhot_to_plate;
    }
    fluidcold_to_plate
    {
        type            mappedWall;
        inGroups        List<word>
3
(
wall
mappedPatch
baffles2
)
;
        nFaces          1152;
        startFace       178704;
        sampleMode      nearestPatchFace;
        sampleRegion    plate;
        samplePatch     plate_to_fluidcold;
    }
    plate_to_fluidcold
    {
        type            mappedWall;
        inGroups        List<word>
3
(
wall
mappedPatch
baffles2
)
;
        nFaces          0;
        startFace       179856;
        sampleMode      nearestPatchFace;
        sampleRegion    fluidcold;
        samplePatch     fluidcold_to_plate;
    }
)

// ************************************************************************* //
i can't find the error i made and any help would be appreciated!
Hr_kules is offline   Reply With Quote

Reply


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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
big difference between clockTime and executionTime LM4112 OpenFOAM Running, Solving & CFD 21 February 15, 2019 03:05
foam-extend-3.2 Pstream: "MPI_ABORT was invoked" craven.brent OpenFOAM Running, Solving & CFD 5 November 18, 2015 07:55
Integer stack memory insufficient mactech001 CFX 1 May 15, 2014 06:22
Conjugate heat transfer sunilpatil CFX 1 January 25, 2013 11:42


All times are GMT -4. The time now is 15:39.