Interesting project: DesignSPHysics fluid simulator
Moderator: oliveroxtoby
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
-
- Veteran
- Posts: 3158
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Interesting project: DesignSPHysics fluid simulator
Did some playing with dualphysics:
The collapsing water-column is kicking the cube out of his place.
I can only see the moving cube in paraview when loading the point-cloud.
Dualphysics generates vtk-files, which can be loaded as a FEM-mesh in FC.
Is there a method/macro to automatically activate/deactivate the loaded vtks
step by step to see a nice fluid-animation like in paraview?
Runtime simulation 50 min with 81000 points, not bad.
The collapsing water-column is kicking the cube out of his place.
I can only see the moving cube in paraview when loading the point-cloud.
Dualphysics generates vtk-files, which can be loaded as a FEM-mesh in FC.
Is there a method/macro to automatically activate/deactivate the loaded vtks
step by step to see a nice fluid-animation like in paraview?
Runtime simulation 50 min with 81000 points, not bad.
-
- Veteran
- Posts: 3158
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Interesting project: DesignSPHysics fluid simulator
Strange results with SPH-method:
The particles passing the stl-boundary and later hovering above the boundary.
Same does the Isosurface-Mesh in FC. Mmmh...
1 thousand questions...
The particles passing the stl-boundary and later hovering above the boundary.
Same does the Isosurface-Mesh in FC. Mmmh...
1 thousand questions...
-
- Veteran
- Posts: 3158
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Interesting project: DesignSPHysics fluid simulator
Hello Alex,
welcome to the Freecad forum. Thanks for the info,
I will have a look at the papers. Have a happy new year!
Cheers Thomas
Re: Interesting project: DesignSPHysics fluid simulator
What would be more awesome than this post is actually seeing the movement of the wine in the glass! +1!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
-
- Veteran
- Posts: 3158
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Interesting project: DesignSPHysics fluid simulator
The user "Gift" (this german word means "poison" ) has written
a makro to make the meshes moving. workflow:
1. Import the vtk-files with "FEM results"-filter
2. Hide all objects
3. Create group an put results in group
4. click on group in tree an run macro
Macro / complete simulation available here (download macro of Gifts second post,
simulation/FC-file on dropbox-links)
https://forum.freecadweb.org/viewtopic.php?f=13&t=26107
a makro to make the meshes moving. workflow:
1. Import the vtk-files with "FEM results"-filter
2. Hide all objects
3. Create group an put results in group
4. click on group in tree an run macro
Macro / complete simulation available here (download macro of Gifts second post,
simulation/FC-file on dropbox-links)
https://forum.freecadweb.org/viewtopic.php?f=13&t=26107
Re: Interesting project: DesignSPHysics fluid simulator
This.Is.Awesome!
Happy New Year!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Interesting project: DesignSPHysics fluid simulator
would it be different for white wine ? Has white wine different physical characteristics in this regard?
-
- Veteran
- Posts: 3158
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Interesting project: DesignSPHysics fluid simulator
Hi Bernd,
the physical characteristics of wine (white/red) are the same like water, which I used
in the simulation. The current dualsphysics version supports only one-phase simulations.
That means the wine-drop is falling in vacuum and does not deform when accelerating.
The new version announced for january should support multiphase simulations (beer with foam!).
http://dual.sphysics.org/index.php/foru ... se-of-v4-2
Some hints about the simulation:
The red box is the simulation domain where the point-cloud is generated (pointmin/max in xml-input-deck).
You can adress the bodies with different options (fluid, boundary, moving, floating...).
When pressing the "save-case" button, the dualsphysics-macro generates the necessary files,
doubleclick on run.bat starts the simulation. It is the same process like using the cfd-wb with openfoam.
When finishing the calculation, the vtk-files with the point-information are writen. Pressing the Isosurface-button
generates the files which are loaded as FEM-mesh in FC.
There are tons of parameters you can play with. In this simulation I used 56000 particles (which is not much),
runtime 90 min for 2 sec. For a really high-fidelity approach you need millions of particles.
https://www.youtube.com/watch?v=rHq6rcdqHzM