94 Foam::scalar checkUniformTimeStep(
const scalarField& t)
102 const scalar dT = t[i] - t[i-1];
108 if (
mag(deltaT - dT) > rootSmall)
111 <<
"Unable to process data with a variable time step" 119 <<
"Unable to create FFT with a single value" 129 int main(
int argc,
char *argv[])
135 #include "createFields.H" 153 <<
"Block size N = " <<
N 154 <<
" is larger than number of data = " << t.size()
158 Info<<
" read " << t.size() <<
" values" <<
nl <<
endl;
161 Info<<
"Creating noise FFT" <<
endl;
162 noiseFFT nfft(checkUniformTimeStep(t),
p);
167 fileName baseFileName(pDateFileName.lessExt());
173 graph Lf(nfft.Lf(Pf));
virtual Ostream & write(const char)=0
Write character.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
const string & title() const
Return the title of this error type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Class to create, store and output qgraph files.
static word wordify(const string &sname)
Helper function to convert string name into appropriate word.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
dimensioned< scalar > mag(const dimensioned< Type > &)
FFT of the pressure field.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.