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

How to implement convection boundary condition

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 1, 2009, 09:08
Default Dear FOAMers: Happy New Yea
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Dear FOAMers:

Happy New Year!

I would like to implement a new BC at the wall (no solid elements) of a fluid domain.

I would like to read in convection coefficient (h) and free stream temperature (Tinf), then

h(Twall - Tinf) = - K (DT/Dn)

Currently, I am thinking using

gradient() = -h/K (Twall - Tinf) here Twall is explicit.

Is this reasonable? Or, is there a better way to do this?

Thanks!

Pei
hsieh is offline   Reply With Quote

Old   June 30, 2010, 03:22
Default
  #2
Senior Member
 
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 8
isabel is on a distinguished road
Hello hsieh,

Did you get to implement a convective boundary contidion? I need to implement it too and maybe you found information about that.
isabel is offline   Reply With Quote

Old   June 30, 2010, 04:45
Default
  #3
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 8
herbert is on a distinguished road
Hi Isabel,

it can be also done implicit, when the conductivty k is present as a field in the solver. You can take a look at the wallHeatTransfer-BC defined in thermophysicalModels/basic/derivedFvPatchFields.

Regards,
Stefan
herbert is offline   Reply With Quote

Old   June 30, 2010, 05:57
Default
  #4
Senior Member
 
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 8
isabel is on a distinguished road
Hello Stefan,

I have implemented the boundary condition al follows:


boundaryField
{
ABAJO
{
type wallHeatTransfer;
T_inf 300;
h 5;
}




but when I execute the solver I have the following error:



Cannot find 'value' entry on patch ABAJO of field T in file "/home/isabel/OpenFOAM/isabel-1.5/tutorials/zz/0/T"
which is required to set the values of the generic patch field.
(Actual type wallHeatTransfer)

Please add the 'value' entry to the write function of the user-defined boundary-condition
or link the boundary-condition into libfoamUtil.so

file: /home/isabel/OpenFOAM/isabel-1.5/tutorials/zz/0/T::ABAJO from line 20030 to line 20032.

From function genericFvPatchField<Type>::genericFvPatchField(con st fvPatch&, const Field<Type>&, const dictionary&)
in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 7
isabel is offline   Reply With Quote

Old   June 30, 2010, 06:36
Default
  #5
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 8
herbert is on a distinguished road
Dear Isabel,

I fear you misunderstood me. The wallHeatTransfer-BC itself can only be used together with the basic thermophysical models. I just wanted to show you a guideline how to implement a convective boundary. But you might have to do some changes to make it run with your solver.

Regards,
Stefan
herbert is offline   Reply With Quote

Old   December 31, 2010, 12:00
Default
  #6
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
hi isabel
could you implement the conductive heat transfer boundary condition finally?
nimasam is offline   Reply With Quote

Old   January 4, 2011, 07:49
Default
  #7
Senior Member
 
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 8
isabel is on a distinguished road
Hello nima,

Sorry but unfortunately I was not able to implement the convection boundary condition.
isabel is offline   Reply With Quote

Old   January 10, 2012, 08:48
Default
  #8
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 105
Rep Power: 6
aerothermal is on a distinguished road
did you try to include?

boundaryField
{
ABAJO
{
type wallHeatTransfer;
T_inf 300;
h 5;
value 300;
}
}

The solver needs an initial value for time=0
aerothermal 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
how to implement periodic boundary conditions? kat Main CFD Forum 10 July 28, 2011 16:15
Natural convection - Inlet boundary condition max91 CFX 1 July 29, 2008 20:28
implement tangential boundary condition in simple jhuang Main CFD Forum 4 July 10, 2006 04:01
How to implement H1 Boundary Condition in Fluent? Jake FLUENT 0 September 29, 2003 11:41
How to implement B.C. for outlet boundary? Hai-Wen Ge Main CFD Forum 1 November 3, 2001 09:50


All times are GMT -4. The time now is 02:20.