Class AcousticRayTracer
java.lang.Object
org.episteme.social.architecture.AcousticRayTracer
Simplified acoustic simulation tool for modeling sound propagation and
reverberation in architectural spaces using ray tracing concepts.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a single sound ray in terms of geometry and energy.static final recordDetail of a sound reflection off a surface. -
Method Summary
Modifier and TypeMethodDescriptionstatic RealairAttenuation(double distance, double alpha) Estimates sound attenuation due to air absorption over a specific distance.static RealcalculateSabineRT60(double volume, double surfaceArea, double avgAbsorption) Calculates the Sabine Reverberation Time (RT60), which is the time required for sound to decay by 60 decibels.
-
Method Details
-
airAttenuation
Estimates sound attenuation due to air absorption over a specific distance. Uses the formula: I = I0 * exp(-alpha * d)- Parameters:
distance- distance traveled in metersalpha- absorption coefficient of air (varies with humidity/temp)- Returns:
- attenuation factor (0 to 1)
-
calculateSabineRT60
Calculates the Sabine Reverberation Time (RT60), which is the time required for sound to decay by 60 decibels. Uses the formula: RT60 = 0.161 * V / (S * alpha_avg)- Parameters:
volume- total room volume in cubic meterssurfaceArea- total internal surface area in square metersavgAbsorption- average absorption coefficient of all surfaces- Returns:
- estimated RT60 in seconds
-