User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dam-break-example [2016/11/16 09:47]
ndrs created
dam-break-example [2016/11/23 09:25] (current)
ndrs
Line 1: Line 1:
 ====== Dam Break ====== ====== Dam Break ======
- 
  
 This is one of the most simple cases to create. It will create a cube of water spreading out in a box. The result should be like this: This is one of the most simple cases to create. It will create a cube of water spreading out in a box. The result should be like this:
Line 11: Line 10:
  
 ==== Step 1 - Creating a new case ==== ==== Step 1 - Creating a new case ====
-First of all, lets run FreeCAD and run this software. Make sure VisualSPHysics for FreeCAD is installed. For that, you can check the [[installation|installation page]]. 
  
-Once in VisualSPHysics for FreeCAD, use the New Case button to create a new case. If you have opened FreeCAD files, ​VisualSPHysics ​will prompt you to close them automatically.+First of all, lets run FreeCAD and run this software. Make sure DesignSPHysics is installed. For that, you can check the [[installation|installation page]]. 
 + 
 +Once in DesignSPHysics, use the New Case button to create a new case. If you have opened FreeCAD files, ​DesignSPHysics ​will prompt you to close them automatically.
  
 Once created you should see something like this: Once created you should see something like this:
Line 21: Line 21:
  
 Make sure your plugin is configured correctly, pressing "Setup Plugin"​ and establishing the proper executables in the configuration window that appears. Make sure your plugin is configured correctly, pressing "Setup Plugin"​ and establishing the proper executables in the configuration window that appears.
-==== Setting the Inter-particle distance ====+ 
 +==== Step 2 - Setting the Inter-particle distance ==== 
 Change the Inter-particle distance text input box to **0.025**. It will look something like this: Change the Inter-particle distance text input box to **0.025**. It will look something like this:
  
Line 28: Line 30:
 This will set the case to generate a particle every **0.025** meters. For this case is an appropiate value for quick-simulation. This will set the case to generate a particle every **0.025** meters. For this case is an appropiate value for quick-simulation.
  
-==== Adjusting the case limits and creating the boundaries ====+==== Step 3 - Adjusting the case limits and creating the boundaries ==== 
 The next step is to adjust the case limits. We need to make the case limits at least be 1 meter on the X axis, and 0.5 meters in the Y axis. So let's do that. The next step is to adjust the case limits. We need to make the case limits at least be 1 meter on the X axis, and 0.5 meters in the Y axis. So let's do that.
  
Line 71: Line 74:
 Now, for each one of them, press in it and **change the property MKBound to 0**, as we want all the boundaries to be part of the same object (a external case). You should see that the type of object is bound by default. Now, for each one of them, press in it and **change the property MKBound to 0**, as we want all the boundaries to be part of the same object (a external case). You should see that the type of object is bound by default.
  
 +==== Step 4 - Creating the fluid ====
  
- 
-==== Creating the fluid ==== 
 To create the fluid the first we're going to do is hide one of the faces in FreeCAD, to see better what is inside the box we've created. To do this select the face you want to hide and press space, or right click -> toggle visibility (this does nothing to the scene or simulation). I chose **LargeWall1** to do this. To create the fluid the first we're going to do is hide one of the faces in FreeCAD, to see better what is inside the box we've created. To do this select the face you want to hide and press space, or right click -> toggle visibility (this does nothing to the scene or simulation). I chose **LargeWall1** to do this.
  
Line 91: Line 93:
  
 {{ :​completed-scene.png |}} {{ :​completed-scene.png |}}
 +
 +==== Final Step: Simulating and exporting ====
 +You can now save your project. This will generate a GenCase export and tell you how many particles you have to simulate.
 +
 +From there you can just select your preferred processor in the simulation group (CPU or GPU[Nvidia only]) and press "​Simulate Case". Once finished you can export the data to VTK with the button "​Export data to VTK".
 +
 +To see the resulting animation you can open all the data generated with a visualization software, like Paraview. Your simulation data is in the folder you saved the project, under [project name]_Out/
 +