93 Foam::scalar checkUniformTimeStep(
const scalarField& t)
101 scalar dT = t[i] - t[i-1];
107 if (
mag(deltaT - dT) > SMALL)
110 <<
"Unable to process data with a variable time step" 118 <<
"Unable to create FFT with a single value" 128 int main(
int argc,
char *argv[])
134 #include "createFields.H" 148 <<
"Block size N = " <<
N 149 <<
" is larger than number of data = " << t.size()
153 Info<<
" read " << t.size() <<
" values" <<
nl <<
endl;
156 Info<<
"Creating noise FFT" <<
endl;
157 noiseFFT nfft(checkUniformTimeStep(t),
p);
161 fileName baseFileName(pData.fName().lessExt());
167 graph Lf(nfft.Lf(Pf));
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)
Templated CSV container data entry. Reference column is always a scalar, e.g. time.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
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 > &)
virtual Ostream & write(const token &)=0
Write next token to stream.
FFT of the pressure field.
const string & title() const
Return the title of this error type.