All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
streamlines.C File Reference
Include dependency graph for streamlines.C:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 
 Foam::functionObjects
 Namespace for functionObjects.
 

Macros

#define FoundTypeField(Type, nullArg)    || foundObject<VolField<Type>>(fields_[fieldi])
 
#define DeclareTypeInterpolator(Type, nullArg)    PtrList<interpolation<Type>> Type##Interp(fieldNames.size());
 
#define ConstructTypeInterpolator(Type, nullArg)
 
#define DeclareAllTypes(Type, nullArg)    List<DynamicField<Type>> all##Type##s(fieldNames.size());
 
#define TypeInterpolatorParameter(Type, nullArg)    Type##Interp,
 
#define AllTypesParameter(Type, nullArg)    , all##Type##s
 
#define GatherAndFlattenAllTypes(Type, nullArg)
 
#define RMapAllTypes(Type, nullArg)
 
#define ShuffleUpAllTypes(Type, nullArg)
 
#define ResizeAllTypes(Type, nullArg)
 
#define DeclareTypeValueSets(Type, nullArg)    UPtrList<const Field<Type>> Type##ValueSets(nValueSets);
 
#define SetTypeValueSetPtr(Type, nullArg)
 
#define TypeValueSetsParameter(Type, nullArg)   , Type##ValueSets
 

Functions

template<class Type >
void gatherAndFlatten (DynamicField< Type > &field)
 
 defineTypeNameAndDebug (streamlines, 0)
 
 addToRunTimeSelectionTable (functionObject, streamlines, dictionary)
 

Detailed Description

Original source file streamlines.C

Definition in file streamlines.C.

Macro Definition Documentation

◆ FoundTypeField

#define FoundTypeField (   Type,
  nullArg 
)     || foundObject<VolField<Type>>(fields_[fieldi])

◆ DeclareTypeInterpolator

#define DeclareTypeInterpolator (   Type,
  nullArg 
)     PtrList<interpolation<Type>> Type##Interp(fieldNames.size());

◆ ConstructTypeInterpolator

#define ConstructTypeInterpolator (   Type,
  nullArg 
)
Value:
if (mesh_.foundObject<VolField<Type>>(fieldNames[fieldi])) \
{ \
Type##Interp.set \
( \
fieldi, \
( \
interpolationScheme_, \
mesh_.lookupObject<VolField<Type>>(fieldNames[fieldi]) \
) \
); \
}
static List< word > fieldNames
Definition: globalFoam.H:46
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)

◆ DeclareAllTypes

#define DeclareAllTypes (   Type,
  nullArg 
)     List<DynamicField<Type>> all##Type##s(fieldNames.size());

◆ TypeInterpolatorParameter

#define TypeInterpolatorParameter (   Type,
  nullArg 
)     Type##Interp,

◆ AllTypesParameter

#define AllTypesParameter (   Type,
  nullArg 
)     , all##Type##s

◆ GatherAndFlattenAllTypes

#define GatherAndFlattenAllTypes (   Type,
  nullArg 
)
Value:
if (Type##Interp.set(fieldi)) \
{ \
gatherAndFlatten(all##Type##s[fieldi]); \
}
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))

◆ RMapAllTypes

#define RMapAllTypes (   Type,
  nullArg 
)
Value:
if (Type##Interp.set(fieldi)) \
{ \
all##Type##s[fieldi].rmap(all##Type##s[fieldi], order); \
}
int order(const scalar s)

◆ ShuffleUpAllTypes

#define ShuffleUpAllTypes (   Type,
  nullArg 
)
Value:
if (Type##Interp.set(fieldi)) \
{ \
all##Type##s[fieldi][samplei] = \
all##Type##s[fieldi][samplej]; \
}

◆ ResizeAllTypes

#define ResizeAllTypes (   Type,
  nullArg 
)
Value:
if (Type##Interp.set(fieldi)) \
{ \
all##Type##s[fieldi].resize(samplei); \
}

◆ DeclareTypeValueSets

#define DeclareTypeValueSets (   Type,
  nullArg 
)     UPtrList<const Field<Type>> Type##ValueSets(nValueSets);

◆ SetTypeValueSetPtr

#define SetTypeValueSetPtr (   Type,
  nullArg 
)
Value:
if (Type##Interp.set(fieldi)) \
{ \
Type##ValueSets.set \
( \
fieldi + writeAge_, \
&all##Type##s[fieldi] \
); \
}

◆ TypeValueSetsParameter

#define TypeValueSetsParameter (   Type,
  nullArg 
)    , Type##ValueSets