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 by producing additional user-requested data both during runtime and postprocessing calculations, typically in the form of additional logging to the screen, or generating text, image and field files.
|
|
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 (returnReduce(!Member##Ptr, orOp<bool>())) \
{ \
Log << type() <<
' ' << name() <<
" : no " << Name \
<< " field found - not calculating\n"; \
return false; \
} \
} \
\
const FieldType& Member = *Member##Ptr;