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

Difference of the max function result with full field, internalField and boundaryFiel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2018, 06:00
Default Difference of the max function result with full field, internalField and boundaryFiel
  #1
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11
cyss38 is on a distinguished road
I don't understand something about the max function in OpenFoam :


With the following code lines :
Info<< "Full Field Max =" << max(pa).value()<<endl;
Info<< "boundary Field Max =" << max(pa.boundaryField()) <<endl;
Info<< "internal Field Max =" << max(pa.internalField()).value() <<endl;



I have the output :
Full Field Max = 1.45125e+06
boundary Field Max = 2.13539e-08
internal Field Max = 176.63




Can you explain why "internal Field max" and "Full Field max" are different?



PS : It is a parallel computing.
cyss38 is offline   Reply With Quote

Old   October 2, 2018, 06:39
Default
  #2
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11
cyss38 is on a distinguished road
Ok... I have the explanation.
I think there is a problem with max(pa).value in parallel case.

If i use gMax(pa), the result is coherent with the internalFiel result.
cyss38 is offline   Reply With Quote

Reply

Tags
boundaryfield, intenalfield, max


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



All times are GMT -4. The time now is 03:45.