Go to the documentation of this file.
52 option = option && Pstream::master();
74 for (label i = 1; i < times.size(); i++)
76 scalar dT = times[i] - times[i-1];
83 if (
mag(dT/deltaT - 1) > 1
e-8)
86 <<
"Unable to process data with a variable time step"
94 <<
"Unable to create FFT with a single value"
109 <<
"Pressure data at position " << i
110 <<
" is outside of permitted bounds:" <<
nl
111 <<
" pressure: " <<
p[i] <<
nl
132 const instant& i = allTimes[timeI];
167 customBounds_(false),
171 minPressure_(-0.5*VGREAT),
172 maxPressure_(0.5*VGREAT),
193 customBounds_ =
false;
196 customBounds_ =
true;
200 customBounds_ =
true;
211 <<
"fl: lower frequency bound must be greater than zero"
219 <<
"fu: upper frequency bound must be greater than zero"
224 if (fUpper_ < fLower_)
227 <<
"fu: upper frequency bound must be greater than lower "
228 <<
"frequency bound (fl)"
235 readWriteOption(optDict,
"writePrmsf", writePrmsf_);
236 readWriteOption(optDict,
"writeSPL", writeSPL_);
237 readWriteOption(optDict,
"writePSD", writePSD_);
238 readWriteOption(optDict,
"writePSDf", writePSDf_);
239 readWriteOption(optDict,
"writeOctaves", writeOctaves_);
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.
static fileName envGlobalPath()
Global case (directory) from environment variable.
noiseModel(const noiseModel &)=delete
No copy construct.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
label findStartTimeIndex(const instantList &allTimes, const scalar startTime) const
Find and return start time index.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< windowModel > New(const dictionary &dict, const label nSamples)
Return a reference to the selected window model.
#define forAll(list, i)
Loop across all elements in list.
scalar minPressure_
Min pressure value.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
static word outputPrefix
Directory prefix.
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.
dictionary subOrEmptyDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX, const bool mandatory=false) const
errorManipArg< error, int > exit(error &err, const int errNo=1)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
fileName baseFileDir(const label dataseti) const
Return the base output directory.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
scalar value() const
The value (const access)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const dimensionedScalar e
Elementary charge.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An instant of time. Contains the time value and name.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const