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

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define FieldTypeValuesConstArg(Type, nullArg)    , const UPtrList<const Field<Type>>& field##Type##Values
 
#define WriteFieldType(Type, nullArg)
 

Functions

 defineTypeNameAndDebug (foamSurfaceWriter, 0)
 
 addToRunTimeSelectionTable (surfaceWriter, foamSurfaceWriter, word)
 
 addToRunTimeSelectionTable (surfaceWriter, foamSurfaceWriter, dict)
 

Detailed Description

Original source file foamSurfaceWriter.C

Definition in file foamSurfaceWriter.C.

Macro Definition Documentation

◆ FieldTypeValuesConstArg

#define FieldTypeValuesConstArg (   Type,
  nullArg 
)     , const UPtrList<const Field<Type>>& field##Type##Values

◆ WriteFieldType

#define WriteFieldType (   Type,
  nullArg 
)
Value:
if (field##Type##Values.set(fieldi)) \
{ \
const fileName valuesDir \
( \
surfaceDir \
/( \
word(pTraits<Type>::typeName) \
+ word(Field<Type>::typeName) \
) \
); \
if (!isDir(valuesDir)) \
{ \
mkDir(valuesDir); \
} \
\
stream(valuesDir/fieldNames[fieldi])() \
<< field##Type##Values[fieldi]; \
}
if(!fvConstraints.PtrListDictionary< fvConstraint >::size())
static List< word > fieldNames
Definition: globalFoam.H:46
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a directory in the file system?
Definition: POSIX.C:539