CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Swak4foam : multiple patch Nusselt number calculation

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 23, 2016, 05:56
Default Swak4foam : multiple patch Nusselt number calculation
  #1
Senior Member
 
Manu Chakkingal
Join Date: Feb 2016
Location: Delft, Netherlands
Posts: 101
Rep Power: 3
manuc is on a distinguished road
Dear Foamers

I have two patches (w_l,w_lb --> both of them of different area and mesh distribution) and I want to find combined nusselt No. for them.
When I do the below it crashes:
--------------------------------------------------------------
Test234
{
type patchExpression;
patches (
w_l
w_lb
);
verbose true;
variables (
"Tsat=300;"
"lc2D=0.0786;"
"sumHere{w_l}=sum(snGrad(T)*area()/(T-Tsat);"
/*"dtwl{w_l}=T-Tsat;"
"dtwlb{w_lb}=T-Tsat;"*/
"sumThere{w_lb}=sum(snGrad(T)*area()/(T-Tsat));"
"areaHere{w_l}=sum(area());"
"areaThere{w_lb}=sum(area());"
"totalAverage=(sumHere+sumThere)/(areaHere+areaThere);"*/

);
expression "totalAverage";
accumulations (
max
min
average
sum
);

------------------------------------------------------------------
But when I try to debug and remove the division by (T-Tsat) it runs ,but not what I need..

----------------------------------------------------------------------------
Test234
{
type patchExpression;
patches (
w_l
w_lb
);
verbose true;
variables (
"Tsat=300;"
"lc2D=0.0786;"
"sumHere{w_l}=sum(snGrad(T)*area());"
/*"dtwl{w_l}=T-Tsat;"
"dtwlb{w_lb}=T-Tsat;"*/
"sumThere{w_lb}=sum(snGrad(T)*area());"
"areaHere{w_l}=sum(area());"
"areaThere{w_lb}=sum(area());"
"totalAverage=(sumHere+sumThere)/(areaHere+areaThere);"*/

);
expression "totalAverage";
accumulations (
max
min
average
sum
);

-----------------------------------------------------------------

Also it creates 2 output files w_l and w_lb .Is this expected

Please note : The same was tested for a "single patch" by doing the nusslet number calculation in "expression() " as in
http://www.cfd-online.com/Forums/ope...swak4foam.html

which works finr
-----------------------------------------------------------------------------
Could you please comment on it..

My scenario: A wall cut into two patches so that I could use one of the as inlet for flow if needed.At present both considered as wall. So I want Nusselt number at the whole wall and I need averaging over both patches.
__________________
Regards
Manu
manuc is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
decomposePar -allRegions stru OpenFOAM Pre-Processing 2 August 25, 2015 03:58
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 14:38
Can't Shake Erros: patch type 'patch' not constraint type 'empty' BrendaEM OpenFOAM Meshing & Mesh Conversion 10 November 5, 2014 22:14
AMI interDyMFoam for mixer danny123 OpenFOAM Running, Solving & CFD 4 June 19, 2013 04:49
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36


All times are GMT -4. The time now is 03:07.