This is an OpenFOAM boundary condition for generating random gusts at a velocity inlet.
This is a work in progress. Expect breaking changes.
The random gust is generated using the Spectral Representation Method from a specified power spectral density (PSD). At the moment, this boundary condition can generate a horizontal/vertical spatially uniform random gust.
The following parameters are used to specify the gust:
gustDir: a vector representing the direction of the gustscaleFac: a scaling factor for the amplitude of the gustcircFreq: a list of frequencies at which the PSD is givenpsd: a list representing the PSD at each frequency incircFreq
Two example cases are provided in the run directory:
- rectangularCavity: A rectangular cavity with a velocity inlet
- rectangularCavityPar: Same rectangular cavity modified to run in parallel
Please have a look at the 0/U file to understand how the gust is to be specified.