|
[Sponsors] |
gMax and gMin not working on components of a volTensorField |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 16, 2019, 05:29 |
gMax and gMin not working on components of a volTensorField
|
#1 |
Member
Anonymous
Join Date: Aug 2016
Posts: 75
Rep Power: 10 |
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) |
|
|
|
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 |