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

fieldMinMax unknown function

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By flowing

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2022, 01:38
Default fieldMinMax unknown function
  #1
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 14
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?

Thanks!

entropies is offline   Reply With Quote

Old   August 17, 2022, 08:13
Default
  #2
rsa
New Member
 
Reza
Join Date: Jun 2012
Posts: 27
Rep Power: 13
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?


/R
rsa is offline   Reply With Quote

Old   August 17, 2022, 13:04
Default
  #3
New Member
 
Join Date: Mar 2012
Posts: 5
Rep Power: 14
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):

https://openfoam.org/release/9/

this commit link:

https://github.com/OpenFOAM/OpenFOAM...b34102fff0c63f

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:


min_U
{
type volFieldValue;
libs ("libfieldFunctionObjects.so")
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, 10:13
Default
  #4
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 14
entropies is on a distinguished road
This is good. Thanks!
entropies 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
[Commercial meshers] fluent3DMeshToFoam bego OpenFOAM Meshing & Mesh Conversion 31 August 16, 2023 09:04
Error in enabling the python wrapper Jinn SU2 Installation 2 April 23, 2022 13:52
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 04:37
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


All times are GMT -4. The time now is 20:33.