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/)
-   -   [Other] Modification of multi region heater tutorial geometry (https://www.cfd-online.com/Forums/openfoam-meshing/124208-modification-multi-region-heater-tutorial-geometry.html)

mukut September 30, 2013 02:48

Modification of multi region heater tutorial geometry
 
Hello foamers....in another subforum of openFoam, I have posted about my flow domain which is necessary to simulation flow induced by plasma actuator as bellow:
http://i44.tinypic.com/2gt6qkj.jpg

Some foamers suggested me to learn chtMultiRegionFoam tutorial....I have tried to modify a tutorial name "multiRegionFoam" as follows:

The top image is the actual geometry of multiRegionFoam tutorials in which solid regions are: T shape like heater, left solid and right solid; remaining top and bottom air are fluid.

I can easily modify the size of solid region without changing relative position and tutorial works fine. But when I tried to change relative positions of solid regions like bottom image, after running Allrun command in terminal....there is no output file at different timesteps. In paraFoam, new modified geometry is shown properly......

I have modified both topoSetDict and makeCellSets for for respective solid region geometry. What is the problem? Is there any other files in which I need to modify for required geometry????????

http://i42.tinypic.com/ou135s.jpg
Thanks in advance....

Here is the modified topoSetDict

Code:

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

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
    // Heater
    {
        name    heater;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {
            box (-100 0 -100 )(0 0.00999 100);
        }
    }
    {
        name    heater;
        type    cellSet;
        action  add;
        source  boxToCell;
        sourceInfo
        {
            box (0 0 -100)(100 0.00999 100);
        }
    }
    {
        name    heater;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        sourceInfo
        {
            set heater;          // name of cellSet
        }
    }

    // leftSolid
    {
        name    leftSolid;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {
            box (-100 -0.00999 -100 )(-0.01001 0 100);
        }
    }
    {
        name    leftSolid;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        sourceInfo
        {
            set leftSolid;
        }
    }

    // rightSolid
    {
        name    rightSolid;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {
            box (0.01001 -0.00999 -100 )(100 0 100);
        }
    }
    {
        name    rightSolid;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        sourceInfo
        {
            set rightSolid;
        }
    }

    // topAir
    {
        name    topAir;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {
            box (-100 0.00999 -100 )(100 100 100);
        }
    }
    {
        name    topAir;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        sourceInfo
        {
            set topAir;
        }
    }


    // bottomAir is all the other cells
    {
        name    bottomAir;
        type    cellZoneSet;
        action  clear;
    }
    {
        name    bottomAir;
        type    cellSet;
        action  add;
        source  cellToCell;
        sourceInfo
        {
            set heater;
        }
    }
    {
        name    bottomAir;
        type    cellSet;
        action  add;
        source  cellToCell;
        sourceInfo
        {
            set leftSolid;
        }
    }
    {
        name    bottomAir;
        type    cellSet;
        action  add;
        source  cellToCell;
        sourceInfo
        {
            set rightSolid;
        }
    }
    {
        name    bottomAir;
        type    cellSet;
        action  add;
        source  cellToCell;
        sourceInfo
        {
            set topAir;
        }
    }
    {
        name    bottomAir;
        type    cellSet;
        action  invert;
    }
    {
        name    bottomAir;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        sourceInfo
        {
            set bottomAir;
        }
    }
);

// ************************************************************************* //


zhengzh5 October 4, 2013 12:25

hey, off the top of my head, I have couple suggestions:

1. when you run Allrun command, it spits out some log files, open them and see where it stopped and what is it complaining about.

2. chtMultiRegionFoam requires a coupled boundary conditions (forgot what it's called, you can easily find it in the T file) between interfaces for heat transfer. When you change the relative layout of your geometry, you effectively changed the coupling between different regions/patches, so you need to go through the fields inside the initial time directory and correct for that if you haven't already.

do these and see what happens =)

good luck.

mukut October 4, 2013 20:59

Quote:

Originally Posted by zhengzh5 (Post 455080)
hey, off the top of my head, I have couple suggestions:

1. when you run Allrun command, it spits out some log files, open them and see where it stopped and what is it complaining about.

2. chtMultiRegionFoam requires a coupled boundary conditions (forgot what it's called, you can easily find it in the T file) between interfaces for heat transfer. When you change the relative layout of your geometry, you effectively changed the coupling between different regions/patches, so you need to go through the fields inside the initial time directory and correct for that if you haven't already.

do these and see what happens =)

good luck.

Thanks for your suggestion, I already changed the geometry according to my desired flow domain, but still same problem. I will follow your instruction soon and hope I will get some ingredients about the issue.
Best regard
Mukut


All times are GMT -4. The time now is 02:24.