virtual ~noiseModel()=default
Destructor.
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.
virtual void calculate()=0
Abstract call to calculate.
scalar fUpper_
Upper frequency limit, default = 10kHz.
noiseModel(const noiseModel &)=delete
No copy construct.
declareRunTimeSelectionTable(autoPtr, noiseModel, dictionary,(const dictionary &dict),(dict))
Run time selection table.
label findStartTimeIndex(const instantList &allTimes, const scalar startTime) const
Find and return start time index.
scalar fLower_
Lower frequency limit, default = 25Hz.
scalar minPressure_
Min pressure value.
const dictionary dict_
Copy of dictionary used for construction.
bool customBounds_
Flag to indicate that custom frequency bounds are being used.
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.
void operator=(const noiseModel &)=delete
No copy assignment.
scalar startTime_
Start time, default = 0s.
bool writePSD_
Write PSD; default = yes.
Lookup type of boundary radiation properties.
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.
bool writePSDf_
Write PSDf; default = yes.
bool writePrmsf_
Write Prmsf; default = yes.
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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Macros to ease declaration of run-time selection tables.
fileName baseFileDir(const label dataseti) const
Return the base output directory.
word graphFormat_
Graph format.
bool writeSPL_
Write SPL; default = yes.
label nSamples_
Number of samples in sampling window, default = 2^16.