|
[Sponsors] |
January 23, 2014, 04:17 |
external wall heat transfer
|
#1 |
New Member
ashwin
Join Date: Jul 2012
Location: erlangen
Posts: 26
Rep Power: 14 |
Hello,
I am actually trying to implement a boundary condition with heat transfer through the external wall. The equation is Code:
Tw=(Tair-(alphain+(l/d)+alphaout)(Tair-Tinf))/alphain where Tw = wall temperature Tair = air temperature (calculated from the solver) alphain = heat transfer coefficient on the inside of the wall( calculated from the solver) l= thermal conductivity; d= virtual wall thickness; alphaout=heat transfer coefficient on the outside of the wall Tinf= outside temperatue Has anybody got any idea on how to implement this BC using groovy? with alphain and Tair generating from the solver. Till now I have tried something like this: Code:
wand2 { type groovyBC; value uniform 293.15; fractionExpression "0"; variables "alphaa=20;Tinf=300;d=0.015;l=23;Tw=(Tair-(alphain+(l/d)+alphaout)(Tair-Tinf))/alphain"; timelines ( ); } which does'nt work and gives me an error like this Code:
--> FOAM FATAL ERROR: Parser Error for driver PatchValueExpressionDriver at "1.30" :"syntax error, unexpected '('" "(Tair-(alphaa+(l/d)+alphaout)(Tair-Tinf))/alphaa" ^ -------------------------------| Context of the error: - From dictionary: /home/ashwin/Desktop/wallbc/0/T.boundaryField.wand2 Evaluating expression "(Tair-(alphaa+(l/d)+alphaout)(Tair-Tinf))/alphaa" From function parsingValue in file lnInclude/CommonValueExpressionDriverI.H at line 1081. FOAM exiting I am using buoyantSimpleFoam Solver. I have no idea on how to generate the Tair and heat transfer coefficient from the solver. I hope somebody here has an idea about it. Regards Ashwin Last edited by ashghan; January 24, 2014 at 06:07. Reason: checked on how to post a thread :) |
|
January 29, 2014, 07:52 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi Ashwin,
hmmm your problem seems "easy". First - the solver calculates Alpha (in the air Domain) and you will get the temperature of the wall. You want to extend the wall with an thickness of "l" to simulate a pipe or sth like that and the heat Transfer from the pipe to the outer fluid (i think air). So you will do a fluid - solid - fluid Simulation. a) you can do it with chtMultiRegion b) you can build your own BC - as you tried In your case (b) you made some mistakes. 1. you do not calculate the heat Transfer from fluid to solid surface - that do the solver. Therefor you do not Need alphain. 2. Tair is not a OpenFOAM variable. I think you have to use "T" or "T()" instead. 3. I did not get your Point with Tw, Tair, Tinf. What do you want to achive? In my opinion you Need: - conductivity - Tinf - Thickness Any questions? Regards Tobi |
|
January 29, 2014, 08:04 |
|
#3 |
New Member
ashwin
Join Date: Jul 2012
Location: erlangen
Posts: 26
Rep Power: 14 |
Hello Tobias,
First of All, Thank you for the reply. Yeah I need conductivity, Thickness, The outside wall temperature = Tinf and the heat transfer coefficient on the outside = alphaout as a user input to calculate the Tw= wall temperature on the inside. I am applying this to a Normal wall(with a thickness d) in a room, to calculate the inside wall temperature. Regards Ashwin |
|
January 29, 2014, 08:29 |
|
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
I think you're trying to apply a mixedBC / Robin boundary condition: http://www.cfd-online.com/Forums/ope...acianfoam.html
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
January 29, 2014, 10:45 |
|
#5 | |
New Member
ashwin
Join Date: Jul 2012
Location: erlangen
Posts: 26
Rep Power: 14 |
Quote:
I am trying to do something similar to the external wall heat flux. Regards Ashwin |
||
January 29, 2014, 16:09 |
|
#6 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi Ashwin,
ähm ... hmmm i am a bit confused Just to clear my mind. You want to bring heat energy into your system ? Well alphaout you have to define yourself |
|
January 29, 2014, 17:23 |
|
#7 |
New Member
ashwin
Join Date: Jul 2012
Location: erlangen
Posts: 26
Rep Power: 14 |
Hello Tobias,
Yes I am bringing the heat Energy from outside the system and yeah I give alphaout, conductivity, thickness and outside temperature as a user input. The alphain and Tair are derived from the solver. So when I use a Value expression like Code:
Tw=(T-(alpha+(l/d)+alphaout)(T-Tinf))/alpha http://www.flickr.com/photos/115947529@N08/12211738076/ |
|
January 29, 2014, 18:03 |
|
#8 | |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Quote:
Hi you have a logical mistake. You do not need Tw ... Tw is calculated from the solver! Regards Tobi |
||
January 30, 2014, 04:43 |
|
#9 | |
New Member
ashwin
Join Date: Jul 2012
Location: erlangen
Posts: 26
Rep Power: 14 |
Quote:
Now I am using this piece of code Code:
wand2 { type groovyBC; value uniform 293.15; variables "alphaout=20;Tinf=300;d=0.05;l=0.05;"; Value Expression "(T-(alpha+(l/d)+alphaout)*(T-Tinf))/alpha"; timelines (); } Code:
#0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::incompressiblePerfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::calculate() at ??:? #4 Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::incompressiblePerfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::correct() at ??:? #5 at ??:? #6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #7 at ??:? Floating point exception (core dumped) Regards Ashwin |
||
January 30, 2014, 05:45 |
|
#10 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
hello,
Why you don't use the "externalWallHeatFluxTemperature" BC ? regards, olivier |
|
January 30, 2014, 05:49 |
|
#11 |
New Member
ashwin
Join Date: Jul 2012
Location: erlangen
Posts: 26
Rep Power: 14 |
||
January 30, 2014, 06:18 |
|
#12 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
hello,
If something is wrong with "externealWallHeatFluxTemperature", you may report as a bug. This will help all OF user, including you. If you use use groovyBC, you may follow the advice from Akidess: Code:
type groovyBC; value uniform 293.15; variables "alphaout=20;Tinf=300;d=0.05;l=0.05;alphawall=l/d;K=DT*rho*Cp;htot=alphaout+alphawall;"; valueExpression "Tinf"; fractionExpression "1.0/(1.0 + K/(mag(delta())*htot))"; regards, olivier |
|
January 30, 2014, 06:34 |
|
#13 |
New Member
ashwin
Join Date: Jul 2012
Location: erlangen
Posts: 26
Rep Power: 14 |
Hello Oliver,
I have a question from your code. Why do we need DT and K ? Since l is the thermal conductivity provided. Regards Ashwin |
|
January 30, 2014, 06:45 |
|
#14 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
Hello,
Check and read the link from Akidess for more info. DT, rho , Cp are for the bulk properties. regards, olivier |
|
January 30, 2014, 11:11 |
|
#15 |
New Member
ashwin
Join Date: Jul 2012
Location: erlangen
Posts: 26
Rep Power: 14 |
Hello Tobias, Akidess and Oliver,
I have another question regarding external wall heat flux temperature. Can I input Q in [W/m³] instead of [W/m²] making it as a volumetric source term? Regards Ashwin |
|
January 31, 2014, 10:17 |
|
#16 |
New Member
ashwin
Join Date: Jul 2012
Location: erlangen
Posts: 26
Rep Power: 14 |
Hello,
My Expression is working when I use h instead of alpha. Is it correct? I took it as h w.r.t to convective heat transfer coefficient notation. Please leme know if I am wrong. Code:
valueExpression "(T-(h+(l/d)+alphaout)*(T-Tinf))/h"; Code:
Parser Error for driver PatchValueExpressionDriver at "1.5-9" :"field alpha not existing or of wrong type" Ashwin |
|
October 27, 2015, 21:29 |
|
#17 |
Senior Member
nasir musa yakubu
Join Date: Mar 2014
Location: Birmingham
Posts: 109
Rep Power: 12 |
Hello,
I am currently trying to model a solar volumetric receiver, i have conducted optical ray tracing analysis and have value for the heat flux at the aperture of the receiver. i have the data for the heat flux in 3 formats, grid form, matrix form, and table form. the heat flux represents a spot focus area (3cm radius) with energy density values in the formats mentioned. if you can shed some light on this issue it would be really helpful. thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Two-sided Wall Heat Transfer BC - No Separate Solid Mesh and No Heat Transfer Coeff | swahono | OpenFOAM Running, Solving & CFD | 10 | October 15, 2018 06:43 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 08:00 |
Convective / Conductive Heat Transfer in Hypersonic flows | enigma | Main CFD Forum | 2 | November 1, 2009 23:53 |
WALL HEAT TRANSFER COEF...AGAIN | Carl | CFX | 2 | July 8, 2005 02:35 |