114 #ifndef Foam_noiseModels_surfaceNoise_H 115 #define Foam_noiseModels_surfaceNoise_H 131 namespace noiseModels
221 const bool writeSurface
label nFaces_
Global number of surface faces.
virtual void calculate()
Calculate.
A class for handling file names.
commsTypes
Types of communications.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label startTimeIndex_
Start time index.
void initialise(const fileName &fName)
Initialise.
scalar surfaceAverage(const scalarField &data, const globalIndex &procFaceAddr) const
Calculate the area average value.
surfaceNoise(const dictionary &dict, const objectRegistry &obr, const word &name=typeName, const bool readFields=true)
Constructor.
autoPtr< surfaceWriter > writerPtr_
Pointer to the surface writer.
word pName_
Name of pressure field.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
scalarList times_
Sample times.
scalar writeSurfaceData(const fileName &outDirBase, const word &fName, const word &title, const scalar freq, const scalarField &data, const globalIndex &procFaceAddr, const bool writeSurface) const
Write surface data to file.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
word readerType_
Reader type.
A class for handling words, derived from Foam::string.
List< fileName > inputFileNames_
Input file names.
bool useBroadcast_
Use broadcast to send entire field to sub-ranks.
virtual bool read(const dictionary &dict)
Read from dictionary.
TypeName("surfaceNoise")
Runtime type information.
autoPtr< surfaceReader > readerPtr_
Pointer to the surface reader.
Database for solution data, solver performance and other reduced data.
bool areaAverage_
Apply area average; default = no (ensemble average) for backwards compatibility.
scalar deltaT_
Time step (constant)
UPstream::commsTypes commType_
Communication type (for sending/receiving fields)
label fftWriteInterval_
Frequency data output interval, default = 1.
void readSurfaceData(const globalIndex &procFaceAddr, List< scalarField > &pData)
Read surface data.
label pIndex_
Index of pressure field in reader field list.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
virtual ~surfaceNoise()=default
Destructor.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type.
Registry of regIOobjects.