mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Noise functionality library and application updates
This commit is contained in:
@ -107,7 +107,7 @@ int main(int argc, char *argv[])
|
||||
#include "setRootCase.H"
|
||||
#include "createTime.H"
|
||||
|
||||
word dictName("noiseDict");
|
||||
fileName dictName(runTime.system()/"noiseDict");
|
||||
if (args.optionFound("dict"))
|
||||
{
|
||||
dictName = args["dict"];
|
||||
@ -118,7 +118,6 @@ int main(int argc, char *argv[])
|
||||
IOobject
|
||||
(
|
||||
dictName,
|
||||
runTime.system(),
|
||||
runTime,
|
||||
IOobject::MUST_READ
|
||||
)
|
||||
|
||||
136
applications/utilities/postProcessing/noise/noiseDict
Normal file
136
applications/utilities/postProcessing/noise/noiseDict
Normal file
@ -0,0 +1,136 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object noiseDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
noiseModel surfaceNoise;
|
||||
|
||||
surfaceNoiseCoeffs
|
||||
{
|
||||
windowModel Hanning;
|
||||
|
||||
HanningCoeffs
|
||||
{
|
||||
// Window overlap percentage
|
||||
overlapPercent 50;
|
||||
symmetric yes;
|
||||
extended yes;
|
||||
|
||||
// Optional number of windows, default = all available
|
||||
// nWindow 1;
|
||||
}
|
||||
|
||||
/*
|
||||
windowModel uniform;
|
||||
|
||||
uniformCoeffs
|
||||
{
|
||||
// Window overlap percentage
|
||||
overlapPercent 50;
|
||||
|
||||
value 1;
|
||||
|
||||
// Optional number of windows, default = all available
|
||||
// nWindow 1;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
// Input file
|
||||
inputFile "postProcessing/faceSource1/surface/patch_motorBike_rider-helmet%65/patch_motorBike_rider-helmet%65.case";
|
||||
|
||||
// Surface reader
|
||||
reader ensight;
|
||||
|
||||
// Surface writer
|
||||
writer ensight;
|
||||
|
||||
// Collate times for ensight output - ensures geometry is only written once
|
||||
writeOptions
|
||||
{
|
||||
ensight
|
||||
{
|
||||
collateTimes 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Reference density (to convert from kinematic to static pressure)
|
||||
rhoRef 1.205;
|
||||
|
||||
// Number of samples in sampling window
|
||||
// Must be a power of 2, default = 2^16 (=65536)
|
||||
N 4096; // 8192; // 4096;
|
||||
|
||||
// Lower frequency limit, default = 25Hz
|
||||
//fl 25;
|
||||
|
||||
// Upper frequency limit, default = 10kHz
|
||||
fu 15000;
|
||||
|
||||
// Start time, default = 0s
|
||||
//startTime 0;
|
||||
|
||||
// Write interval for FFT data, default = 1
|
||||
// fftWriteInterval 100;
|
||||
}
|
||||
|
||||
pointNoiseCoeffs
|
||||
{
|
||||
csvFileData
|
||||
{
|
||||
fileName "pressureData";
|
||||
nHeaderLine 1;
|
||||
refColumn 0;
|
||||
componentColumns (1);
|
||||
separator " ";
|
||||
mergeSeparators yes;
|
||||
}
|
||||
|
||||
HanningCoeffs
|
||||
{
|
||||
// Window overlap percentage
|
||||
overlapPercent 50;
|
||||
symmetric yes;
|
||||
extended yes;
|
||||
|
||||
// Optional number of windows, default = all available
|
||||
//nWindow 5;
|
||||
}
|
||||
|
||||
// Graph format, default = raw
|
||||
graphFormat raw;
|
||||
|
||||
// Reference density (to convert from kinematic to static pressure)
|
||||
rhoRef 1.2;
|
||||
|
||||
// Number of samples in sampling window
|
||||
// Must be a power of 2, default = 2^16 (=65536)
|
||||
N 4096;
|
||||
|
||||
// Lower frequency limit, default = 25Hz
|
||||
//fl 25;
|
||||
|
||||
// Upper frequency limit, default = 10kHz
|
||||
//fu 10000;
|
||||
|
||||
// Start time, default = 0s
|
||||
//startTime 0;
|
||||
|
||||
// Write interval for FFT data, default = 1
|
||||
fftWriteInterval 100;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user