Go to the source code of this file.
|
| namespace | Foam |
| | Namespace for OpenFOAM.
|
| namespace | Foam::functionObjects |
| | Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
|
Original source file dsmcFields.C
Definition in file dsmcFields.C.
◆ doLocalCode
| #define doLocalCode |
( |
| Name, |
|
|
| FieldType, |
|
|
| Member ) |
Value: \
const FieldType* Member##Ptr = nullptr; \
{ \
const word& fldName = \
filteredName(Name, allMeanNames, scopePrefix); \
\
if (!fldName.empty()) \
{ \
Member##Ptr = obr_.cfindObject<FieldType>(fldName); \
} \
\
if (returnReduceOr(!Member##Ptr)) \
{ \
Log << type() <<
' ' <<
name() <<
" : no " << Name \
<< " field found - not calculating\n"; \
return false; \
} \
} \
\
const FieldType& Member = *Member##Ptr;