mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: pointNoise - check pressure data before applying conversions
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2015-2020 OpenCFD Ltd.
|
||||
Copyright (C) 2015-2021 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -82,22 +82,21 @@ void pointNoise::processData
|
||||
scalarField t, p;
|
||||
filterTimeData(data.x(), data.y(), t, p);
|
||||
|
||||
// Apply conversions
|
||||
p *= rhoRef_;
|
||||
p -= average(p);
|
||||
|
||||
Info<< " read " << t.size() << " values" << nl << endl;
|
||||
|
||||
Info<< "Creating noise FFT" << endl;
|
||||
|
||||
const scalar deltaT = checkUniformTimeStep(t);
|
||||
|
||||
if (!validateBounds(p))
|
||||
{
|
||||
Info<< "No noise data generated" << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
Info<< "Creating noise FFT" << endl;
|
||||
|
||||
const scalar deltaT = checkUniformTimeStep(t);
|
||||
|
||||
// Apply conversions
|
||||
p *= rhoRef_;
|
||||
p -= average(p);
|
||||
|
||||
// Determine the windowing
|
||||
windowModelPtr_->validate(t.size());
|
||||
|
||||
Reference in New Issue
Block a user