Getting started in Grasshopper¶
After installing the plugin, the components are in the COMPAS Acoustics tab, in panels from left to right in the order a definition uses them. Concepts explains the terms.
How a definition flows¶
- Elements. Turn Rhino geometry into acoustic objects: pick a material from the Material Library or make one with Construct Material, then give each mesh (or closed polyline) its material in Acoustic Object; turn Breps into meshes with Mesh Brep first. Place a Source and a Receiver.
- Model. Collect objects, sources and receivers in an Acoustic Scene.
- Simulation. Run Simulate Mono,
Simulate Binaural or Simulate Ambisonics.
They return the impulse responses, one per source and receiver (
irs), which go straight to the next components. - Analysis. Analyse Impulse Response gives the room acoustic parameters of the source and receiver its dropdowns choose (all, or one), and Plot 2D draws them on the canvas, all parameters or the one its dropdown names.
- Auralisation. Auralise convolves a recording (the Anechoic sound dropdown: a bundled anechoic recording, or a file of yours with Load...) with the responses of the pairs its dropdowns choose; Audio Player plays it.
- Display. Show reflection paths, rays, a billiard of sound particles or an energy map in the Rhino viewport.
A simple simulation in a shoebox room builds steps 1 to 5 for a shoebox room. Every component is described in Components.
Using the components¶
Choices sit on the component bodies (switches, dropdowns, buttons); a wire into the same input wins over the control. The long runs (simulations, analysis, auralisation, rays) work in the background: the canvas stays responsive, the message shows the time and the worker's stage, and Cancel stops the run. Material Library opens a searchable picker on a click of its body; Plot 2D draws its charts on the canvas; the Audio Player shows the signal (an auralisation, a file, or an impulse response from Simulate) and plays, pauses, seeks and sets the volume.
The worker¶
The components compute nothing themselves: they send the work to the worker, the Python 3.12 environment Install Worker created. It starts with the first component that needs it, a few seconds (half a minute the first time), and stops with Rhino.
The Worker component (Util panel) shows its state, for example
compas_acoustics 0.1.0, schema ok. Every component's right-click menu has Open worker log, which opens the
worker's log file: read it when a component turns red and its message is not enough.
Messages you may see:
No worker: use the Install Worker component.- The worker was never created on this computer. Press Install on the Install Worker component.
... is not this version's ...: use Install Worker again./schema mismatch: use Install Worker again- The plugin and the worker come from different releases, for example after an update. Press Install on the Install Worker component.
The worker does not answer: ... Recompute to start it again.- The worker stopped (or was stopped). Recompute the component.
More in Troubleshooting.