Code for wave reflection
I have plotted a 3D image of the waves travelling on the surface of water using matlab, but now I want to have a plot when the waves gets reflected whenever it hits the edges or some some obstacles.
Can anybody provide with a code for this type of problem or any other refrences from where I can get some ideas for the same.
Depending on the size of your problem, the finite-difference method (time or frequency domain) may be the easiest way for you to do this. You can search the forums and you will find lots of finite-difference time-domain (FDTD) codes that will work for you. If you are simulating waves on water, your problem is scalar and not vectorial. The good news is that your problem is easier to solve. The bad new is there may not be a scalar FDTD available in an electromagnetics forum.
You can also search for the e-book or codes that go along with Sullivan's FDTD book. I am 97% sure he has a whole chapter devoted to scalar waves.
If I can be of any more assistance, please let me know.
-Tip