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 DeclareTypeFieldValues(Type, nullArg)    PtrList<Field<Type>> Type##FieldValues;
 
#define ResizeTypeFieldValues(Type, nullArg)    Type##FieldValues.resize(nFields);
 
#define TypeFieldValuesParameter(Type, nullArg)    , Type##FieldValues
 
#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

◆ DeclareTypeFieldValues [1/2]

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

◆ ResizeTypeFieldValues

#define ResizeTypeFieldValues (   Type,
  nullArg 
)     Type##FieldValues.resize(nFields);

◆ TypeFieldValuesParameter [1/2]

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

◆ FoundTypeField

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

◆ DeclareTypeFieldValues [2/2]

#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, \
applyWeights(weights_, field.boundaryField()[pp.index()]) \
); \
}
static List< word > fieldNames
Definition: globalFoam.H:46

◆ TypeFieldValuesParameter [2/2]

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