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

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define ACCESS_STATE_FIELDS(Type, nullArg)
 
#define CLEAR_TYPE_STATE_FIELDS(Type, nullArg)
 
#define ACCESS_DERIVED_FIELDS(Type, nullArg)
 
#define CLEAR_TYPE_DERIVED_FIELDS(Type, nullArg)
 
#define ACCESS_AVERAGE_FIELDS(Type, nullArg)
 
#define REMOVE_FROM_TYPE_AVERAGE_FIELDS(Type, nullArg)
 
#define ADD_TO_TYPE_AVERAGE_FIELDS(Type, nullArg)
 
#define CORRECT_TYPE_AVERAGE_FIELDS(Type, nullArg)
 
#define CLEAR_TYPE_AVERAGE_FIELDS(Type, nullArg)
 
#define RESET_TYPE_AVERAGE_FIELDS(Type, nullArg)
 
#define EVAL_TYPE_DERIVED_PATCH_FIELDS(Type, GeoField)
 

Functions

 defineTypeNameAndDebug (cloud, 0)
 
 defineRunTimeSelectionTable (cloud, polyMesh)
 

Variables

const NamedEnum< enum cloud::trackingType, 2 > cloudTrackingNames {"linear", "parabolic"}
 

Detailed Description

Original source file cloud.C

Definition in file cloud.C.

Macro Definition Documentation

◆ ACCESS_STATE_FIELDS

#define ACCESS_STATE_FIELDS (   Type,
  nullArg 
)
Value:
namespace Foam \
{ \
template<> \
PtrList<Foam::CloudStateField<Type>>& cloud::stateFields() const \
{ \
return CAT3(state, CAPITALIZE(Type), Fields_); \
} \
}
#define CAPITALIZE(name)
Map 'name' to 'Name' via the predefined macro CAPITALIZE_name.
Definition: macros.H:54
Namespace for OpenFOAM.
LagrangianFieldSource< label > CAT3(Lagrangian, CAPITALIZE(label), FieldSource)

Definition at line 90 of file cloud.C.

◆ CLEAR_TYPE_STATE_FIELDS

#define CLEAR_TYPE_STATE_FIELDS (   Type,
  nullArg 
)
Value:
forAll(stateFields<Type>(), i) \
{ \
stateFields<Type>()[i].clear(); \
}
#define forAll(list, i)
Loop across all elements in list.
Definition: UList.H:433

◆ ACCESS_DERIVED_FIELDS

#define ACCESS_DERIVED_FIELDS (   Type,
  nullArg 
)
Value:
namespace Foam \
{ \
template<> \
PtrList<Foam::CloudDerivedField<Type>>& cloud::derivedFields() const \
{ \
return CAT3(derived, CAPITALIZE(Type), Fields_); \
} \
}

Definition at line 115 of file cloud.C.

◆ CLEAR_TYPE_DERIVED_FIELDS

#define CLEAR_TYPE_DERIVED_FIELDS (   Type,
  nullArg 
)
Value:
forAll(derivedFields<Type>(), i) \
{ \
derivedFields<Type>()[i].clear(final); \
}

◆ ACCESS_AVERAGE_FIELDS

#define ACCESS_AVERAGE_FIELDS (   Type,
  nullArg 
)
Value:
namespace Foam \
{ \
template<> \
PtrList<Foam::CloudAverageField<Type>>& cloud::averageFields() const \
{ \
return CAT3(average, CAPITALIZE(Type), Fields_); \
} \
}
dimensioned< Type > average(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)

Definition at line 140 of file cloud.C.

◆ REMOVE_FROM_TYPE_AVERAGE_FIELDS

#define REMOVE_FROM_TYPE_AVERAGE_FIELDS (   Type,
  nullArg 
)
Value:
forAll(averageFields<Type>(), i) \
{ \
averageFields<Type>()[i].remove(subMesh); \
}

◆ ADD_TO_TYPE_AVERAGE_FIELDS

#define ADD_TO_TYPE_AVERAGE_FIELDS (   Type,
  nullArg 
)
Value:
forAll(averageFields<Type>(), i) \
{ \
averageFields<Type>()[i].add(subMesh, !final); \
}

◆ CORRECT_TYPE_AVERAGE_FIELDS

#define CORRECT_TYPE_AVERAGE_FIELDS (   Type,
  nullArg 
)
Value:
forAll(averageFields<Type>(), i) \
{ \
averageFields<Type>()[i].correct(subMesh, !final); \
}

◆ CLEAR_TYPE_AVERAGE_FIELDS

#define CLEAR_TYPE_AVERAGE_FIELDS (   Type,
  nullArg 
)
Value:
forAll(averageFields<Type>(), i) \
{ \
averageFields<Type>()[i].clear(true); \
}

◆ RESET_TYPE_AVERAGE_FIELDS

#define RESET_TYPE_AVERAGE_FIELDS (   Type,
  nullArg 
)
Value:
forAll(averageFields<Type>(), i) \
{ \
averageFields<Type>()[i].reset(); \
}

◆ EVAL_TYPE_DERIVED_PATCH_FIELDS

#define EVAL_TYPE_DERIVED_PATCH_FIELDS (   Type,
  GeoField 
)
Value:
{ \
HashTable<GeoField<Type>*> fields \
( \
mesh_.lookupClass<GeoField<Type>>() \
); \
forAllIter(typename HashTable<GeoField<Type>*>, fields, iter) \
{ \
forAll(mesh_.boundary(), patchi) \
{ \
const LagrangianPatch& patch = mesh_.boundary()[patchi]; \
\
if \
( \
patch.mesh().size() \
&& !polyPatch::constraintType(patch.type()) \
) \
{ \
iter()->boundaryFieldRef()[patchi].evaluate \
( \
NullObjectNonConstRef<PstreamBuffers>(), \
fraction \
); \
} \
} \
} \
}
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
Definition: UList.H:458
label patchi
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Definition: createFields.H:234