114#ifndef Foam_noiseModels_surfaceNoise_H
115#define Foam_noiseModels_surfaceNoise_H
221 const bool writeSurface
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
commsTypes
Communications types.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
Calculates a non-overlapping list of offsets based on an input size (eg, number of cells) from differ...
noiseModel(const noiseModel &)=delete
No copy construct.
Perform noise analysis on surface-based pressure data.
scalarList times_
Sample times.
word pName_
Name of pressure field.
void initialise(const fileName &fName)
Initialise.
label nFaces_
Global number of surface faces.
TypeName("surfaceNoise")
Runtime type information.
surfaceNoise(const dictionary &dict, const objectRegistry &obr, const word &name=typeName, const bool readFields=true)
Constructor.
scalar surfaceAverage(const scalarField &data, const globalIndex &procFaceAddr) const
Calculate the area average value.
virtual ~surfaceNoise()=default
Destructor.
scalar deltaT_
Time step (constant).
virtual bool read(const dictionary &dict)
Read from dictionary.
List< fileName > inputFileNames_
Input file names.
UPstream::commsTypes commType_
Communication type (for sending/receiving fields).
autoPtr< surfaceWriter > writerPtr_
Pointer to the surface writer.
word readerType_
Reader type.
bool useBroadcast_
Use broadcast to send entire field to sub-ranks.
label startTimeIndex_
Start time index.
label fftWriteInterval_
Frequency data output interval, default = 1.
void readSurfaceData(const globalIndex &procFaceAddr, List< scalarField > &pData)
Read surface data.
autoPtr< surfaceReader > readerPtr_
Pointer to the surface reader.
bool areaAverage_
Apply area average; default = no (ensemble average) for backwards compatibility.
label pIndex_
Index of pressure field in reader field list.
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.
virtual void calculate()
Calculate.
Registry of regIOobjects.
Abstract base class for surface readers with fields.
Base class for surface writers.
A class for handling words, derived from Foam::string.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const NameMatchPredicate &selectedFields, DynamicList< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type and store on the objectRegistry.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
List< scalar > scalarList
List of scalar.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.