|
[Sponsors] |
[swak4Foam] Variable T_inf for convection problem in a pipe using groovyBC |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 4, 2013, 13:50 |
Variable T_inf for convection problem in a pipe using groovyBC
|
#1 |
Senior Member
|
Hi all,
I am trying to simulate a simple pipe with constant heat flux walls, which are cooled by fluid flow going through the pipe. Here is an image for better illustration: Here is what I am gonna do. For wall BC I want to use: Code:
dT/dn= (q-h*(T-T_inf))/(k_f) To calculate bulk temperature I want to use the average value of T as a variable of x (Length from the inlet). How can I calculate this average in each x and use it as T_inf? Is it possible to do this using groovyBC?
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
|
September 4, 2013, 15:08 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The first thing is that T_avg(s) is not really well defined after the pipe bend (BTW: convention is that x is a component of cartesian coordinates. The string length which you mean is s. At least the way I learned it). So the first thing would be to specify/calculate it for the whole geometry. Then you can calculate your T_avg(s) (for this there is actually a functionObject swakExpressionAverageDistribution in the development verson. But currently there is no way to feed that data back to your BC)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
September 4, 2013, 15:50 |
|
#3 | |
Senior Member
|
Quote:
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
||
September 4, 2013, 18:21 |
|
#4 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21 |
Why don't you use the turbulentHeatFluxTemperature boundary condition?
See also http://www.cfd-online.com/Forums/ope...mperature.html |
|
September 4, 2013, 19:10 |
|
#5 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
need help about double pipe heat exchanger with chtMultiRegionSimpleFoam | wuyangzhen | OpenFOAM | 10 | December 12, 2017 00:19 |
[swak4Foam] GroovyBC problem in the defining inlet velocity | iampolaris | OpenFOAM Community Contributions | 7 | October 18, 2014 09:25 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 20:09 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 09:11 |
fluid flow fundas | ram | Main CFD Forum | 5 | June 17, 2000 21:31 |