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/)
-   -   Inlet slot for rooms (https://www.cfd-online.com/Forums/openfoam-pre-processing/62164-inlet-slot-rooms.html)

myting September 20, 2006 01:58

Hi, at first sorry for my b
 
Hi,

at first sorry for my bad english...

However, I want to use OpenFOAM for simulation. I am engineer for HVAC and I am to interesset in simulation for airflows in building rooms but my experiment crashed in OpenFOAM everytime :-(

I make a room with one block and every side is a wall function. Furthermore I make two blocks on the side of a wall. One block is for the inlet slot and the other for the outlet slot. My question is: When I make the block for inlet slot I am defining one patch of the block as the inlet patch and the other 5 side are walls? If am not defining the other side, the simulation stops because of "empty patches".

Maybe can somebody give me excample for simulation inlet slot in 3D rooms? It whould help me.

Thanks
Myting

atzaru September 20, 2006 05:43

Hi Myting Post the case or
 
Hi Myting

Post the case or send it to me by email and i will have a look, i think the geometry is somehow wrong

atzaru@gmail.com


atzaru

atzaru September 20, 2006 05:45

Hi Myting, Please post you
 
Hi Myting,

Please post your case or send it to me by email and i will have a look

atzaru at gmail.com

Atzaru

myting September 21, 2006 09:42

Hi, my case: /*---------
 
Hi,

my case:

/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.3 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

// FoamX Case Dictionary.

FoamFile
{
version 2.0;
format ascii;

root "/home/cfd1/OpenFOAM/cfd1-1.3/run/tutorials/buoyantSimpleFoam";
case "office";
instance "constant/polyMesh";
local "";

class dictionary;
object blockMeshDict;
}

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

arguments "/home/cfd1/OpenFOAM/cfd1-1.3/run/tutorials/buoyantSimpleFoam/office" off;

convertToMeters 1;

vertices
(
(0 0 0)
(10 0 0)
(10 5 0)
(0 5 0)
(0 0 10)
(10 0 10)
(10 5 10)
(0 5 10)
(2 4 0)
(3 4 0)
(3 4.2 0)
(2 4.2 0)
(2 4 0.1)
(3 4 0.1)
(3 4.2 0.1)
(2 4.2 0.1)
(7 4 0)
(8 4 0)
(8 4.2 0)
(7 4.2 0)
(7 4 0.1)
(8 4 0.1)
(8 4.2 0.1)
(7 4.2 0.1)
);

blocks
(
hex (0 1 2 3 4 5 6 7) (40 40 40) simpleGrading (1 1 1)
hex (8 9 10 11 12 13 14 15) (20 20 20) simpleGrading (1 1 1)
hex (16 17 18 19 20 21 22 23) (20 20 20) simpleGrading (1 1 1)
);

edges
(
);

patches
(
wall floor
(
(1 5 4 0)
)
wall ceiling
(
(3 7 6 2)
)
wall fixedWalls
(
(0 4 7 3)
(2 6 5 1)
(0 3 2 1)
(4 5 6 7)
)
patch inlet
(
(12 13 14 15)
)
patch fixedWallsInlet
(
(8 11 10 9)
(9 10 14 13)
(15 11 8 12)
(14 10 11 15)
(13 12 8 9)
)
patch Outlet
(
(20 21 22 23)
)
patch fixedWallsOutlet
(
(16 19 18 17)
(17 18 22 21)
(23 19 16 20)
(22 18 19 23)
(17 21 20 16)
)
);

mergePatchPairs
(
);


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

amagda September 24, 2006 15:55

1- Actually it seems to me you
 
1- Actually it seems to me you describe in a wrong way your geometry. First u make a room (the first block). After that u make two separate blocks for inlet and outlet. The inlet-outlet ports should be located on the face of the first block (patches).

2- As a general rule the blocks should share common faces, yours are not connected what so ever


adi

myting September 25, 2006 01:23

Hi, thanks for you answer.
 
Hi,

thanks for you answer. Can you give me an example? It whould be nice for me.

So, I don't need the other blocks for Inlet and Outletslot? It is easier to make only a patch (face) on one site of the roomwall?
How can I connected the block with each other? I thought the Mesher do this kind of job???

Thank you
Myting

amagda September 25, 2006 02:51

ok i have a small tutorial
 
ok

i have a small tutorial with some cases i presented in our department... i will post them today or tomorrow

adrian

amagda September 25, 2006 13:19

Hi You can download the tut
 
Hi

You can download the tutorial here

http://www.schunternet.de/~amagda/cf...M_tutorial.odt

Any comments, corrections, new cases will be welcome, i am sure it can be made a lot better.

Adi

myting September 26, 2006 02:46

Thank you very much for your h
 
Thank you very much for your help...

Myting

myting September 28, 2006 01:30

Hi Adrian, I think, the las
 
Hi Adrian,

I think, the last case in your tutorial is not complete. The "blockMeshDict" has not enough vertex to make all blocks? Can you check your file please? Thank you very much...

Myting

amagda September 28, 2006 16:01

Yup i just corrected ad
 
Yup

i just corrected

adi

myting October 1, 2006 08:02

Hi Adrian, I tried your las
 
Hi Adrian,

I tried your last case but it is impossible. I don't know why, but I got "nan" in solution always. Can you send me your full case files?

Thank you.
Myting


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