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: 3129
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Interesting project: DesignSPHysics fluid simulator
Hello everyone,
the designsphysics-macro now has the possibility to add inlet/outlet
to the simulation. For instance to simulate the flow around a cylinder.
Coupling with chrono is also possible.
Problem: I have absolutely no idea how to do the setup. There are tricky
submenues. The youtube channel has a lot of examples, but no workflow
how to setup inlet/outlet with designsphysics. Any ideas? Thanks.
https://www.youtube.com/user/DualSPHysics/videos
https://projectchrono.org/
the designsphysics-macro now has the possibility to add inlet/outlet
to the simulation. For instance to simulate the flow around a cylinder.
Coupling with chrono is also possible.
Problem: I have absolutely no idea how to do the setup. There are tricky
submenues. The youtube channel has a lot of examples, but no workflow
how to setup inlet/outlet with designsphysics. Any ideas? Thanks.
https://www.youtube.com/user/DualSPHysics/videos
https://projectchrono.org/
Re: Interesting project: DesignSPHysics fluid simulator
This one is cool.
Last edited by johnwang on Fri Jun 05, 2020 4:16 am, edited 1 time in total.
-
- Veteran
- Posts: 3129
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Interesting project: DesignSPHysics fluid simulator
Thanks for the hint.
dualsphysics:
Built in vtk-converter and paraview link for viewing.
FEM:
I use this tool for vtk-conversion (from user mamah) https://forum.freecadweb.org/viewtopic.php?f=18&t=11664
Copy frd-result in bin/release folder, drag with mouse over exe, conversion starts.
Re: Interesting project: DesignSPHysics fluid simulator
My macro now can set display Mode and field (default to Surface & pressure). Just run it to open the folder where vtu/vtk files are stored. A Group is created. Then select that group, run the MovingMesh macro to do animation.thschrader wrote: ↑Mon Sep 10, 2018 4:34 pm
Import some surface_xxx.vtk series from your dualsphysics output folder into Freecad.
Use Import with FEM Result vtk option.
Activate the FEM workbench.
Doubleclick on every surface and adjust Mode to „surface with edges“
Create a new group.
Move all surfaces into the group an hide them.
Click on Group in model-tree, run the MovingMesh macro
-
- Veteran
- Posts: 3129
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Interesting project: DesignSPHysics fluid simulator
@johnwang:
can you try to open the vtk/stl (in zip) with FC?
I get only one point, not the complete scene as in paraview.
can you try to open the vtk/stl (in zip) with FC?
I get only one point, not the complete scene as in paraview.
Re: Interesting project: DesignSPHysics fluid simulator
Do you mean open zip directly without unzip? No.
After unzip, I can open the vtk and the stl one by one. But they are not in the same scale. stl is larger. Maybe the unit is changed, m-->mm? Is there a way to scale down the stl?
-
- Veteran
- Posts: 3129
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Interesting project: DesignSPHysics fluid simulator
No, dont open zip. Unpack and load vtk/stl.
I use default units (mm) in FC. When exporting the stl and loading with paraview,
the stl is scaled up by a factor of 1000 (paraview uses m as default). You must scale it down
with Filter/transform. When reimporting the stl in FC, I have no scaling-problem.
Which import-filter for vtk do you use in FC?
Re: Interesting project: DesignSPHysics fluid simulator
Try use the macro i provided. You have to change the Field value from pressure to Vel, or other listed.thschrader wrote: ↑ Which import-filter for vtk do you use in FC?
How do i scale stl?
-
- Veteran
- Posts: 3129
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Interesting project: DesignSPHysics fluid simulator
Open stl first
scale 0.001
import VTK
All good.
scale 0.001
import VTK
All good.