mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: surfaceNoise - warn if no data available to process
This commit is contained in:
@ -617,6 +617,14 @@ void surfaceNoise::calculate()
|
||||
scalarField PSDfAve(nFreq, 0);
|
||||
scalarField fOut(nFreq, 0);
|
||||
|
||||
if (nFreq == 0)
|
||||
{
|
||||
WarningInFunction
|
||||
<< "No surface data available using a fftWriteInterval of "
|
||||
<< fftWriteInterval_ << endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
for (label i = f0; i <= f1; ++i)
|
||||
{
|
||||
label freqI = i*fftWriteInterval_;
|
||||
@ -665,6 +673,7 @@ void surfaceNoise::calculate()
|
||||
writeSPL_
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
graph Prmsfg
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user