Go to the documentation of this file.
104 #ifndef noiseModels_surfaceNoise_H
105 #define noiseModels_surfaceNoise_H
120 namespace noiseModels
194 const bool writeSurface
label nFace_
Number of surface faces.
A class for handling words, derived from Foam::string.
A class for handling file names.
Base class for noise models.
scalarList times_
Sample times.
label pIndex_
Index of pressure field in reader field list.
virtual void calculate()
Calculate.
virtual bool read(const dictionary &dict)
Read from dictionary.
word pName_
Name of pressure field.
surfaceNoise(const dictionary &dict, const bool readFields=true)
Constructor.
scalar deltaT_
Time step (constant)
virtual ~surfaceNoise()=default
Destructor.
label startTimeIndex_
Start time index.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
scalar writeSurfaceData(const fileName &outDirBase, const word &fName, const word &title, const scalar freq, const scalarField &data, const labelList &procFaceOffset, const bool writeSurface) const
Write surface data to file.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
label fftWriteInterval_
Frequency data output interval, default = 1.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
autoPtr< surfaceReader > readerPtr_
Pointer to the surface reader.
word readerType_
Reader type.
Perform noise analysis on surface-based pressure data.
void readSurfaceData(const labelList &procFaceOffset, List< scalarField > &pData)
Read surface data.
void initialise(const fileName &fName)
Initialise.
List< fileName > inputFileNames_
Input file names.
Database for solution data, solver performance and other reduced data.
scalar surfaceAverage(const scalarField &data, const labelList &procFaceOffset) const
Calculate the area average value.
autoPtr< surfaceWriter > writerPtr_
Pointer to the surface writer.
TypeName("surfaceNoise")
Runtime type information.