label validate(label n)
Validate that the window is applicable to the data set size, and.
scalar overlapPercent_
Overlap percent.
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.
label nWindow() const
Return the number of windows.
TypeName("windowModel")
Runtime type information.
windowModel(const dictionary &dict, const label nSamples)
Construct from dictionary.
Base class for windowing models.
label nSamples() const
Return the number of samples in the window.
scalar overlapPercent() const
Return the overlap percent.
label nOverlapSamples() const
Return number of overlap samples per window.
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.
label nWindow_
Number of windows.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
declareRunTimeSelectionTable(autoPtr, windowModel, dictionary,(const dictionary &dict, const label nSamples),(dict, nSamples))