|
[Sponsors] |
May 15, 2014, 08:55 |
Get convective output boundary flux
|
#1 |
New Member
bou
Join Date: May 2014
Posts: 10
Rep Power: 11 |
Dear,
I would like to compute on boundary faces (a patch) the convective flux so the sum of the simple product: C*U.Sf, where C is a volScalarField. I have tried this: Code:
double sum = 0; forAll(mesh.boundaryMesh()[patch_bot], faceI){ sum += U.boundaryField()[patch_bot][faceI] & mesh.boundaryMesh()[patch_bot][faceI].normal(pf); } Moreover is "U.boundaryField()[patch_bot][faceI]" a good way to get U on faceI? Thank you, Bou |
|
May 21, 2014, 07:49 |
Solution I found
|
#2 |
New Member
bou
Join Date: May 2014
Posts: 10
Rep Power: 11 |
In case it could be usefull to others, here is the solution I found:
Code:
vectorField Sf(mesh.boundary()[patch_bot].Sf()); // normal face area vectors multiplied by the surface vectorField UC(U.boundaryField()[patch_bot]*C); //much better results than // volVectorField UC("UC",U*C); Field<double> SUC = Sf & UC; Bou |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LES in DES can't be actived! | shenying0710 | CFX | 17 | January 23, 2014 04:45 |
mixed boundary conditions including heat flux, convective heat transfer and radiation | lotus_blue | FLUENT | 0 | April 3, 2013 18:55 |
CFX13 Post Periodic interface | EtaEta | CFX | 7 | December 8, 2011 17:15 |
Heat Flux Wall Boundary Confusion. | Joee | FLUENT | 1 | August 21, 2010 12:20 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 15:55 |