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

Calculate maximum velocity components with functionObject

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 18, 2022, 15:01
Default Calculate maximum velocity components with functionObject
  #1
New Member
 
Join Date: Jun 2022
Posts: 19
Rep Power: 3
TommyJ is on a distinguished road
Hello,

I would like to compute the maximum of the u,v,z components of velocity with a functionObject.

I have been trying to use fieldMinMax as:


Code:
    fieldMinMax1
    {
        // Mandatory entries (unmodifiable)
        type        fieldMinMax;
        libs        (fieldFunctionObjects);

        // Mandatory entries (runtime modifiable)
        mode        component;
        fields      (U);

        // Optional entries (runtime modifiable)
        location    true;
    }

But so far I always get the same value for max and min at the same cell.

Does anyone know how to get the maximum/min of a component of a vectorField with a FO that will write the corresponding value to a log?
TommyJ 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
time averaged and resolved velocity components raunakjung CFX 0 June 9, 2017 20:23
OpenFOAM Velocity BC two orthogonal components viv123 OpenFOAM 1 October 31, 2014 08:28
Plotting Radial and Circumferential Velocity Components for FSI modelling ashtonJ CFX 1 May 28, 2012 04:36
Compare 2D axi-symmetric and 3D. Is OpenFOAM calculate the velocity wrong? RalphS OpenFOAM 6 November 13, 2010 20:51
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


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