GithubHelp home page GithubHelp logo

jblisko / transmissionlossthroughwall Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

Solution to pressure wave equation with transmission loss of pressure through a wall, solved on a square domain.

License: MIT License

MATLAB 100.00%

transmissionlossthroughwall's Introduction

TransmissionLossThroughWall

Solution using MATLAB to pressure wave equation with transmission loss of pressure through a wall, solved on a square domain. The purpose of this code is to emulate the effect of sound polution from roads near to someones home; more specifically, it modelled the placement of my college bedroom which was adjacent to a highway. The pressure is initialized as quiescent except the top and right boundaries, with a periodic magnitude condition using a sine function to vary the pressure on the boundary with the hope to make it more akin to having traffic on a road. We use a central-time-central-space discretization of the wave equation for the propogation of pressure in the following way: $$P_{i,j}^{n+1} = 2P_{i,j}^n - P_{i,j}^{n-1} + C^2 \left( P_{i+1,j}^n + P_{i-1,j}^n + P_{i,j+1}^n + P_{i,j-1}^n - 4P_{i,j}^n \right)$$ We note that we expressed our wave equation in a non-dimensional form $\partial_{tt}\overline P = \overline\nabla^2\overline P$, using dimensionless parameters $\overline P = P/P_0$, $\overline\nabla = L\nabla$, and $\overline t = (c/L) t$. The transmission loss through the wall is dictated by: $$TL = 10\log_{10} \left( 1 + \left( \frac{\rho_w h \omega}{2\rho_0 c} \right)^2 \right)$$ With the sound pressure level given by: $$SPL = 10\log_{10} \left(\frac{\langle P^2 \rangle}{P_{ref}^2} \right)$$ The results were compared against measured values within my apartment, with decent agreeance between the model and experiment.

transmissionlossthroughwall's People

Contributors

jblisko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.