|
[Sponsors] | |||||
How to implement convection boundary condition |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 19 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 18 ![]() |
Hello hsieh,
Did you get to implement a convective boundary contidion? I need to implement it too and maybe you found information about that. |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 19 ![]() |
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 |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 18 ![]() |
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 |
|
|
|
|
|
|
|
|
#5 |
|
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 19 ![]() |
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 |
|
|
|
|
|
|
|
|
#7 |
|
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 18 ![]() |
Hello nima,
Sorry but unfortunately I was not able to implement the convection boundary condition. |
|
|
|
|
|
|
|
|
#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 |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |