Go to the documentation of this file.
60 if (t0[timeI] >= startTime_)
80 const word fNameBase =
data.fName().nameLessExt();
87 Info<<
" read " << t.size() <<
" values" <<
nl <<
endl;
91 const scalar deltaT = checkUniformTimeStep(t);
93 if (!validateBounds(
p))
95 Info<<
"No noise data generated" <<
endl;
101 windowModelPtr_->validate(t.size());
103 const scalar deltaf = 1.0/(deltaT*win.
nSamples());
104 fileName outDir(baseFileDir(dataseti)/fNameBase);
115 graph Prmsf(nfft.RMSmeanPf(win));
127 graph PSDf(nfft.PSDf(win));
189 graph Prms13f(nfft.octaves(PSDf, octave13BandIDs));
void setData(scalarList &data)
const string & title() const
virtual bool read(const dictionary &dict)
Read from dictionary.
Class to create, store and output qgraph files.
pointNoise(const dictionary &dict, const bool readFields=true)
Constructor.
A class for handling words, derived from Foam::string.
static void octaveBandInfo(const scalarField &f, const scalar fLower, const scalar fUpper, const scalar octave, labelList &fBandIDs, scalarField &fCentre)
Return a list of the frequency indices wrt f field that.
A class for handling file names.
Base class for noise models.
Performs FFT of pressure field to generate noise data.
static fileName envGlobalPath()
Global case (directory) from environment variable.
static word wordify(const string &sname)
Helper function to convert string name into appropriate word.
void setXRange(const scalar x0, const scalar x1)
List< fileName > inputFileNames_
Input file names - optional.
defineTypeNameAndDebug(pointNoise, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
static tmp< scalarField > PSD(const scalarField &PSDf)
Return the PSD [dB/Hz].
const dictionary dict_
Copy of dictionary used for construction.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
messageStream Info
Information stream (uses stdout - output is on the master only)
virtual bool read(const dictionary &dict)
Read from dictionary.
void resize(const label newSize)
Adjust allocated size of list.
void write(Ostream &, const word &format) const
Write graph to stream in given format.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
static bool master(const label communicator=0)
Am I the master process.
Perform noise analysis on point-based pressure data.
string & expand(const bool allowEmpty=false)
const string & title() const
Return the title of this error type.
label nSamples() const
Return the number of samples in the window.
virtual void calculate()
Calculate.
const volScalarField & p0
void processData(const label dataseti, const Function1Types::CSV< scalar > &data)
Process the CSV data.
Base class for windowing models.
void filterTimeData(const scalarField &t0, const scalarField &p0, scalarField &t, scalarField &p) const
addToRunTimeSelectionTable(noiseModel, pointNoise, dictionary)
Database for solution data, solver performance and other reduced data.
static bool isAbsolute(const std::string &str)
Return true if string starts with a '/'.
static tmp< scalarField > SPL(const scalarField &Prms2)
Return the SPL [dB].