Go to the documentation of this file.
59 if (t0[timeI] >= startTime_)
79 const word fNameBase(
data.fName().nameLessExt());
89 Info<<
" read " << t.size() <<
" values" <<
nl <<
endl;
93 const scalar deltaT = checkUniformTimeStep(t);
95 if (!validateBounds(
p))
97 Info<<
"No noise data generated" <<
endl;
103 windowModelPtr_->validate(t.size());
105 const scalar deltaf = 1.0/(deltaT*win.
nSamples());
106 const fileName outDir(baseFileDir(dataseti)/fNameBase);
126 g.setXRange(fLower_, fUpper_);
128 Info<<
" Creating graph for " <<
g.title() <<
endl;
146 g.setXRange(fLower_, fUpper_);
148 Info<<
" Creating graph for " <<
g.title() <<
endl;
164 g.setXRange(fLower_, fUpper_);
166 Info<<
" Creating graph for " <<
g.title() <<
endl;
177 "SPL(f) [" + weightingTypeNames_[SPLweighting_] +
"]",
182 g.setXRange(fLower_, fUpper_);
184 Info<<
" Creating graph for " <<
g.title() <<
endl;
213 "SPL(fm) [" + weightingTypeNames_[SPLweighting_] +
"]",
215 SPL(Prms13f, octave13FreqCentre)
218 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.
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 (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.
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)
Return true if string starts with a '/'.
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)