Skip to content

Scattering Lab

Scattering Lab icon

Lab ยท Lab

The virtual scattering lab: measures the random-incidence scattering coefficient of a sample in the octave bands. The geometric method runs when its inputs change (seconds); kirchhoff and bem take minutes to hours and start only when Run is pressed.

Scattering Lab on the Grasshopper canvas

Inputs

Name Type Access Default Description
sample ghdoc item ScatteringSample object, from Scattering Sample.
method str item "geometric" 'geometric' (seconds), 'kirchhoff' or 'bem' (minutes to hours; they start with Run). Optional.
preset str item "survey" The source directions the sample is measured from: 'survey' (13, default) or 'standard' (97). survey is the quickest, a first look; its random-incidence s can be up to 0.29 off near the onset of grating lobes, so use standard for the values a room model takes. Polar Preview shows the polar response of every direction measured. Optional.
band_range str item "iso" 'iso' (100 to 5000 Hz) or 'extended' (to 8000 Hz). Optional.
n_rays int item Optional. Geometric method only: the number of rays. Optional.
max_bounces int item Optional. Geometric method only: the reflections a ray may make between the relief's parts before it counts as lost (default 20). Raise it when the Lab warns about lost rays. Optional.
cache_dir str item Optional. The bem method only: NumCalc's project folder, so that an interrupted run resumes. Optional.
run bool item Press to run. The geometric method runs when the inputs change; kirchhoff and bem take minutes to hours and run only when this is true; a button is added when it is not connected. Press again to run again with the same inputs. Optional.

Outputs

Name Description
result ScatteringResult object.
scattering Scattering coefficient of the 7 material octave bands, 125 to 8000 Hz (an octave that was not simulated is filled from the nearest one). Pairs with the scattering of Construct Material, not with diffusion.
diffusion Normalised diffusion coefficient d_n = (d - d_ref) / (1 - d_ref) (ISO 17497-2) of each simulated octave band, which can be negative; empty when the result has none. It pairs with 'octaves' (6 bands with the ISO range), not with 'scattering'.
octaves The simulated octave bands, in Hz; one value of 'diffusion' for each.

Python equivalent

compas_acoustics.lab.measure_scattering