Loading...
Searching...
No Matches
dsmcFields.C File Reference
Include dependency graph for dsmcFields.C:

Go to the source code of this file.

Namespaces

namespace  Foam
 Namespace for OpenFOAM.
namespace  Foam::functionObjects
 Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.

Macros

#define doLocalCode(Name, FieldType, Member)

Functions

 defineTypeNameAndDebug (dsmcFields, 0)
 addToRunTimeSelectionTable (functionObject, dsmcFields, dictionary)
static const wordfilteredName (const word &baseName, const wordList &names, const string &scopePrefix)

Detailed Description

Original source file dsmcFields.C

Definition in file dsmcFields.C.

Macro Definition Documentation

◆ 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; \
} \
} \
/* Define the const reference */ \
const FieldType& Member = *Member##Ptr;
#define Log
Definition PDRblock.C:28
auto & name