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

Go to the source code of this file.

Macros

#define InterpolateType(Type, nullArg)
 
#define EndTrackType(Type, nullArg)
 
#define ReadSampledTypes(Type, nullArg)
 
#define SampledTypesInit(Type, nullArg)    , sampled##Type##s_(p.sampled##Type##s_)
 
#define WriteSampledTypes(Type, nullArg)    << token::SPACE << p.sampled##Type##s_
 

Detailed Description

Original source file streamlinesParticle.C

Definition in file streamlinesParticle.C.

Macro Definition Documentation

◆ InterpolateType

#define InterpolateType (   Type,
  nullArg 
)
Value:
if (td.Type##Interp_.set(fieldi)) \
{ \
const Type s = \
td.Type##Interp_[fieldi].interpolate \
( \
position, \
celli, \
facei \
); \
\
sampled##Type##s_.setSize(td.Type##Interp_.size()); \
sampled##Type##s_[fieldi].append \
( \
td.trackOutside_ ? transform_.invTransform(s) : s \
); \
}
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))

◆ EndTrackType

#define EndTrackType (   Type,
  nullArg 
)
Value:
if (td.Type##Interp_.set(fieldi)) \
{ \
if (!td.trackForward_) reverse(sampled##Type##s_[fieldi]); \
td.all##Type##s_[fieldi].append(sampled##Type##s_[fieldi]); \
sampled##Type##s_[fieldi].clear(); \
}
void reverse(UList< T > &, const label n)
Definition: UListI.H:334

◆ ReadSampledTypes

#define ReadSampledTypes (   Type,
  nullArg 
)
Value:
List<List<Type>> sampled##Type##s; \
is >> sampled##Type##s; \
sampled##Type##s_.setSize(sampled##Type##s.size()); \
forAll(sampled##Type##s, i) \
{ \
sampled##Type##s_[i].transfer(sampled##Type##s[i]); \
}

◆ SampledTypesInit

#define SampledTypesInit (   Type,
  nullArg 
)     , sampled##Type##s_(p.sampled##Type##s_)

◆ WriteSampledTypes

#define WriteSampledTypes (   Type,
  nullArg 
)     << token::SPACE << p.sampled##Type##s_