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

Get convective output boundary flux

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By bou

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2014, 08:55
Default Get convective output boundary flux
  #1
bou
New Member
 
bou
Join Date: May 2014
Posts: 10
Rep Power: 11
bou is on a distinguished road
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);
}
and I don't know what to use as pointField argument "pf". Actually, I don't understand why I need to provide this argument.

Moreover is "U.boundaryField()[patch_bot][faceI]" a good way to get U on faceI?

Thank you,

Bou
bou is offline   Reply With Quote

Old   May 21, 2014, 07:49
Default Solution I found
  #2
bou
New Member
 
bou
Join Date: May 2014
Posts: 10
Rep Power: 11
bou is on a distinguished road
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;
Regards,

Bou
songwukong likes this.
bou is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 16:26.