mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Minor coding enhancements
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -37,7 +37,6 @@ Foam::scalar Foam::noiseFFT::p0 = 2e-5;
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Construct from pressure field
|
|
||||||
Foam::noiseFFT::noiseFFT
|
Foam::noiseFFT::noiseFFT
|
||||||
(
|
(
|
||||||
const scalar deltat,
|
const scalar deltat,
|
||||||
@ -49,7 +48,6 @@ Foam::noiseFFT::noiseFFT
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Construct from pressure field file name
|
|
||||||
Foam::noiseFFT::noiseFFT(const fileName& pFileName, const label skip)
|
Foam::noiseFFT::noiseFFT(const fileName& pFileName, const label skip)
|
||||||
:
|
:
|
||||||
scalarField(),
|
scalarField(),
|
||||||
@ -103,7 +101,7 @@ Foam::noiseFFT::noiseFFT(const fileName& pFileName, const label skip)
|
|||||||
|
|
||||||
deltat_ = T/pData.size();
|
deltat_ = T/pData.size();
|
||||||
|
|
||||||
scalarField::operator=(pData.shrink());
|
this->transfer(pData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user