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

gMax and gMin not working on components of a volTensorField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2019, 05:29
Default gMax and gMin not working on components of a volTensorField
  #1
Member
 
Anonymous
Join Date: Aug 2016
Posts: 75
Rep Power: 10
backscatter is on a distinguished road
Hi,
I was trying to compute the max and min field values of a tensor Dij_ by using gMax and gMin across all processors. Surprisingly both of these don't work on the volTensorField Dij_, while simply max and min work fine. Also I noticed that gMax and gMin work fine for scalar field like Temperature. It is just the volTensorField which is causing issues.
Below is the error that shows up.

Code:
Info << "MaxD31 = " << gMax(Dij_.component(tensor::ZX))<< "  MaxD32 = " << gMax(Dij_.component(tensor::ZY)) <<  "  MaxD33 = " << gMax(Dij_.component(tensor::ZZ)) << endl;
                                                                                                                                       ^
/work/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/FieldFieldFunctions.C(562): note: this candidate was rejected because at least one template argument could not be deduced
  G_UNARY_FUNCTION(Type, gMax, max, max)
Any help is appreciated.
backscatter 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
FE-3.1 Parallel issues with BCs (gMax, reduce...) Phicau OpenFOAM Bugs 2 August 1, 2014 07:22


All times are GMT -4. The time now is 00:39.