Screenshots of Results:
Rippling effect when two pebbles are dropped at the same time at two opposite corners of the water surface:
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Faebded31-33a0-4482-b50a-3de4c2dd630d%2FUntitled.png?id=41bd00d3-f07a-4f70-bb5b-f39794247ec0&table=block)
Rippling effect when two pebbles are dropped at the same time in the middle of the water surface:
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F13490775-7ad3-44a9-aa9a-02ad7ca3437b%2FUntitled.png?id=817b686c-c7d6-4bba-bd8c-056e49842cc1&table=block)
Modelling Approach:
- Grid is created in the same way as discussed in the module videos and lecture, first creating a list of x and y using “start..end..step_size” strategy and later lacing cross product is turned on to create a rectangular grid of points.
- Revit Cylinder Family is downloaded from the shared google drive folder and loaded into the project. Then instances of these cylinder masses are created using the grid points as bases.
- The radius of the cylinders is set to a constant value.
- Heights of the cylinders to simulate the water surface under a rippling effect is calculated by using the following mathematical equations:
Water surface is assumed to be a sine wave function with angle depending on the distance between the pebble and the cylinder with respect to X-Y plane. An offset or phase angle is included to represent any lag between the dropping of pebble and ripple effect response (assumed to be 0)
Amplitude of the sine wave decays exponentially with respect to distance b/w pebble and water surface with some decay rate ‘a’ (assumed to be 0.05). This diminishes the ripples’ height as ‘d’ increases
Frequency of the sine wave decays exponentially with respect to distance b/w pebble and water surface with some decay rate ‘b’ (assumed to be 0.05 This diminishes number of ripples as ‘d’ increases
Ripple effect occurs when the pebble touches the water surface, meaning waves are generated only when pebble’s z-coordinate (z) is less than or equal to water surface base height. The factor ‘k’ check whether pebble is hitting the water surface or not
(These equations are implemented in the dynamo using functions like addition, multiplication, Geometry.DistanceTo, Points.PullOntoPlane,Math.Exp, Math.sin, If, etc.)
- Rippling effect due to two or more pebbles with be the algebraic sum of all the waves caused by all pebbles and the base height. For two pebbles it is given as:
Note: When two pebbles are dropped at different times, then there will be phase difference between the two sin waves produced, meaning the difference b/w offsets or phase angles of first and second sin wave will not be zero.