|
[Sponsors] |
Heat Flow across patches using chtmultiregionfoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 26, 2012, 00:43 |
Heat Flow across patches using chtmultiregionfoam
|
#1 |
New Member
Chaz
Join Date: Mar 2012
Posts: 24
Rep Power: 14 |
Hello,
I am having great difficulty finding out how to evaluate heat flow across patches between solid regions, and across patches that are between a solid and fluid region. This is for chtMultiRegionFoam or ..SimpleFoam. I have installed and looked into swak4foam, but this functionality does not look to be there. In swak4foam, I can average T across a patch between fluid and solid, but not across patches between solids. Any guidance? Thanks |
|
March 26, 2012, 05:17 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
March 26, 2012, 12:31 |
|
#3 |
New Member
Chaz
Join Date: Mar 2012
Posts: 24
Rep Power: 14 |
Hello,
Thank you for your reply and link. I am putting the function code into the controldict in order to test access to the average temperature of a patch. In my simple test model, there are three regions, with different thermal conductivities. The following code reports the correct average temperature for the external patches, but reports -1e300 for average temperature of any internal patch. The regions are met1, elem, and met2. Basically two metals on each end of a material called elem. The patches cold and hot are external, and cold_int/hot_int are internal patches between regions. Code:
functions ( met1 { type patchAverage; functionObjectLibs ("libsimpleFunctionObjects.so"); fields ( T ); patches ( cold cold_int ); region met1; verbose true; factor 1; } elem { type patchAverage; functionObjectLibs ("libsimpleFunctionObjects.so"); fields ( T ); patches ( cold_int hot_int); region elem; verbose true; factor 1; } met2 { type patchAverage; functionObjectLibs ("libsimpleFunctionObjects.so"); fields ( T ); patches ( hot_int hot); region met2; verbose true; factor 1; } ); Any guidance would be greatly appreciated. |
|
March 26, 2012, 17:38 |
|
#4 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
|
|||
March 26, 2012, 17:45 |
|
#5 |
New Member
Chaz
Join Date: Mar 2012
Posts: 24
Rep Power: 14 |
Thank you, I will look into the items you pointed out.
|
|
June 7, 2012, 07:16 |
|
#6 |
New Member
Hauke
Join Date: Jun 2012
Posts: 5
Rep Power: 14 |
Hey Chaz,
Did you find a convinient Way to Solve your Problem? |
|
June 10, 2012, 21:31 |
|
#7 |
New Member
Chaz
Join Date: Mar 2012
Posts: 24
Rep Power: 14 |
Hello,
Yes, I did make progress getting heat flow data from patches in chtmultiregionfoam. As Bernhard suggested, swak4foam can be used to get the heat flow between two regions that are solid. I added code similar to the following to then trigger swak4foam to calculate the heat flow and to output it for every iteration into a file. qHot { type swakExpression; valueType patch; patchName hot; verbose true; expression "-K*area()*snGrad(T)"; accumulations (sum); region Solid_2; } I also had to load the libraries needed first in the controldict file: libs ( "libOpenFOAM.so" "libgroovyBC.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" "libswakTopoSources.so" ) ; Not sure if all of these are needed, this was just copied and pasted from somewhere else. I ran this on a simple model with two regions with different thermal conductivity and compared it to theory, and confirmed that it works. |
|
Tags |
heat flux |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
heat conduction in solid and convection in flow | kunal | FLUENT | 3 | February 29, 2012 05:42 |
Convective / Conductive Heat Transfer in Hypersonic flows | enigma | Main CFD Forum | 2 | November 1, 2009 23:53 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 13:02 |
Flow and Heat transfer in a Thawing chamber | B.Prabhu | FLUENT | 0 | May 12, 2002 16:13 |
time averaged heat transfer in oscillating flow | Matthieu Ubas | Main CFD Forum | 2 | November 5, 1999 15:20 |