CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   How to create a multi-region mesh? (https://www.cfd-online.com/Forums/openfoam-pre-processing/129435-how-create-multi-region-mesh.html)

samiam1000 February 5, 2014 04:36

How to create a multi-region mesh?
 
Dear All,

I am trying to run a case, from the mesh to the post-processing phase, using OpenFOAM. What I wanna do, now, is very simple:

1. I create a bigCube using blockMesh.
2. Inside this bigCube I am trying to insert a smallCube. Thanks to topoSet I can "select" the cells I am interested in. The point is that I would like to create a double-region domain. I mean: I wanna call "solid" the smallCube set and "fluid" the bigCube.

I have thought something about:
Code:

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

actions
(
    {
        name    smallCube;
        type    cellZoneSet;
        action  new;
        source        boxToCell;
        sourceInfo
        {
            box (0.8 0 0.1)(1.3 0.25 0.6);
        }
    }

);

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

But once I have the set, how can I make it be a region?

Thanks a lot,
Samuele

nimasam February 5, 2014 08:38

look at CHTmultiRegion test cases in OpenFOAM tutorial, you wiil find how define different zone
Quote:

tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeater/

samiam1000 February 5, 2014 08:51

Thank you very much. I'll investigate it.


All times are GMT -4. The time now is 03:38.