Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pointNoise Class Reference

Perform noise analysis on point-based pressure data. More...

Inheritance diagram for pointNoise:
Inheritance graph
[legend]
Collaboration diagram for pointNoise:
Collaboration graph
[legend]

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 ()
 
- Public Member Functions inherited from noiseModel
 TypeName ("noiseModel")
 
 declareRunTimeSelectionTable (autoPtr, noiseModel, dictionary,(const dictionary &dict),(dict))
 
 noiseModel (const dictionary &dict, const bool readFields=true)
 
virtual ~noiseModel ()=default
 
tmp< Foam::scalarFieldPSD (const scalarField &PSDf) const
 
tmp< scalarFieldSPL (const scalarField &Prms2, const scalar f) const
 
tmp< scalarFieldSPL (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)
 
- Protected Member Functions inherited from noiseModel
void readWriteOption (const dictionary &dict, const word &lookup, bool &option) const
 
scalar checkUniformTimeStep (const scalarList &times) const
 
bool validateBounds (const scalarList &p) const
 
label findStartTimeIndex (const instantList &allTimes, const scalar startTime) const
 
fileName baseFileDir (const label dataseti) const
 
tmp< scalarFielduniformFrequencies (const scalar deltaT, const bool check) const
 
tmp< scalarFieldoctaves (const scalarField &data, const scalarField &f, const labelUList &freqBandIDs) const
 
tmp< scalarFieldPf (const scalarField &p) const
 
tmp< scalarFieldmeanPf (const scalarField &p) const
 
tmp< scalarFieldRMSmeanPf (const scalarField &p) const
 
tmp< scalarFieldPSDf (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< fileNameinputFileNames_
 
- Protected Attributes inherited from noiseModel
const dictionary dict_
 
scalar rhoRef_
 
label nSamples_
 
scalar fLower_
 
scalar fUpper_
 
scalar startTime_
 
autoPtr< windowModelwindowModelPtr_
 
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

- Public Types inherited from noiseModel
enum  weightingType {
  none, dBA, dBB, dBC,
  dBD
}
 
- Static Public Member Functions inherited from noiseModel
static autoPtr< noiseModelNew (const dictionary &dict)
 
- Static Public Attributes inherited from noiseModel
static const Enum< weightingTypeweightingTypeNames_
 
- Static Protected Member Functions inherited from noiseModel
static void setOctaveBands (const scalarField &f, const scalar fLower, const scalar fUpper, const scalar octave, labelList &fBandIDs, scalarField &fCentre)
 

Detailed Description

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;
Source files
See also
noiseModel.H windowModel.H

Definition at line 90 of file pointNoise.H.

Constructor & Destructor Documentation

◆ pointNoise()

pointNoise ( const dictionary dict,
const bool  readFields = true 
)

Definition at line 218 of file pointNoise.C.

References dict, pointNoise::read(), and Foam::readFields().

Here is the call graph for this function:

◆ ~pointNoise()

virtual ~pointNoise ( )
virtualdefault

Member Function Documentation

◆ filterTimeData()

void filterTimeData ( const scalarField t0,
const scalarField p0,
scalarField t,
scalarField p 
) const
protected

Definition at line 40 of file pointNoise.C.

References DynamicList::append(), forAll, p, and p0.

Here is the call graph for this function:

◆ processData()

void processData ( const label  dataseti,
const Function1Types::CSV< scalar > &  data 
)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TypeName()

TypeName ( "pointNoise"  )

◆ read()

bool read ( const dictionary dict)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate()

void calculate ( )
virtual

Member Data Documentation

◆ inputFileNames_

List<fileName> inputFileNames_
protected

Definition at line 100 of file pointNoise.H.

Referenced by pointNoise::calculate(), and pointNoise::read().


The documentation for this class was generated from the following files: