45 nWindow_(
dict.getOrDefault(
"nWindow", -1))
84 <<
" is larger than total number of data points = " << nSamplesTotal
88 const label nWindowAvailable = nWindowsTotal(nSamplesTotal);
92 nWindow_ = nWindowAvailable;
95 if (nWindow_ > nWindowAvailable)
98 <<
"Number of data points calculated with " << nWindow_
99 <<
" windows greater than the total number of data points"
102 <<
" Total number of data points = " << nSamplesTotal <<
nl
103 <<
" Maximum number of windows = " << nWindowAvailable <<
nl
104 <<
" Requested number of windows = " << nWindow_
108 const label nRequiredSamples =
109 nWindow_*
nSamples - (nWindow_ - 1)*nOverlapSamples_;
112 <<
" Total samples : " << nSamplesTotal <<
nl
114 <<
" Number of windows : " << nWindow_ <<
nl
115 <<
" Overlap size : " << nOverlapSamples_ <<
nl
116 <<
" Required number of samples : " << nRequiredSamples
119 return nRequiredSamples;
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
virtual void validate()
Validate the turbulence fields after construction.
Base class for windowing models.
label nWindow() const
Return the number of windows.
label nWindowsTotal(label nSamplesTotal) const
Return the total number of windows for a given number of samples.
label nSamples() const
Return the number of samples in the window.
label nOverlapSamples_
Number of overlap samples per window.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
const label nSamples(pdfDictionary.get< label >("nSamples"))