POV-Ray : Newsgroups : povray.off-topic : Liquid Physics : Re: Wave Physics Server Time
1 Oct 2024 15:20:44 EDT (-0400)
  Re: Wave Physics  
From: scott
Date: 2 Apr 2008 07:54:19
Message: <47f381fb$1@news.povray.org>
> I know I've asked this before, but what's the algorithm for this?

The wave equation.

http://en.wikipedia.org/wiki/Wave_equation

2nd time differential of "wave value" is proportional to the 2nd spatial 
differential of "wave value"

2nd time differential is just acceleration (use it in an integrator like RK4 
to get the new positions).

2nd spatial differential in 2D is just d2u/d2x + d2u/d2y

See attached POV code.


Post a reply to this message


Attachments:
Download 'us-ascii' (3 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.