108#ifndef noiseModels_surfaceNoise_H
109#define noiseModels_surfaceNoise_H
202 const bool writeSurface
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Database for solution data, solver performance and other reduced data.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
Base class for noise models.
Perform noise analysis on surface-based pressure data.
scalarList times_
Sample times.
scalar surfaceAverage(const scalarField &data, const labelList &procFaceOffset) const
Calculate the area average value.
word pName_
Name of pressure field.
void initialise(const fileName &fName)
Initialise.
TypeName("surfaceNoise")
Runtime type information.
virtual ~surfaceNoise()=default
Destructor.
scalar deltaT_
Time step (constant)
label nFace_
Number of surface faces.
virtual bool read(const dictionary &dict)
Read from dictionary.
List< fileName > inputFileNames_
Input file names.
autoPtr< surfaceWriter > writerPtr_
Pointer to the surface writer.
word readerType_
Reader type.
label startTimeIndex_
Start time index.
label fftWriteInterval_
Frequency data output interval, default = 1.
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.
autoPtr< surfaceReader > readerPtr_
Pointer to the surface reader.
label pIndex_
Index of pressure field in reader field list.
void readSurfaceData(const labelList &procFaceOffset, List< scalarField > &pData)
Read surface data.
virtual void calculate()
Calculate.
A class for handling words, derived from Foam::string.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.