tmp< Field< Type > > apply(const Field< Type > &fld, const label windowI) const
Return the windowed data.
windowModel(const dictionary &dict, const label nSamples)
Construct from dictionary.
A class for managing temporary objects.
declareRunTimeSelectionTable(autoPtr, windowModel, dictionary,(const dictionary &dict, const label nSamples),(dict, nSamples))
static autoPtr< windowModel > New(const dictionary &dict, const label nSamples)
Return a reference to the selected window model.
label nWindow_
Number of windows.
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))
label nWindowsTotal(label nSamplesTotal) const
Return the total number of windows for a given number of samples.
virtual ~windowModel()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
label nOverlapSamples_
Number of overlap samples per window.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Macros to ease declaration of run-time selection tables.
TypeName("windowModel")
Runtime type information.
label nWindow() const
Return the number of windows.
label nSamples() const
Return the number of samples in the window.
label validate(label n)
Validate that the window is applicable to the data set size, and.
Base class for windowing models.