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

How to write Maximum, average and Minimum velocity within a solver?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pupo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2016, 06:14
Default How to write Maximum, average and Minimum velocity within a solver?
  #1
Member
 
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 11
pupo is on a distinguished road
I've been using the following line of code to show during the iterative process the max/Avg/min Temperature in the field:

Code:
Info<< "T   max/avg/min : " << gMax(thermo.T())     << " " << gAverage(thermo.T())     << " " << gMin(thermo.T())     << endl;
I would like to the same for the velocity field, but showing the max/avg/min for the z component. How can i achieve this? I've tried U.z() , U.componet(2) and some other solutions that pop on google, but none of them works.


Thank you.
ashvinc9 likes this.
pupo 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
convergenceof natural convection prob. in cfx cpkewat CFX 15 January 31, 2014 06:29
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
Error ? Orb CFX 22 February 13, 2012 16:33
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


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