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

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define ReadTypeField(Type, nullArg)
 
#define InsertUniformTypeField(Type, nullArg)
 
#define MapTypeFields(Type, nullArg)
 
#define MapTypeFields(Type, nullArg)
 
#define ResetTypeFields(Type, nullArg)
 
#define WriteTypeFieldEntry(Type, nullArg)
 

Functions

template<class Type >
bool insertUniformTypeField (const scalarList &components, const word &keyword, const label size, HashPtrTable< Field< Type >> &typeFields)
 
template<>
bool insertUniformTypeField (const scalarList &components, const word &keyword, const label size, HashPtrTable< Field< scalar >> &typeFields)
 

Detailed Description

Original source file genericFvPatchField.C

Definition in file genericFvPatchField.C.

Macro Definition Documentation

◆ ReadTypeField

#define ReadTypeField (   Type,
  nullArg 
)

◆ InsertUniformTypeField

#define InsertUniformTypeField (   Type,
  nullArg 
)
Value:
( \
l, \
iter().keyword(), \
this->size(), \
Type##Fields_ \
)
bool insertUniformTypeField(const scalarList &components, const word &keyword, const label size, HashPtrTable< Field< scalar >> &typeFields)

◆ MapTypeFields [1/2]

#define MapTypeFields (   Type,
  nullArg 
)
Value:
forAllConstIter(HashPtrTable<Field<Type>>, ptf.Type##Fields_, iter) \
{ \
Type##Fields_.insert \
( \
iter.key(), \
mapper(*iter()).ptr() \
); \
}
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Definition: UList.H:477

◆ MapTypeFields [2/2]

#define MapTypeFields (   Type,
  nullArg 
)
Value:
forAllIter(HashPtrTable<Field<Type>>, Type##Fields_, iter) \
{ \
HashPtrTable<Field<Type>>::const_iterator dptfIter = \
dptf.Type##Fields_.find(iter.key()); \
if (dptfIter != dptf.Type##Fields_.end()) \
{ \
mapper(*iter(), *dptfIter()); \
} \
}
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
Definition: UList.H:459
if(!fvConstraints.PtrListDictionary< fvConstraint >::size())

◆ ResetTypeFields

#define ResetTypeFields (   Type,
  nullArg 
)
Value:
forAllIter(HashPtrTable<Field<Type>>, Type##Fields_, iter) \
{ \
HashPtrTable<Field<Type>>::const_iterator dptfIter = \
dptf.Type##Fields_.find(iter.key()); \
if (dptfIter != dptf.Type##Fields_.end()) \
{ \
iter()->reset(*dptfIter()); \
} \
}

◆ WriteTypeFieldEntry

#define WriteTypeFieldEntry (   Type,
  nullArg 
)
Value:
else if (Type##Fields_.found(iter().keyword())) \
{ \
writeEntry \
( \
os, \
iter().keyword(), \
*Type##Fields_.find(iter().keyword())() \
); \
}