Go to the documentation of this file.
59 if (t0[timeI] >= startTime_)
79 const word fNameBase(
data.fName().nameLessExt());
85 Info<<
" read " << t.size() <<
" values" <<
nl <<
endl;
87 if (!validateBounds(
p))
89 Info<<
"No noise data generated" <<
endl;
95 const scalar deltaT = checkUniformTimeStep(t);
102 windowModelPtr_->validate(t.size());
104 const scalar deltaf = 1.0/(deltaT*win.
nSamples());
105 const fileName outDir(baseFileDir(dataseti)/fNameBase);
125 g.setXRange(fLower_, fUpper_);
127 Info<<
" Creating graph for " <<
g.title() <<
endl;
145 g.setXRange(fLower_, fUpper_);
147 Info<<
" Creating graph for " <<
g.title() <<
endl;
163 g.setXRange(fLower_, fUpper_);
165 Info<<
" Creating graph for " <<
g.title() <<
endl;
176 "SPL(f) [" + weightingTypeNames_[SPLweighting_] +
"]",
181 g.setXRange(fLower_, fUpper_);
183 Info<<
" Creating graph for " <<
g.title() <<
endl;
212 "SPL(fm) [" + weightingTypeNames_[SPLweighting_] +
"]",
214 SPL(Prms13f, octave13FreqCentre)
217 Info<<
" Creating graph for " <<
g.title() <<
endl;
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.
A class for handling file names.
Base class for noise models.
void resize(const label len)
Adjust allocated size of list.
static fileName envGlobalPath()
Global case (directory) from environment variable.
static word wordify(const string &sname)
Helper function to convert string name into appropriate word.
List< fileName > inputFileNames_
Input file names - optional.
static bool master(const label communicator=worldComm)
Am I the master process.
defineTypeNameAndDebug(pointNoise, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
const dictionary dict_
Copy of dictionary used for construction.
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual bool read(const dictionary &dict)
Read from dictionary.
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.
const uniformDimensionedVectorField & g
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
Perform noise analysis on point-based pressure data.
string & expand(const bool allowEmpty=false)
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)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)