OBJECTIVE: TO CREATE A WATER SIMULATION SYSTEM THAT HELPS TO PRESENT THE FLOATING BAR PROJECT AND HELPS TO UNDERSTAND THE FUNCTION OF THE PISTON SYSTEM.
- WATER SIMULATION CODE: WAVES CODE
- This tutorial aims to provide a modeling tool that can be used when working with corps of water. Modeling water and fluid theories are nowadays one of the first reaserch spaces in physics. Recreating such a complicated phenomenon takes a long time and different tools in order to consider the internal and external factors that can modify the form of the water.
- This tutorial aims to provide a water simulation that can be used in both the design and the visualisation of a new Project in which is considered factors as waves, wind and water movement
NOTE: IN THIS TUTORIAL WILL BE NEEDED THE KANGAROO TOOLS FROM KANGAROO PHYSICS. THEY CREATE AN ENGINE FOR INTERACTIVE SIMULATION AND WORK AS FORM FINDERS FOR EASY PHYSICAL PROBLEMS, CREATING IN A REALISTIC AND USEFUL WAY, PHYSIVAL SIMULATIONS. EVEN THOUGH THEY CAN BE USED FOR DESIGNING AND VISUALISATION, IT IS STILL NNOT A CALCULATING TOOL. THEY CAN BE FOUNDED IN THE ¨FOOD FOR RHINO¨ WEBSITE.
DESIGN STEPS
1.CREATING THE MESH:
1.1 The first step is to create a Mesh Plane, the width and height is in this case, defined by the same number slider for practicity.
1.2 To create the space where the water can move, we must delimit the perimeter of its container. Using Naked Vertices founded in the kangaroo toolbar, we can add that component to the previous mesh.
- ADDING THE WATER DATA
In order to combine the collection of the different variables that we will use to model water, we must add the Entwine componen that will help us to combine together all of the different data streams. In this example, we Will be working with 5 variables:
2.1 Show
2.2 Anchor
This component will use the borders of the mesh defined by Naked Vertices to create the superfitial tension of the water within the mesh borders.
2.3 Edge Lenghts
2.4 Magnet Snap
This component Will work with Edge Lenght in order to costumize the magnet forces that will snap the points from the mesh according to their position
2.5 Wind
To costumize the wind vector we must add the components that vectors work with. In this case, we will add Amplitude, it needs a multidimentional slider and a number slider. The other component is the direction of the vector, using an Z Unit, we Will costumize with the number slider the direction of the forces.
- RUN THE PROGRAM
We Will need the kangaroo tool Running to solve the data streams collected with the previous component: Entwine
3.1 In order for the program to function, we need the boolean toogle button to define if the value is true or not for the function. To start running the model, we must have the value as True.
3.2 The start and reset button should be extracted from the reset parameter as a Button bject with no values.
3.3 To visualize only the final mesh, we must add a mesh component and enable preview of every part of the program except for that last mesh.