|
[Sponsors] |
[swak4Foam] multiple patch Nusselt number calculation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 23, 2016, 05:56 |
multiple patch Nusselt number calculation
|
#1 |
Senior Member
Manu Chakkingal
Join Date: Feb 2016
Location: Delft, Netherlands
Posts: 129
Rep Power: 10 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Can't Shake Erros: patch type 'patch' not constraint type 'empty' | BrendaEM | OpenFOAM Meshing & Mesh Conversion | 12 | April 3, 2022 18:32 |
decomposePar -allRegions | stru | OpenFOAM Pre-Processing | 2 | August 25, 2015 03:58 |
createPatch Segmentation Fault (CORE DUMPED) | sam.ho | OpenFOAM Pre-Processing | 2 | April 21, 2014 02:01 |
AMI interDyMFoam for mixer | danny123 | OpenFOAM Running, Solving & CFD | 4 | June 19, 2013 04:49 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 07:36 |