Skip to content
Snippets Groups Projects
Commit 79ea57bd authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: pointNoise - check pressure data before applying conversions

parent eb317550
Branches
Tags
No related merge requests found
......@@ -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());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment