|
[Sponsors] |
April 3, 2014, 16:37 |
The operation in OpenFOAM: fvc::average
|
#1 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Dear All,
The following operation is used for average: Code:
fvc::average Thanks. OFFO |
|
April 3, 2014, 16:41 |
|
#2 |
Member
Join Date: Sep 2012
Posts: 51
Rep Power: 13 |
You can find the definition in :
src/finiteVolume/finiteVolume/fvc/fvcAverage.* It's defined as "Area-weighted average a surfaceField creating a volField". |
|
April 3, 2014, 16:42 |
|
#3 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
OK, thank you for your help!
|
|
April 12, 2014, 08:37 |
|
#4 | |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Quote:
In the source files you cited, there are following lines: Code:
GeometricField<Type, fvPatchField, volMesh>& av = taverage(); av.internalField() = ( surfaceSum(mesh.magSf()*ssf)/surfaceSum(mesh.magSf()) )().internalField(); typename GeometricField<Type, fvPatchField, volMesh>:: GeometricBoundaryField& bav = av.boundaryField(); forAll(bav, patchi) { bav[patchi] = ssf.boundaryField()[patchi]; } av.correctBoundaryConditions(); |
||
March 27, 2024, 22:33 |
|
#5 | |
Member
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 64
Rep Power: 7 |
Quote:
I totally agree with you that fvc::average is somewhat performing the averaging on each cell, but as you claimed, how to get the average value from a global scale of the whole computational domain? Kindly regards, Gang |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM - Validation of Results | Ahmed | OpenFOAM Running, Solving & CFD | 10 | May 13, 2018 18:28 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 05:36 |
ESI-OpenCFD Releases OpenFOAM v2.2.0 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 13 | March 30, 2013 16:52 |
OpenFOAM Foundation Releases OpenFOAMŪ Version 2.1.1 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | May 31, 2012 09:07 |
Summer School on Numerical Modelling and OpenFOAM | hjasak | OpenFOAM | 5 | October 12, 2008 13:14 |