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;
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
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,...
A class for handling file names.
Base class for noise models.
tmp< scalarField > uniformFrequencies(const scalar deltaT, const bool check) const
label findStartTimeIndex(const instantList &allTimes, const scalar startTime) const
Find and return start time index.
scalar RAf(const scalar f) const
A weighting function.
scalar rhoRef_
Reference density (to convert from kinematic to static pressure)
label nSamples_
Number of samples in sampling window, default = 2^16.
tmp< scalarField > octaves(const scalarField &data, const scalarField &f, const labelUList &freqBandIDs) const
Generate octave data.
tmp< scalarField > RMSmeanPf(const scalarField &p) const
virtual void calculate()=0
Abstract call to calculate.
scalar fUpper_
Upper frequency limit, default = 10kHz.
scalar gainC(const scalar f) const
C weighting as gain in dB.
tmp< Foam::scalarField > PSD(const scalarField &PSDf) const
PSD [dB/Hz].
static autoPtr< noiseModel > New(const dictionary &dict)
Selector.
tmp< scalarField > meanPf(const scalarField &p) const
Return the multi-window mean fft of the complete pressure data [Pa].
scalar maxPressure_
Min pressure value.
bool writePSD_
Write PSD; default = yes.
scalar gainA(const scalar f) const
A weighting as gain in dB.
scalar minPressure_
Min pressure value.
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.
virtual bool read(const dictionary &dict)
Read from dictionary.
bool writeOctaves_
Write writeOctaves; default = yes.
fileName outputPrefix_
Output file prefix, default = ''.
scalar RDf(const scalar f) const
D weighting function.
tmp< scalarField > Pf(const scalarField &p) const
Return the fft of the given pressure data.
scalar RCf(const scalar f) const
C weighting function.
tmp< scalarField > SPL(const scalarField &Prms2, const scalar f) const
SPL [dB].
planInfo planInfo_
Plan information for FFTW.
autoPtr< windowModel > windowModelPtr_
Window model.
static const Enum< weightingType > weightingTypeNames_
bool writeSPL_
Write SPL; default = yes.
TypeName("noiseModel")
Runtime type information.
const dictionary dict_
Copy of dictionary used for construction.
declareRunTimeSelectionTable(autoPtr, noiseModel, dictionary,(const dictionary &dict),(dict))
Run time selection table.
bool writePrmsf_
Write Prmsf; default = yes.
virtual ~noiseModel()=default
Destructor.
weightingType SPLweighting_
Weighting.
scalar checkUniformTimeStep(const scalarList ×) const
Check and return uniform time step.
void readWriteOption(const dictionary &dict, const word &lookup, bool &option) const
Helper function to read write options and provide info feedback.
bool writePSDf_
Write PSDf; default = yes.
scalar gainD(const scalar f) const
D weighting as gain in dB.
tmp< scalarField > PSDf(const scalarField &p, const scalar deltaT) const
void writeWeightings() const
Helper function to check weightings.
scalar startTime_
Start time, default = 0s.
void cleanFFTW()
Clean up the FFTW.
scalar dBRef_
Reference for dB calculation, default = 2e-5.
bool validateBounds(const scalarList &p) const
Return true if all pressure data is within min/max bounds.
scalar fLower_
Lower frequency limit, default = 25Hz.
scalar gainB(const scalar f) const
B weighting as gain in dB.
scalar RBf(const scalar f) const
B weighting function.
Lookup type of boundary radiation properties.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
List< label > labelList
A List of labels.
static void check(const int retVal, const char *what)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
FFTW planner information.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.