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

Min Max of scalarField

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By alexeym
  • 2 Post By alexeym

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 5, 2014, 12:02
Default Min Max of scalarField
  #1
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi All,

Do min and max function work for scalarField? something like

scalar xMin = min(myScalarField);
scalar xMax = max(myScalarField);

Do they work also in parallel?
I need to calcualte the minimum and maximum value of a vector during a parallel simulation and use them for some calculations. I got different values when using or not the "reduce" command on xMin and xMax and it looks like i get the correct values when "reduce" is not used. I am a bit confused.

Which is the best/correct way to calculate minimum and maximum value of a scalarField during a parallel run?

Thanks

Andrea
Andrea_85 is offline   Reply With Quote

 


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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 05:37
multiphase turbulance case floating error harsha_kulkarni OpenFOAM Running, Solving & CFD 3 February 18, 2016 05:06
Problem of simulating of small droplet with radius of 2mm liguifan OpenFOAM Running, Solving & CFD 5 June 3, 2014 02:53
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 21:14
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 08:49.