CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

boundary condition on house chimney

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2022, 17:16
Default boundary condition on house chimney
  #1
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9
joshmccraney is on a distinguished road
Suppose I have a house with a slanted roof like most houses are, which I call "house". On the top of the house a chimney sits, which I call "chimney", though the chimney is lower than the peak of the house roof. I would like to mesh the house interior as walls and the chimney being an outflow boundary. My blockmesh looks like this
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.0                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.001;

//These vertices define the block below. It envelopes the stl files. The block can be even bigger than the stl files
//Watch out if the stl files are created in mm or m!

xmin 0;
xmax 15;
ymin -2;
ymax 30;
zmin 0;
zmax 160;

xcells 19;  // 11
ycells 39;  // 41
zcells 200; //128

vertices
(
    ($xmin $ymin $zmin)
    ($xmax $ymin $zmin)
    ($xmax $ymax $zmin)
    ($xmin $ymax $zmin)
    ($xmin $ymin $zmax)
    ($xmax $ymin $zmax)
    ($xmax $ymax $zmax)
    ($xmin $ymax $zmax)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) ($xcells $ycells $zcells) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
    house		//Adjust these settings according to symmetry patches. Currently none invoked
    {
        type patch;
        faces
        (
            (2 6 5 1)
            (0 3 2 1)
	    (4 5 6 7)
            (3 7 6 2)
            (1 5 4 0)
        );
    }
    chimney		//Adjust these settings according to symmetry patches. Currently none invoked
    {
        type patch;
        faces
        (
            (3 7 6 2)
        );
    }
    base		//Adjust these settings according to symmetry patches. Currently none invoked
    {
        type patch;
        faces
        (
            (1 5 4 0)
        );
    }
    symm_side		//Adjust these settings according to symmetry patches. Currently none invoked
    {
        type symmetry;
        faces
        (
            (0 4 7 3)
        );
    }
);

// ************************************************************************* //
But when executing I get the error
--> FOAM FATAL ERROR:
Trying to specify a boundary face 4(3 7 6 2) on the face on cell 0 which is either an internal face or already belongs to some other patch. This is face 0 of patch 1 named lid.

Any help is greatly appreciated!
joshmccraney is offline   Reply With Quote

Old   January 21, 2022, 18:20
Default
  #2
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9
joshmccraney is on a distinguished road
Nevermind, looks like I defined the same face twice.
joshmccraney 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Centrifugal fan j0hnny CFX 13 October 1, 2019 14:55
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
Accessing multiple boundary patches from a custom boundary condition file ripudaman OpenFOAM Programming & Development 0 October 22, 2014 19:34
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 05:13


All times are GMT -4. The time now is 04:43.