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

chtMultiRegionSimpleFoam Boundary Conditions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 28, 2011, 22:19
Default chtMultiRegionSimpleFoam Boundary Conditions
  #1
New Member
 
Miguel Suarez
Join Date: Aug 2010
Location: El Paso Texas
Posts: 28
Rep Power: 6
masuarez is on a distinguished road
I am using Openfoam 1.7 chtMultiRegionSimpleFoam solver and I'm trying to get the same results as in Fluent. However, I'm getting different results (Pressure and Velocity).

My case is as follows:

Straight duct with a constant temperature bottom wall. the area of the inlet is 4x10-6 m^2. Reynolds no of 2000 (laminar flow). length of pipe is .25 m

The following are my boundary conditions

Quote:
0/u:
inlet
type flowRateInletVelocity
flowRate 7.28e-5
value uniform (0 0 0)

outlet
type outletInlet
outletValue uniform(0 0 0)
value uniform(0 0 0)
Quote:
0/prgh

inlet
type fixedValue
value $internalField

outlet
type outletInlet
value $internalField
outletValue $internalField
For my pressure boundary conditions I have tried several other ones such as :

fixedValue
zeroGradient
inletOutlet
etc

I have not tried freeStreamPressure because i Dont know if it applies in this case

Any help is greatly appreciated!!!! PLEASE HELP!!!!!!!!

Miguel
masuarez is offline   Reply With Quote

Old   June 30, 2011, 17:27
Default
  #2
New Member
 
Jean El-Hajal
Join Date: Jun 2010
Location: Ulm
Posts: 16
Rep Power: 6
Jean El-Hajal is on a distinguished road
Hi Miguel,

is there a big difference in the results calculated with Fluent and OpenFoam ? could you give us some figures or graph.

Could you post your case ? so we can have a look at it.

Jean
Jean El-Hajal is offline   Reply With Quote

Old   July 1, 2011, 13:54
Default
  #3
New Member
 
Miguel Suarez
Join Date: Aug 2010
Location: El Paso Texas
Posts: 28
Rep Power: 6
masuarez is on a distinguished road
Jean,

the difference in the pressure and velocities between Fluent and OpenFOAM are pretty significant. as you can see in the pictures, Fluent has an outlet velocity of approx 13 m/s, however, Openfoam has a velocity of < 2.5 m/s.

Obviously there is an issue with my boundary conditions that I have not been able to solve. Any help is greatly appreciated.

I attached my case (B.C., fv, etc).

Thank you.
Attached Images
File Type: jpg Absolute Pressure Fluent.jpg (34.5 KB, 26 views)
File Type: jpg Absolute Pressure.jpg (36.8 KB, 31 views)
File Type: jpg velocityOutlet.jpg (68.7 KB, 32 views)
File Type: jpg velocityOutletFluent.jpg (56.1 KB, 29 views)
Attached Files
File Type: zip 0.zip (5.3 KB, 16 views)
masuarez is offline   Reply With Quote

Old   July 4, 2011, 16:17
Default
  #4
New Member
 
Jean El-Hajal
Join Date: Jun 2010
Location: Ulm
Posts: 16
Rep Power: 6
Jean El-Hajal is on a distinguished road
Hi Miguel,

Try to change the boundary condition in 0/p_rgh like that:

inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 1.0e5;
}

Also the temperature are in Kelvin, check the temperature value !!!
jean
Jean El-Hajal is offline   Reply With Quote

Old   July 5, 2011, 16:26
Default
  #5
New Member
 
Miguel Suarez
Join Date: Aug 2010
Location: El Paso Texas
Posts: 28
Rep Power: 6
masuarez is on a distinguished road
j
Quote:
Originally Posted by Jean El-Hajal View Post
Hi Miguel,

Try to change the boundary condition in 0/p_rgh like that:

inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 1.0e5;
}

Also the temperature are in Kelvin, check the temperature value !!!
jean
I actually used the following boundary conditions for pressure:

Quote:
inlet
{
type mixed;
refValue uniform 1e5;
refGradient uniform 0;
valueFraction uniform .5;
}

outlet
{
type fixedValue;
value uniform 1e5;
}
and it is giving me better results (meaning outlet velocities higher than the ones at inlet)

regarding the Temperature... i made sure that the units were Kelvin.

as soon as I have consistent results with fluent I will post my case and my results

Thank you so much for your help.

Miguel
masuarez is offline   Reply With Quote

Old   July 26, 2011, 04:30
Default pressure outlet bc on chtMultiRegionSimpleFoam OF 1.6-x
  #6
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 12
maddalena is on a distinguished road
Hello all,
I am running a chtMultiRegionSimpleFoam case on OF 1.6-x. The geometry is quite simple: a pipe flow with air, used to cool some warm surrounding solids.
BC is more or less standard, however I have some doubt about the pressure outlet BC. I used:
- inlet: U fixedValue, p buoyantPressure;
- outlet: U zeroGradient; p fixedValue;
as made on the chtMultiRegionSimpleFoam tutorial, but I have high continuity errors:
Code:
time step continuity errors : sum local = 0.2007526, global = 0.004036046, cumulative = 0.220919
and in the end the solution diverges. I guess the problem is on pressure BC. Any suggestions on the subject?

mad
maddalena is offline   Reply With Quote

Old   July 26, 2011, 13:17
Default Pressure Outlet bc on OF 1.7-x
  #7
New Member
 
Miguel Suarez
Join Date: Aug 2010
Location: El Paso Texas
Posts: 28
Rep Power: 6
masuarez is on a distinguished road
Mad,

I have used the following boundary conditions for my pressure and velocity:

-inlet: U flowRateInletVelocity, p_rgh mixed (with value fraction = .5)
-outlet: U inletOutlet (or fluxCorrectedVelocity), p_rgh mixed (with value fraction = .5)

I have confirmed my results with FLUENT when my flow was laminar, but when i have turbulent flow, my results differ a little than FLUENT. They are not completely off, about 5 - 10 %.

I recommend that you look at

Free OpenFOAM CHT Report and Cases (No Catch!)

by m.nichols19. he has a pretty detailed case involving buoyantPressure boundary conditions.

Good luck and hopefully this helps.

Miguel
masuarez is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
symmetry boundary conditions in cfx lost.identity CFX 41 May 22, 2013 07:21
Impinging Jet Boundary Conditions Anindya Main CFD Forum 24 January 11, 2012 14:40
OpenFOAM Variable Velocity Boundary Conditions NickolasPl OpenFOAM Programming & Development 2 May 19, 2011 05:37
boundary conditions and mesh exporting vaina74 Open Source Meshers: Gmsh, Netgen, CGNS, ... 2 May 27, 2010 09:38
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


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