32 T Foam::functionObjects::layerAverage::symmetricCoeff()
const
34 return pTraits<T>::one;
49 if (cellLayer_[celli] != -1)
51 layerField[cellLayer_[celli]] += cellField[celli];
73 ? sum<T>(mesh_.V()*cellWeight*cellField)/layerWeight
74 : sum<T>(mesh_.V()*cellField)/layerVolume_
82 const T coeff = symmetricCoeff<T>();
84 for (
label i=0; i<nLayers_/2; i++)
86 const label j = nLayers_ - i - 1;
#define forAll(list, i)
Loop across all elements in list.
void setSize(const label)
Reset size of List.
static void listCombineGather(const List< commsStruct > &comms, List< T > &Value, const CombineOp &cop, const int tag, const label comm)
static void listCombineScatter(const List< commsStruct > &comms, List< T > &Value, const int tag, const label comm)
Scatter data. Reverse of combineGather.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
typename VolField< Type >::Internal VolInternalField
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)