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 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.
 

Macros

#define doLocalCode(Name, FieldType, Member)
 

Functions

 defineTypeNameAndDebug (dsmcFields, 0)
 
 addToRunTimeSelectionTable (functionObject, dsmcFields, dictionary)
 
static const word & filteredName (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 (returnReduce(!Member##Ptr, orOp<bool>())) \
{ \
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:35