Go to the source code of this file.
Original source file streamlinesParticle.C
Definition in file streamlinesParticle.C.
◆ InterpolateType
#define InterpolateType |
( |
|
Type, |
|
|
|
nullArg |
|
) |
| |
Value: if (td.Type##Interp_.set(fieldi)) \
{ \
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)
◆ 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_ |