31 T Foam::functionObjects::layerAverage::symmetricCoeff()
const 33 return pTraits<T>::one;
47 if (cellLayer_[celli] != -1)
49 layerField[cellLayer_[celli]] += cellField[celli];
67 Field<T> layerField(sum(cellField)/layerCount_);
72 const T coeff = symmetricCoeff<T>();
74 for (
label i=0; i<nLayers_/2; i++)
76 const label j = nLayers_ - i - 1;
static void listCombineScatter(const List< commsStruct > &comms, List< T > &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.
#define forAll(list, i)
Loop across all elements in list.
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void setSize(const label)
Reset size of List.