|
[Sponsors] |
How to implement convection boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 1, 2009, 09:08 |
Dear FOAMers:
Happy New Yea
|
#1 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
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 |
|
June 30, 2010, 04:22 |
|
#2 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17 |
Hello hsieh,
Did you get to implement a convective boundary contidion? I need to implement it too and maybe you found information about that. |
|
June 30, 2010, 05:45 |
|
#3 |
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 18 |
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 |
|
June 30, 2010, 06:57 |
|
#4 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17 |
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 |
|
June 30, 2010, 07:36 |
|
#5 |
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 18 |
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 |
|
January 4, 2011, 07:49 |
|
#7 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17 |
Hello nima,
Sorry but unfortunately I was not able to implement the convection boundary condition. |
|
January 10, 2012, 08:48 |
|
#8 |
Senior Member
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to implement periodic boundary conditions? | kat | Main CFD Forum | 10 | July 28, 2011 17:15 |
Natural convection - Inlet boundary condition | max91 | CFX | 1 | July 29, 2008 21:28 |
implement tangential boundary condition in simple | jhuang | Main CFD Forum | 4 | July 10, 2006 05:01 |
How to implement H1 Boundary Condition in Fluent? | Jake | FLUENT | 0 | September 29, 2003 12:41 |
How to implement B.C. for outlet boundary? | Hai-Wen Ge | Main CFD Forum | 1 | November 3, 2001 09:50 |