79 const word fNameBase(
data.fName().nameLessExt());
89 Info<<
"No noise data generated" <<
endl;
104 const scalar deltaf = 1.0/(deltaT*win.
nSamples());
127 Info<<
" Creating graph for " <<
g.title() <<
endl;
147 Info<<
" Creating graph for " <<
g.title() <<
endl;
165 Info<<
" Creating graph for " <<
g.title() <<
endl;
183 Info<<
" Creating graph for " <<
g.title() <<
endl;
214 SPL(Prms13f, octave13FreqCentre)
217 Info<<
" Creating graph for " <<
g.title() <<
endl;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
const uniformDimensionedVectorField & g
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
void transfer(List< T > &list)
void resize(const label len)
Adjust allocated size of list.
virtual bool read()
Re-read model coefficients if they have changed.
T & first()
Return the first element of the list.
void size(const label n)
Older name for setAddressableSize.
static fileName envGlobalPath()
Global case (directory) from environment variable.
Database for solution data, solver performance and other reduced data.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
A class for handling file names.
static bool isAbsolute(const std::string &str)
Class to create, store and output qgraph files.
static word wordify(const string &sname)
Helper function to convert string name into appropriate word.
Base class for noise models.
tmp< scalarField > uniformFrequencies(const scalar deltaT, const bool check) const
scalar rhoRef_
Reference density (to convert from kinematic to static pressure)
tmp< scalarField > octaves(const scalarField &data, const scalarField &f, const labelUList &freqBandIDs) const
Generate octave data.
tmp< scalarField > RMSmeanPf(const scalarField &p) const
scalar fUpper_
Upper frequency limit, default = 10kHz.
tmp< Foam::scalarField > PSD(const scalarField &PSDf) const
PSD [dB/Hz].
bool writePSD_
Write PSD; default = yes.
word graphFormat_
Graph format.
static void setOctaveBands(const scalarField &f, const scalar fLower, const scalar fUpper, const scalar octave, labelList &fBandIDs, scalarField &fCentre)
fileName baseFileDir(const label dataseti) const
Return the base output directory.
bool writeOctaves_
Write writeOctaves; default = yes.
tmp< scalarField > SPL(const scalarField &Prms2, const scalar f) const
SPL [dB].
autoPtr< windowModel > windowModelPtr_
Window model.
static const Enum< weightingType > weightingTypeNames_
bool writeSPL_
Write SPL; default = yes.
const dictionary dict_
Copy of dictionary used for construction.
bool writePrmsf_
Write Prmsf; default = yes.
weightingType SPLweighting_
Weighting.
scalar checkUniformTimeStep(const scalarList ×) const
Check and return uniform time step.
bool writePSDf_
Write PSDf; default = yes.
tmp< scalarField > PSDf(const scalarField &p, const scalar deltaT) const
scalar startTime_
Start time, default = 0s.
bool validateBounds(const scalarList &p) const
Return true if all pressure data is within min/max bounds.
scalar fLower_
Lower frequency limit, default = 25Hz.
Perform noise analysis on point-based pressure data.
void filterTimeData(const scalarField &t0, const scalarField &p0, scalarField &t, scalarField &p) const
void processData(const label dataseti, const Function1Types::CSV< scalar > &data)
Process the CSV data.
virtual bool read(const dictionary &dict)
Read from dictionary.
List< fileName > inputFileNames_
Input file names - optional.
virtual void calculate()
Calculate.
virtual bool write(const bool valid=true) const
Write using setting from DB.
splitCell * master() const
string & expand(const bool allowEmpty=false)
Base class for windowing models.
label nSamples() const
Return the number of samples in the window.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const volScalarField & p0
messageStream Info
Information stream (stdout output on master, null elsewhere)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.