reV.bespoke.plant_noise.PlantNoise

class PlantNoise(noise_inputs, shifted_obs_locs, turbine_gids)[source]

Bases: object

Evaluate turbine and plant-level sound at observer locations.

Parameters:
  • noise_inputs (PlantNoiseInputs) – Noise configuration and source file paths.

  • shifted_obs_locs (ndarray) – Observer coordinates shifted into each turbine-centered frame.

  • turbine_gids (ndarray) – Resource gids used to select turbine-specific SPL tables.

Methods

compute_noise(turbine_inds[, plant_level])

Compute sound levels for a selection of turbines.

total_noise_penalty(turbine_inds)

Sum plant-level sound violations above the configured limit

violation_stats(turbine_inds)

Statistics about noise violations

Attributes

turbine_interp

Interpolators that map observer offsets to turbine sound power.

turbines_power

Sound power at each observer for every turbine in the layout.

property turbine_interp

Interpolators that map observer offsets to turbine sound power.

property turbines_power

Sound power at each observer for every turbine in the layout.

compute_noise(turbine_inds, plant_level=True)[source]

Compute sound levels for a selection of turbines.

Parameters:
  • turbine_inds (ndarray) – Boolean mask or index array selecting turbines in the layout.

  • plant_level (bool, optional) – If True, sum turbine powers before converting to dB. If False, return the loudest single-turbine level at each observer.

Returns:

ndarray – Sound level in dB at each observer location.

total_noise_penalty(turbine_inds)[source]

Sum plant-level sound violations above the configured limit

Parameters:

turbine_inds (ndarray) – Boolean mask or index array selecting turbines in the layout.

Returns:

float – Sum of sound level in dB at each observer location that exceeds the noise limit.

violation_stats(turbine_inds)[source]

Statistics about noise violations

Parameters:

turbine_inds (ndarray) – Boolean mask or index array selecting turbines in the layout.

Returns:

float – Sum of sound level in dB at each observer location that exceeds the noise limit.