patchCutLayerAverage.C File Reference
Include dependency graph for patchCutLayerAverage.C:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 
 Foam::functionObjects
 Namespace for functionObjects.
 

Macros

#define FoundTypeField(Type, nullArg)    || foundObject<VolField<Type>>(fields_[fieldi])
 
#define DeclareTypeFieldValues(Type, nullArg)    PtrList<Field<Type>> Type##FieldValues(fieldNames.size());
 
#define CollapseTypeFields(Type, nullArg)
 
#define TypeFieldValuesParameter(Type, nullArg)   , Type##FieldValues
 

Functions

 defineTypeNameAndDebug (patchCutLayerAverage, 0)
 
 addToRunTimeSelectionTable (functionObject, patchCutLayerAverage, dictionary)
 

Detailed Description

Original source file patchCutLayerAverage.C

Definition in file patchCutLayerAverage.C.

Macro Definition Documentation

◆ FoundTypeField

#define FoundTypeField (   Type,
  nullArg 
)     || foundObject<VolField<Type>>(fields_[fieldi])

◆ DeclareTypeFieldValues

#define DeclareTypeFieldValues (   Type,
  nullArg 
)     PtrList<Field<Type>> Type##FieldValues(fieldNames.size());

◆ CollapseTypeFields

#define CollapseTypeFields (   Type,
  nullArg 
)
Value:
if (mesh_.foundObject<VolField<Type>>(fieldNames[fieldi])) \
{ \
const VolField<Type>& field = \
mesh_.lookupObject<VolField<Type>>(fieldNames[fieldi]); \
\
Type##FieldValues.set \
( \
fieldi, \
( \
nLayers_, \
weights_, \
field.boundaryField()[pp.index()] \
) \
); \
}
static List< word > fieldNames
Definition: globalFoam.H:46
tmp< Field< Type > > applyWeights(const label n, const List< cellCutPlot::weight > &weights, const Field< Type > &cellValues)
Construct plot values from cell values given a set of weights.

◆ TypeFieldValuesParameter

#define TypeFieldValuesParameter (   Type,
  nullArg 
)    , Type##FieldValues