ensightSurfaceWriter.C File Reference
Include dependency graph for ensightSurfaceWriter.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 WriteTypeCase(Type, nullArg)
 
#define WriteTypeValues(Type, nullArg)
 

Functions

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

Detailed Description

Original source file ensightSurfaceWriter.C

Definition in file ensightSurfaceWriter.C.

Macro Definition Documentation

◆ FieldTypeValuesConstArg

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

◆ WriteTypeCase

#define WriteTypeCase (   Type,
  nullArg 
)
Value:
if (field##Type##Values.set(fieldi)) \
{ \
osCase \
<< ensightPTraits<Type>::typeName << " per " \
<< word(writePointValues ? "node:" : "element:") \
<< setw(10) << 1 << " " << fieldNames[fieldi] \
<< " " << surfaceName.c_str() << ".***." \
<< fieldNames[fieldi] << nl; \
}
static List< word > fieldNames
Definition: globalFoam.H:46
Omanip< int > setw(const int i)
Definition: IOmanip.H:199
static const char nl
Definition: Ostream.H:266

◆ WriteTypeValues

#define WriteTypeValues (   Type,
  nullArg 
)
Value:
if (field##Type##Values.set(fieldi)) \
{ \
ensightFile osField \
( \
outputDir/surfaceName \
+ ".000." \
+ fieldNames[fieldi], \
writeFormat_ \
); \
osField.writeKeyword(ensightPTraits<Type>::typeName); \
ensPart.writeField \
( \
osField, \
field##Type##Values[fieldi], \
writePointValues \
); \
}