Perform noise analysis on point-based pressure data. More...
Public Member Functions | |
TypeName ("pointNoise") | |
pointNoise (const dictionary &dict, const bool readFields=true) | |
virtual | ~pointNoise ()=default |
virtual bool | read (const dictionary &dict) |
virtual void | calculate () |
![]() | |
TypeName ("noiseModel") | |
declareRunTimeSelectionTable (autoPtr, noiseModel, dictionary,(const dictionary &dict),(dict)) | |
noiseModel (const dictionary &dict, const bool readFields=true) | |
virtual | ~noiseModel ()=default |
tmp< Foam::scalarField > | PSD (const scalarField &PSDf) const |
tmp< scalarField > | SPL (const scalarField &Prms2, const scalar f) const |
tmp< scalarField > | SPL (const scalarField &Prms2, const scalarField &f) const |
void | cleanFFTW () |
void | writeWeightings () const |
Protected Member Functions | |
void | filterTimeData (const scalarField &t0, const scalarField &p0, scalarField &t, scalarField &p) const |
void | processData (const label dataseti, const Function1Types::CSV< scalar > &data) |
![]() | |
void | readWriteOption (const dictionary &dict, const word &lookup, bool &option) const |
scalar | checkUniformTimeStep (const scalarList ×) const |
bool | validateBounds (const scalarList &p) const |
label | findStartTimeIndex (const instantList &allTimes, const scalar startTime) const |
fileName | baseFileDir (const label dataseti) const |
tmp< scalarField > | uniformFrequencies (const scalar deltaT, const bool check) const |
tmp< scalarField > | octaves (const scalarField &data, const scalarField &f, const labelUList &freqBandIDs) const |
tmp< scalarField > | Pf (const scalarField &p) const |
tmp< scalarField > | meanPf (const scalarField &p) const |
tmp< scalarField > | RMSmeanPf (const scalarField &p) const |
tmp< scalarField > | PSDf (const scalarField &p, const scalar deltaT) const |
scalar | RAf (const scalar f) const |
scalar | gainA (const scalar f) const |
scalar | RBf (const scalar f) const |
scalar | gainB (const scalar f) const |
scalar | RCf (const scalar f) const |
scalar | gainC (const scalar f) const |
scalar | RDf (const scalar f) const |
scalar | gainD (const scalar f) const |
Protected Attributes | |
List< fileName > | inputFileNames_ |
![]() | |
const dictionary | dict_ |
scalar | rhoRef_ |
label | nSamples_ |
scalar | fLower_ |
scalar | fUpper_ |
scalar | startTime_ |
autoPtr< windowModel > | windowModelPtr_ |
word | graphFormat_ |
weightingType | SPLweighting_ |
scalar | dBRef_ |
scalar | minPressure_ |
scalar | maxPressure_ |
fileName | outputPrefix_ |
bool | writePrmsf_ |
bool | writeSPL_ |
bool | writePSD_ |
bool | writePSDf_ |
bool | writeOctaves_ |
planInfo | planInfo_ |
Additional Inherited Members | |
![]() | |
enum | weightingType { none, dBA, dBB, dBC, dBD } |
![]() | |
static autoPtr< noiseModel > | New (const dictionary &dict) |
![]() | |
static const Enum< weightingType > | weightingTypeNames_ |
![]() | |
static void | setOctaveBands (const scalarField &f, const scalar fLower, const scalar fUpper, const scalar octave, labelList &fBandIDs, scalarField &fCentre) |
Perform noise analysis on point-based pressure data.
Input data is read from a dictionary, e.g.
// Pressure reference pRef 0; // Number of samples in sampling window, default = 2^16 (=65536) N 4096; // Lower frequency bounds fl 25; // Upper frequency bounds fu 25; // Start time startTime 0; windowModel <modelType> <modelType>Coeffs { ... } // Pressure data supplied in CSV file format file "pressureData"; //files ("pressureData1" "pressureData2"); nHeaderLine 1; refColumn 0; componentColumns (1); separator " "; mergeSeparators yes; graphFormat raw;
Definition at line 90 of file pointNoise.H.
pointNoise | ( | const dictionary & | dict, |
const bool | readFields = true |
||
) |
Definition at line 218 of file pointNoise.C.
References dict, pointNoise::read(), and Foam::readFields().
|
virtualdefault |
|
protected |
Definition at line 40 of file pointNoise.C.
References DynamicList::append(), forAll, p, and p0.
|
protected |
Definition at line 65 of file pointNoise.C.
References Foam::average(), Foam::endl(), f(), g, Foam::Info, Foam::nl, windowModel::nSamples(), p, and graph::wordify().
Referenced by pointNoise::calculate().
TypeName | ( | "pointNoise" | ) |
|
virtual |
Reimplemented from noiseModel.
Definition at line 255 of file pointNoise.C.
References dict, pointNoise::inputFileNames_, noiseModel::read(), and List::resize().
Referenced by pointNoise::pointNoise().
|
virtual |
Implements noiseModel.
Definition at line 231 of file pointNoise.C.
References noiseModel::dict_, argList::envGlobalPath(), string::expand(), forAll, pointNoise::inputFileNames_, fileName::isAbsolute(), UPstream::master(), and pointNoise::processData().
Definition at line 100 of file pointNoise.H.
Referenced by pointNoise::calculate(), and pointNoise::read().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.