A simple simulation in a shoebox room¶
A 5 × 4 × 3 m room with a different material on its floor, walls and ceiling, two sources and two receivers, simulated with image sources and ray tracing. The definition reads the reverberation time T30 of one source and receiver and plots it per octave band, and auralises that pair. It builds the same room as the Python version, wall for wall.
Download the definition: simple_simulation_shoebox.ghx


Walkthrough¶
- Room. A room drawn in Rhino would come in through a Mesh or Brep parameter; here Box 2Pt makes one from (0, 0, 0) to (5, 4, 3). Deconstruct Brep splits it into its six faces, List Item puts them in the order floor, right, front, left and back wall, ceiling, and Mesh Brep turns each into a mesh, the geometry an acoustic object takes.
- Materials. Four Construct Material components each take seven absorption coefficients (125 Hz to 8 kHz) and seven scattering coefficients, or one for every band. Merge lists one material per wall, in the order of the walls. A material from the library would come from Material Library instead.
- Acoustic objects. Acoustic Object pairs each wall with its material and name. Its role is boundary: the walls enclose the room.
- Sources and receivers. Two Source and two Receiver components, each with a position and a name. Both face +x, their default.
- Scene and simulation. Acoustic Scene collects the walls, sources and receivers and reports the room's volume (60 m³) and area (94 m²). Simulate Mono traces 10000 rays with image sources up to order 3 and air absorption; the seed 42 makes the run repeatable. It runs in the background, in the worker, when its Run button is pressed.
- Analysis. Analyse Impulse Response takes the responses straight from Simulate and derives the room acoustic parameters of the pair its Source and Receiver dropdowns choose: source_2 to receiver_2. Plot 2D, with its dropdown on T30, draws it.
- Auralisation. Auralise takes the same responses, the same two dropdowns and a sound chosen on its Anechoic sound dropdown, such as the bundled Female speech; the Audio Player plays the result.
The values differ slightly from the Python version's. Ray tracing is random, and the order in which each wall lists its corners changes which rays the seed draws; the differences are of the same size as those between two seeds.
The same example in Python.