CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

fieldMinMax unknown function

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By flowing

LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2022, 02:38
Default fieldMinMax unknown function
New Member
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 13
entropies is on a distinguished road
It looks like recent OF versions (v9/v10/dev) has excluded fiedMinMax from the functionObejcts?

Can anyone help how to use this in v9/v10/dev?


entropies is offline   Reply With Quote

Old   August 17, 2022, 09:13
New Member
Join Date: Jun 2012
Posts: 25
Rep Power: 12
rsa is on a distinguished road
Hi E,
search for cellMin, cellMax in multiphaseEulerFoam/laminar/systemInjection.

These are for scalar variables; for vector variable you can use cellMinMag & cellMaxMag.

Strange part is that we dont get a printout in terminal using these. anyone has any idea?

rsa is offline   Reply With Quote

Old   August 17, 2022, 14:04
New Member
Join Date: Mar 2012
Posts: 5
Rep Power: 12
flowing is on a distinguished road
I started playing around with OpenFOAM 9 today and I came up with the same question.

After a lot of searching, I found at OpenFOAM release notes (under Function Objects):

this commit link:

in which it is stated that fieldMinMax has been removed .
Instead, you can use volFieldValue and surfaceFieldValue.

As a consequence, the workaround I used was to employ two separate functions, one for min and one for max value, like:

type volFieldValue;
libs ("")
writeControl timeStep;
writeInterval 1;
log true;

regionType all;
operation minMag;
fields ( U );

Similarly, in order to get max value you can define in operation maxMag or max or bananas to get all available fields.

Alternatively, you can use #includeFunc definition in functions dictionary of your controlDict file like:

#includeFunc cellMax

Finally, you can check also under OpenFOAM-9/etc/caseDicts/postProcessing/minMax as well as in OpenFOAM-9/etc/caseDicts/postProcessing/surfaceFieldValue for the definition of each function.

Mind that type volFieldValue will give you min/max values of your volume and not the boundaries, for which I guess you will need to use surfaceFieldValue (but I haven't tested the latter).
entropies and souza.emer like this.
flowing is offline   Reply With Quote

Old   August 28, 2022, 11:13
New Member
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 13
entropies is on a distinguished road
This is good. Thanks!
entropies is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Error in enabling the python wrapper Jinn SU2 Installation 2 April 23, 2022 14:52
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[Commercial meshers] fluent3DMeshToFoam bego OpenFOAM Meshing & Mesh Conversion 30 January 8, 2020 07:41
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50

All times are GMT -4. The time now is 07:55.