ENH: Added new noise utility to generate FFT metrics from pressure data

This commit is contained in:
andy
2013-01-28 16:55:07 +00:00
parent 3753faf147
commit c7d6a731d1
4 changed files with 221 additions and 0 deletions

View File

@ -0,0 +1,34 @@
word dictName("noiseDict");
if (args.optionFound("dict"))
{
dictName = args["dict"];
}
IOdictionary dict
(
IOobject
(
dictName,
runTime.system(),
runTime,
IOobject::MUST_READ
)
);
// reference pressure
scalar pRef = dict.lookupOrDefault("pRef", 0.0);
// number of samples in sampling window
label N = dict.lookupOrDefault("N", 65536);
// number of sampling windows
label nw = dict.lookupOrDefault("nw", 100);
// lower frequency of frequency band
scalar f1 = dict.lookupOrDefault("f1", 25.0);
// upper frequency of frequency band
scalar fU = dict.lookupOrDefault("fU", 10000.0);
// graph format
word graphFormat = dict.lookupOrDefault<word>("graphFormat", "raw");