CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

natural convection in square cavity having inlet and outlet

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2019, 23:26
Default natural convection in square cavity having inlet and outlet
  #1
New Member
 
sujeet toppo
Join Date: Oct 2019
Location: india
Posts: 10
Rep Power: 6
sujeet is on a distinguished road
I'm trying to run natural convection having one inlet, one outlet and one isothermal wall. having difficulty for the U parameter. I'm attaching the boundary condition file. please help me as it is for my college project and i'm new to openfoam. i'm using buoyantsimplefoam for the solver. for U i have to give the internal field value or else the solver get failed.

blockMesh file.
convertToMeters 1;

vertices
(
(0 0 0) //0
(4 0 0) //1
(0 1 0) //2
(4 1 0) //3
(0 4 0) //4
(4 4 0) //5
(0 5 0) //6
(4 5 0) //7
(0 0 1) //8
(4 0 1) //9
(0 1 1) //10
(4 1 1) //11
(0 4 1) //12
(4 4 1) //13
(0 5 1) //14
(4 5 1) //15
);

blocks
(
hex (0 1 3 2 8 9 11 10) (40 10 1) simpleGrading (1 1 1)
hex (2 3 5 4 10 11 13 12) (40 30 1) simpleGrading (1 1 1)
hex (4 5 7 6 12 13 15 14) (40 10 1) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
top
{
type wall;
faces
(
(6 14 15 7)
);
}
isothermal
{
type wall;
faces
(
(0 1 9 8)
);
}
inlet
{
type patch;
faces
(
(0 8 10 2)
);
}
outlet
{
type patch;
faces
(
(5 7 15 13)
);
}
rightSidewall
{
type wall;
faces
(
(2 10 12 4)
(4 12 14 6)
);
}
sidewall
{
type wall;
faces
(
(1 3 11 9)
(3 5 13 11)
);
}
);

mergePatchPairs
(
);


ALPHA FILE.

dimensions [1 -1 -1 0 0 0 0];

internalField uniform 0;

boundaryField
{
top
{
type compressible::alphatJayatillekeWallFunction;
Prt 0.71;
value $internalField;
}

isothermal
{
type compressible::alphatJayatillekeWallFunction;
Prt 0.71;
value $internalField;
}
inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type zeroGradient;
}

rightSidewall
{
type compressible::alphatJayatillekeWallFunction;
Prt 0.71;
value $internalField;
}

sidewall
{
type compressible::alphatJayatillekeWallFunction;
Prt 0.71;
value $internalField;
}

frontandback
{
type empty;
}
}

EPSILON FILE.

dimensions [0 2 -3 0 0 0 0];

internalField uniform 4.312e-4;

boundaryField
{
top
{
type epsilonWallFunction;
value uniform 4.312e-4;
}

isothermal
{
type epsilonWallFunction;
value uniform 4.312e-4;
}
inlet
{
type fixedValue;
value uniform 4.312e-4;
}

outlet
{
type zeroGradient;
}

rightSidewall
{
type epsilonWallFunction;
value uniform 4.312e-4;
}

sidewall
{
type epsilonWallFunction;
value uniform 4.312e-4;
}

frontandback
{
type empty;
}
}

K FILE.
dimensions [0 2 -2 0 0 0 0];

internalField uniform 0.015;

boundaryField
{
top
{
type kqRWallFunction;
value uniform 0.015;
}

isothermal
{
type kqRWallFunction;
value uniform 0.015;
}

inlet
{
type fixedValue;
value uniform 0.015;
}
outlet
{
type zeroGradient;
}

rightSidewall
{
type kqRWallFunction;
value uniform 0.015;
}

sidewall
{
type kqRWallFunction;
value uniform 0.015;
}

frontandback
{
type empty;
}
}

NUT FILE.

dimensions [0 2 -1 0 0 0 0];

internalField uniform 0;

boundaryField
{
top
{
type nutkWallFunction;
value uniform 0;
}

isothermal
{
type nutkWallFunction;
value uniform 0;
}

inlet
{
type calculated;
value uniform 0;
}

outlet
{
type zeroGradient;
}

rightSidewall
{
type nutkWallFunction;
value uniform 0;
}

sidewall
{
type nutkWallFunction;
value uniform 0;
}

frontandback
{
type empty;
}
}

P FILE.

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 101325;

boundaryField
{
top
{
type zeroGradient;
}

isothermal
{
type zeroGradient;
}

inlet
{
type zeroGradient;
}

outlet
{
type zeroGradient;
}

rightSidewall
{
type zeroGradient;
}

sidewall
{
type zeroGradient;
}

frontandback
{
type empty;
}
}

P_RGH FILE.
dimensions [1 -1 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
top
{
type fixedFluxPressure;
value uniform 0;
}

isothermal
{
type fixedFluxPressure;
value uniform 0;
}

inlet
{
type fixedFluxPressure;
value uniform 0;
}

outlet
{
type zeroGradient;
}

rightSidewall
{
type fixedFluxPressure;
value uniform 0;
}

sidewall
{
type fixedFluxPressure;
value uniform 0;
}

frontandback
{
type empty;
}

T FILE

internalField uniform 300;

boundaryField
{
top
{
type fixedValue;
value $internalField;
}

isothermal
{
type fixedValue;
value uniform 400;
}

inlet
{
type fixedValue;
value uniform 300;
}

outlet
{
type zeroGradient;
}

rightSidewall
{
type fixedValue;
value $internalField;
}

sidewall
{
type fixedValue;
value $internalField;
}

frontandback
{
type empty;
}
}

U FILE.
dimensions [0 1 -1 0 0 0 0];

internalField uniform (0.5 0 0);

boundaryField
{
top
{
type noSlip;
}

isothermal
{
type noSlip;
}

inlet
{
type inletOutlet;
inletValue uniform (0.5 0 0);
value $internalField;
}

outlet
{
type zeroGradient;
}

rightSidewall
{
type noSlip;
}

sidewall
{
type noSlip;
}

frontandback
{
type empty;
}
}
sujeet is offline   Reply With Quote

Old   November 2, 2019, 02:17
Default
  #2
New Member
 
sujeet toppo
Join Date: Oct 2019
Location: india
Posts: 10
Rep Power: 6
sujeet is on a distinguished road
Hey anyone find the solution for my problem. Please rply as im waiting for it.
sujeet is offline   Reply With Quote

Reply

Tags
inlet outlet, natural convection, square cavity

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Want Impeller Driven Fluid Flow: What Inlet and Outlet BC to use for Centrifugal Pump Zev Xavier FLUENT 3 May 9, 2016 06:42
Pressure inlet vs outlet position, transient, time dependent pressure and gravity silent2608 FLUENT 0 February 6, 2016 10:19
CFX Simple valve model, inlet and outlet conditions 749604 CFX 24 August 11, 2014 18:51
UDF profile: Fluent method for coupling inlet and outlet I-mech Fluent UDF and Scheme Programming 0 May 10, 2014 10:36
steam flow in a pipe driven by a pressure gradient between inlet and outlet SalvoCalvo COMSOL 0 March 11, 2010 06:52


All times are GMT -4. The time now is 01:06.