# Swak4foam : multiple patch Nusselt number calculation

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 July 23, 2016, 05:56 Swak4foam : multiple patch Nusselt number calculation #1 Senior Member   Manu Chakkingal Join Date: Feb 2016 Location: Delft, Netherlands Posts: 101 Rep Power: 3 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post stru OpenFOAM Pre-Processing 2 August 25, 2015 03:58 Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 14:38 BrendaEM OpenFOAM Meshing & Mesh Conversion 10 November 5, 2014 22:14 danny123 OpenFOAM Running, Solving & CFD 4 June 19, 2013 04:49 hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36

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

 Contact Us - CFD Online - Top