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/)
-   -   Creating outlet in a wall type boundary (https://www.cfd-online.com/Forums/openfoam-pre-processing/219533-creating-outlet-wall-type-boundary.html)

Owais Shabbir July 30, 2019 12:18

Creating outlet in a wall type boundary
 
2 Attachment(s)
Hi,

I want to make my 'outlet' into a wall and create an box shaped outlet through the original outlet of my blockMesh but I am not sure where to start this from. I am new with OF6 and CFD and i got confused when I tried approaching the utilities

I looked at createPatch and createBaffles.

The description says the it creates a set out of faces, but will I not need cells instead of faces from the origianl outlet to become and small outlets?

I am attachning pictures so its more clear.
I have an outlet and I want to convert it to a wall and make smaller outlets out of it as shown in the second picture.

my blockMeshDict looks like this:
Code:

/*--------------------------------*- C++ -*----------------------------------*\
  =========                |
  \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox
  \\    /  O peration    | Website:  https://openfoam.org
    \\  /    A nd          | Version:  6
    \\/    M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 1;
vertices
(
    (-0.03 -0.005 -0.18)
    (0.7 -0.005 -0.18)
    (0.7 0.57 -0.18)
    (-0.03 0.57 -0.18)
    (-0.03 -0.005  0.0169)
    (0.7 -0.005  0.0169)
    (0.7 0.57  0.0169)
    (-0.03 0.57  0.0169)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (60 60 40) simpleGrading (1 1 1)
);
edges
(
);
boundary
(
    walls
    {
        type wall;
        faces
        (
            (3 7 6 2)
  (1 5 4 0)
  (0 3 2 1)
  (4 5 6 7)
   
        );
    }
    inlet
    {
        type patch;
        faces
        (
            (0 4 7 3)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (2 6 5 1)
        );
    }
   
);
mergePatchPairs
(
);
// ************************************************************************* //

Thanks
OS

clapointe July 30, 2019 18:03

Yes, you can do this with createPatch. First, make the "outlet" patch in your blockMeshDict type wall. Then, use topoSet to select a faceSet of cell faces on the old "outlet" patch (now a wall) and createPatch to make a patch from this faceSet. The fireFoam tutorial smallPoolFire3D is a good example of this.

Caelan

Owais Shabbir July 31, 2019 03:11

Hi Clapointe,

Thanks for a quick answer.
Will this affect later, if I have to import a .stl file in my domain?

Best Regard,
OS

clapointe July 31, 2019 09:41

Import how? Like with snappyHexMesh? If so, it should be fine.

Caelan

Owais Shabbir July 31, 2019 09:44

Update:
 
Quick update:
the patches worked beautifully.
Yes i meant through via snappyHexMesh.



Thanks for you help Caelan.


BR

Owais


All times are GMT -4. The time now is 13:23.