Go to the documentation of this file.
128 struct octaveBandInfo
145 noiseModel(
const noiseModel&) =
delete;
148 void operator=(
const noiseModel&) =
delete;
156 const dictionary
dict_;
297 scalar
RAf(
const scalar
f)
const;
300 scalar
gainA(
const scalar
f)
const;
303 scalar
RBf(
const scalar
f)
const;
306 scalar
gainB(
const scalar
f)
const;
309 scalar
RCf(
const scalar
f)
const;
312 scalar
gainC(
const scalar
f)
const;
315 scalar
RDf(
const scalar
f)
const;
318 scalar
gainD(
const scalar
f)
const;
virtual ~noiseModel()=default
Destructor.
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
scalar checkUniformTimeStep(const scalarList ×) const
Check and return uniform time step.
virtual bool read(const dictionary &dict)
Read from dictionary.
void readWriteOption(const dictionary &dict, const word &lookup, bool &option) const
Helper function to read write options and provide info feedback.
A class for handling words, derived from Foam::string.
A class for handling file names.
Base class for noise models.
A class for managing temporary objects.
virtual void calculate()=0
Abstract call to calculate.
scalar fUpper_
Upper frequency limit, default = 10kHz.
scalar RBf(const scalar f) const
B weighting function.
declareRunTimeSelectionTable(autoPtr, noiseModel, dictionary,(const dictionary &dict),(dict))
Run time selection table.
tmp< scalarField > octaves(const scalarField &data, const scalarField &f, const labelUList &freqBandIDs) const
Generate octave data.
label findStartTimeIndex(const instantList &allTimes, const scalar startTime) const
Find and return start time index.
scalar fLower_
Lower frequency limit, default = 25Hz.
scalar RCf(const scalar f) const
C weighting function.
scalar gainB(const scalar f) const
B weighting as gain in dB.
scalar minPressure_
Min pressure value.
const dictionary dict_
Copy of dictionary used for construction.
static void check(const int retVal, const char *what)
scalar rhoRef_
Reference density (to convert from kinematic to static pressure)
static autoPtr< noiseModel > New(const dictionary &dict)
Selector.
autoPtr< windowModel > windowModelPtr_
Window model.
bool writeOctaves_
Write writeOctaves; default = yes.
scalar startTime_
Start time, default = 0s.
static void setOctaveBands(const scalarField &f, const scalar fLower, const scalar fUpper, const scalar octave, labelList &fBandIDs, scalarField &fCentre)
bool writePSD_
Write PSD; default = yes.
void writeWeightings() const
Helper function to check weightings.
Lookup type of boundary radiation properties.
scalar gainC(const scalar f) const
C weighting as gain in dB.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool validateBounds(const scalarList &p) const
Return true if all pressure data is within min/max bounds.
scalar maxPressure_
Min pressure value.
FFTW planner information.
bool writePSDf_
Write PSDf; default = yes.
scalar RDf(const scalar f) const
D weighting function.
bool writePrmsf_
Write Prmsf; default = yes.
static const Enum< weightingType > weightingTypeNames_
fileName outputPrefix_
Output file prefix, default = ''.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
TypeName("noiseModel")
Runtime type information.
tmp< scalarField > RMSmeanPf(const scalarField &p) const
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void cleanFFTW()
Clean up the FFTW.
tmp< scalarField > SPL(const scalarField &Prms2, const scalar f) const
SPL [dB].
Macros to ease declaration of run-time selection tables.
fileName baseFileDir(const label dataseti) const
Return the base output directory.
scalar gainD(const scalar f) const
D weighting as gain in dB.
tmp< scalarField > PSDf(const scalarField &p, const scalar deltaT) const
tmp< scalarField > uniformFrequencies(const scalar deltaT, const bool check) const
word graphFormat_
Graph format.
scalar gainA(const scalar f) const
A weighting as gain in dB.
tmp< Foam::scalarField > PSD(const scalarField &PSDf) const
PSD [dB/Hz].
weightingType SPLweighting_
Weighting.
bool writeSPL_
Write SPL; default = yes.
scalar RAf(const scalar f) const
A weighting function.
Database for solution data, solver performance and other reduced data.
planInfo planInfo_
Plan information for FFTW.
scalar dBRef_
Reference for dB calculation, default = 2e-5.
tmp< scalarField > Pf(const scalarField &p) const
Return the fft of the given pressure data.
tmp< scalarField > meanPf(const scalarField &p) const
Return the multi-window mean fft of the complete pressure data [Pa].
label nSamples_
Number of samples in sampling window, default = 2^16.