41 if (nSamples >
fld.size())
44 <<
"Number of samples in sampling window is greater than the " 45 <<
"size of the input field" <<
nl 46 <<
" input field size = " <<
fld.size() <<
nl 48 <<
" requested window index = " << windowI
54 auto& result = tresult.ref();
60 <<
"Requested window " << windowI <<
" outside of range. " 61 <<
"Number of available windows is " <<
nWindow errorManipArg< error, int > exit(error &err, const int errNo=1)
label nWindowsTotal(label nSamplesTotal) const
Return the total number of windows for a given number of samples.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
label nOverlapSamples_
Number of overlap samples per window.
SubField is a Field obtained as a section of another Field, without its own allocation. SubField is derived from a SubList rather than a List.
label nWindow() const
Return the number of windows.
Generic templated field type.
label nSamples() const
Return the number of samples in the window.
errorManip< error > abort(error &err)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
tmp< Field< Type > > apply(const Field< Type > &fld, const label windowI) const
Return the windowed data.
static autoPtr< windowModel > New(const dictionary &dict, const label nSamples)
Return a reference to the selected window model.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)