It was my first time learning about Revit, Dynamo or even learning about design! It was exciting to be able to create a simulation based of the module videos. As I am doing this for 4 units I had to create diminishing waves and have multiple pebbles in my simulation. The screenshots below illustrate my simulation with the multiple pebbles.
Below is my dynamo modeling approach:
Below is how I created the grid of cylinders. I used one parameter for length an width to ensure a square grid. I then flatten the list as the coordinates only have x,y not z in the 3D space.
I then connect the flattened list of coordinates to a distance block between the grid and the pebbles coordinates which I create below.
Here I created the pebble coordinates for all 3 pebbles
Here I have the sine wave parameters to change the characteristics of the wave like the base height, number of waves, and the amplification factor.
Here I created the sine wave function using the parameters. I also used the Mat.exp function to create a decay factor of -0.05 applied to the distance if every wave.
Heres a closer look at the sine wave function. I combine the effects of all 3 pebbles by simply adding their respective values. in this way, I am able to amplify where the waves peaks meet and to create a deeper trough where the waves troughs meet, thus incorporating the impacts of all 3 pebbles on any one cylinder. I also added the base offset last so as to not add it 3 times through the different waves.
Finally, I imported the cylinder family into revit using the family type cylinder and creating elements of radius and height.
Overall, this project was quite a difficult first project but I am proud of my result.