# how to simulate wave interference [closed]

I need to simulate wave interference with reflection from surfaces.

What formulas I need to use?

What differential equation I need to solve? - Could someone help me out?

-

3
What do you mean by simulate? Write software to do this? What fluid do you want to deal with - invicid or vicid - do you wish to include dissipation in your simulation? – Killercam Oct 22 '12 at 16:39
– Bernhard Oct 22 '12 at 18:22
@Killercam yes, I need to create software. – cristaloleg Oct 23 '12 at 4:56
@Bernhard your link is 404 – cristaloleg Oct 23 '12 at 4:56
@cristaloleg Yep, it was removed, but the question was identical to yours. – Bernhard Oct 23 '12 at 6:00
show 2 more comments

## closed as not a real question by Qmechanic♦, Manishearth♦, Ϛѓăʑɏ βµԂԃϔ, David Zaslavsky♦Dec 16 '12 at 7:31

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

## 1 Answer

There are many different fluid systems that can produce waves and the associated interference: surface water waves, gas dynamics, etc. Each of these are treated very differently from a computational point of view - each using different numerical methods.

For your fairly poorly defined question, I would suggest you look at ideal gas dynamics. That is non-dissipative, non-viscous gas dynamics. The system of equations used to study such flows are quasi-linear hyperbolic system of PDEs, or conservation laws. In one-dimension (which will be the simplest case you want to consider as a starter) they take the generic form

$$\partial_{t} \mathbf{U} + \mathbf{\mathbf{A}}(\mathbf{U})\partial_{x}\mathbf{U} = 0,$$

where $\mathbf{U} = (\rho, \rho u, e)^{\mathsf{T}}$ is the vector of conserved quantities (for mass, momentum and energy) and $\mathbf{\mathbf{A}}(\mathbf{U})$ is the Jacobian matrix for the system. The Eigenvalues of the Jacobian matrix provide the wavespeeds for the given system under consideration. The above equation can be recast using the vector of conservative fluxed $\mathbf{F}(\mathbf{U})$ via

$$\partial_{t} \mathbf{U} + \partial_{x} \mathbf{F}(\mathbf{U}) = 0.$$

Now, for one-dimensional gas dynamics this system can be solved analytically, but it is not easy and it is mathematically involved. In two dimensions there are exact solutions but they require an iterative solver. The most common way to get solutions for such systems is to use something called Godunov's theorem and associated Riemann Solver, these methods provide a very fast and accurate wave of resolving the flow AND wave solutions for such systems.

Even to create your own one-dimensional solver for gas dynamics will not be easy. For two dimensions (with the reflection from walls that you mention above) will be another level up. My advice would be to first read this paper (from a masters thesis). This will provide a tutorial for creating your own one-dimensional solver for gas dynamics.

Good luck.

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 3, "mathjax_display_tex": 2, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9429678916931152, "perplexity_flag": "middle"}