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

functions (fieldAverage, residuals) installation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2024, 11:16
Default functions (fieldAverage, residuals) installation
  #1
New Member
 
Christoforos Lefkiou
Join Date: Oct 2024
Posts: 22
Rep Power: 2
clef1 is on a distinguished road
Hello everyone,

I try to use fieldAverage and residuals functions in controlDict. While it calculates them during the run, it doesnt save them in postProcessing.
Please note that when I use forceCoeffs and yPlus functions, it calulates and saves them normally in the postProcessing folder.

When I use the command postProcess -list, it doesnt contain fieldAverage and residuals. This is what I get:

"
Available configured functionObjects:
64
(
AMIWeights
CourantNo
LambVector
Lambda2
MachNo
ObukhovLength
PecletNo
Q
R
XiReactionRate
add
boundaryCloud
cellMax
cellMin
components
ddt
div
dsmcFields
energySpectrum
enstrophy
faceMax
faceMin
fieldMinMax
flowRateFaceZone
flowRatePatch
flowType
forceCoeffsCompressible
forceCoeffsIncompressible
forcesCompressible
forcesIncompressible
grad
heatTransferCoeff
internalCloud
log
mag
magSqr
minMaxComponents
minMaxMagnitude
patchAverage
patchIntegrate
pressureDifferencePatch
pressureDifferenceSurface
probes
processorField
randomise
scalarTransport
singleGraph
solverInfo
staticPressure
streamFunction
streamlines
subtract
surfaces
totalPressureCompressible
totalPressureIncompressible
turbulenceFields
volFlowRateSurface
vorticity
wallHeatFlux
wallShearStress
writeCellCentres
writeCellVolumes
writeObjects
yPlus
)
"

I tried to compile the fieldAverage, but I did not manage to complete it.

I use OpenFOAM 2406.

Any ideas?

Thank you,
clef1 is offline   Reply With Quote

Old   November 13, 2024, 07:00
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,200
Rep Power: 28
Yann will become famous soon enough
Hello Christoforos,

For the residuals you need to use the solverInfo function object.
The list of functions you get with postProcess -list are not all function objects, but some pre-configured functions defined in $FOAM_ETC/caseDicts/postProcessing

You can define a fieldAverage function directly in your controlDict, have a look at the documentation: https://doc.openfoam.com/2306/tools/.../fieldAverage/

Regards,
Yann
Yann is offline   Reply With Quote

Reply

Tags
compile, fieldaverage, functions, openfoam, residuals


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
Why did the residuals increase after flattened out as I continued the iteration? pchoopanya ANSYS 2 April 24, 2024 22:34
Cannot find functionObject file residuals vava10 OpenFOAM Pre-Processing 2 November 14, 2020 13:21
Export cell residuals to .dat file Syn FLUENT 4 July 1, 2020 05:49
plot residuals pigna OpenFOAM Running, Solving & CFD 2 December 19, 2014 03:32
motorBike Residuals for SST k-omega... and mine JR22 OpenFOAM Running, Solving & CFD 6 August 1, 2013 10:08


All times are GMT -4. The time now is 17:53.