|
[Sponsors] |
August 8, 2022, 01:38 |
fieldMinMax unknown function
|
#1 |
New Member
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15 |
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! |
|
August 17, 2022, 08:13 |
|
#2 |
New Member
Reza
Join Date: Jun 2012
Posts: 27
Rep Power: 14 |
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 |
|
August 17, 2022, 13:04 |
|
#3 |
New Member
Join Date: Mar 2012
Posts: 5
Rep Power: 14 |
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). |
|
August 28, 2022, 10:13 |
|
#4 |
New Member
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15 |
This is good. Thanks!
|
|
|
|
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 |