OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

noiseFFT Class Reference

FFT of the pressure field. More...

Inheritance diagram for noiseFFT:
Collaboration diagram for noiseFFT:

List of all members.


Public Member Functions

 noiseFFT (const scalar deltat, const scalarField &pressure)
 Construct from pressure field.
 noiseFFT (Istream &)
 Construct from Istream.
 noiseFFT (const fileName &pFileName, const label skip=0)
 Construct from pressure field file name.
graph pt () const
 Return the graph of p(t).
tmp< scalarField > window (const label N, const label n) const
 Return the nth window.
tmp< scalarField > Hanning (const label N) const
 Return the Hanning window function.
tmp< scalarField > Pf (const tmp< scalarField > &pn) const
 Return the fft of the given pressure data.
graph meanPf (const label N, const label nw) const
 Return the multi-window mean fft of the complete pressure data.
graph RMSmeanPf (const label N, const label nw) const
 Return the multi-window RMS mean fft of the complete pressure data.
graph Lf (const graph &gPf) const
 Return the narrow-band PFL (pressure-fluctuation level) spectrum.
graph Ldelta (const graph &gLf, const scalar f1, const scalar fU) const
 Return the one-third-octave-band PFL spectrum.
graph Pdelta (const graph &gLf, const scalar f1, const scalar fU) const
 Return the one-third-octave-band pressure spectrum.
scalar Lsum (const graph &gLf) const
 Return the total PFL as the sum of Lf over all frequencies.
scalar dbToPa (const scalar db) const
 Convert the db into Pa.
tmp< scalarField > dbToPa (const tmp< scalarField > &db) const
 Convert the db-field into Pa.

Static Public Attributes

static scalar p0 = 2e-5
 Reference pressure.

Detailed Description

FFT of the pressure field.

Source files

Definition at line 45 of file noiseFFT.H.


Constructor & Destructor Documentation

noiseFFT ( const scalar  deltat,
const scalarField &  pressure 
)

Construct from pressure field.

Definition at line 33 of file noiseFFT.C.

noiseFFT ( Istream &   ) 

Construct from Istream.

noiseFFT ( const fileName &  pFileName,
const label  skip = 0 
)

Construct from pressure field file name.

Definition at line 44 of file noiseFFT.C.


Member Function Documentation

Foam::graph pt (  )  const

Return the graph of p(t).

Definition at line 103 of file noiseFFT.C.

Foam::tmp< Foam::scalarField > window ( const label  N,
const label  n 
) const

Return the nth window.

Definition at line 123 of file noiseFFT.C.

Foam::tmp< Foam::scalarField > Hanning ( const label  N  )  const

Return the Hanning window function.

Definition at line 154 of file noiseFFT.C.

Foam::tmp< Foam::scalarField > Pf ( const tmp< scalarField > &  pn  )  const

Return the fft of the given pressure data.

Definition at line 169 of file noiseFFT.C.

Foam::graph meanPf ( const label  N,
const label  nw 
) const

Return the multi-window mean fft of the complete pressure data.

Definition at line 204 of file noiseFFT.C.

Foam::graph RMSmeanPf ( const label  N,
const label  nw 
) const

Return the multi-window RMS mean fft of the complete pressure data.

Definition at line 250 of file noiseFFT.C.

Foam::graph Lf ( const graph &  gPf  )  const

Return the narrow-band PFL (pressure-fluctuation level) spectrum.

Definition at line 295 of file noiseFFT.C.

Foam::graph Ldelta ( const graph &  gLf,
const scalar  f1,
const scalar  fU 
) const

Return the one-third-octave-band PFL spectrum.

starting at octave with mean frequency f1

Definition at line 309 of file noiseFFT.C.

Foam::graph Pdelta ( const graph &  gLf,
const scalar  f1,
const scalar  fU 
) const

Return the one-third-octave-band pressure spectrum.

starting at octave with mean frequency f1

Definition at line 365 of file noiseFFT.C.

Foam::scalar Lsum ( const graph &  gLf  )  const

Return the total PFL as the sum of Lf over all frequencies.

Definition at line 420 of file noiseFFT.C.

Foam::scalar dbToPa ( const scalar  db  )  const

Convert the db into Pa.

Definition at line 437 of file noiseFFT.C.

Foam::tmp< Foam::scalarField > dbToPa ( const tmp< scalarField > &  db  )  const

Convert the db-field into Pa.

Definition at line 444 of file noiseFFT.C.

References noiseFFT::p0, and Foam::pow().

Here is the call graph for this function:


Member Data Documentation

Foam::scalar p0 = 2e-5 [static]

Reference pressure.

Definition at line 58 of file noiseFFT.H.

Referenced by noiseFFT::dbToPa().


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd