Cross section river profiles

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
oliveroxtoby
Posts: 812
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Cross section river profiles

Post by oliveroxtoby »

thschrader wrote: Wed Jan 10, 2018 11:45 am Hi Oliver,
thanks about the courant-number info.
BTW: whats the drag-coefficient of the millennium falcon? :)
How did you do the simulation?
https://twitter.com/ex_mente/status/936562984914210816
MrSpock.JPG
Macro files for the simulation are now available at https://opensimsa.github.io/training.html if you would like to try it!
Please provide all the information requested in this post before reporting problems with CfdOF.
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Cross section river profiles

Post by thschrader »

oliveroxtoby wrote: Mon Jan 15, 2018 7:20 am
thschrader wrote: Wed Jan 10, 2018 11:45 am Hi Oliver,
thanks about the courant-number info.
BTW: whats the drag-coefficient of the millennium falcon? :)
How did you do the simulation?
https://twitter.com/ex_mente/status/936562984914210816
MrSpock.JPG
Macro files for the simulation are now available at https://opensimsa.github.io/training.html if you would like to try it!
https://forum.freecadweb.org/viewtopic. ... 16#p209616
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Cross section river profiles

Post by Kunda1 »

Guys, can we create another thread for Millenium Falcon stuff, this is too cool of a thread to hijack and a shame to bury such a neat segway thread (Millennium Falcon).

Also, @thschrader wouldn't it be awesome if there was a university or some 3rd party that would let us upload FEM related projects to process and render instead of your poor little laptop? I wonder how we could make that happen ?
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
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Cross section river profiles

Post by microelly2 »

Kunda1 wrote: Thu Jan 18, 2018 3:16 pm
Also, @thschrader wouldn't it be awesome if there was a university or some 3rd party that would let us upload FEM related projects to process and render instead of your poor little laptop? I wonder how we could make that happen ?
Is it possible to run such FEM simulations parallel on multiple computers?
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Cross section river profiles

Post by thschrader »

Kunda1 wrote: Thu Jan 18, 2018 3:16 pm Also, @thschrader wouldn't it be awesome if there was a university or some 3rd party that would let us upload FEM related projects to process and render instead of your poor little laptop? I wonder how we could make that happen ?
Good idea. My proposal:
http://defsec.csir.co.za/aeronautical-s ... teractions
or
http://www.eskom.co.za/Pages/Landing.aspx
(they use FC :) )

@microelly:
You can adress multiple cpu in FEM in Preferences/FEM/Calculix and
in cfd-wb in the data field when clicking on openfoam-solver in tree.
I have an Acer laptop with Intel celeron N2940 quadcore processor. I only use the
parallel computing option in cfd (2 cores adressed, when adressing 4 cores
my machine is completely blocked)
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Cross section river profiles

Post by thschrader »

thschrader wrote: Thu Jan 18, 2018 4:49 pm
Kunda1 wrote: Thu Jan 18, 2018 3:16 pm Also, @thschrader wouldn't it be awesome if there was a university or some 3rd party that would let us upload FEM related projects to process and render instead of your poor little laptop? I wonder how we could make that happen ?
Good idea. My proposal:
http://defsec.csir.co.za/aeronautical-s ... teractions
or
http://www.eskom.co.za/Pages/Landing.aspx
(they use FC :) )

@microelly:
You can adress multiple cpu in FEM in Preferences/FEM/Calculix and
in cfd-wb in the data field when clicking on openfoam-solver in tree.
I have an Acer laptop with Intel celeron N2940 quadcore processor. I only use the
parallel computing option in cfd (2 cores adressed, when adressing 4 cores
my machine is completely blocked)
EDIT:
@Kunda1/microelly:
Please have a look at this video (the comments!), a diskussion about hardware for cfd.
https://www.youtube.com/watch?v=dwOZs5S78z4
I forgot the dualsphysics-solver. With this solver you can adress multiple GPU.
http://dual.sphysics.org/index.php/gpu/
AltoRoos
Posts: 2
Joined: Fri Jan 19, 2018 6:49 am
Location: Pretoria, South Africa

Re: Cross section river profiles

Post by AltoRoos »

Greetings All,

Firstly, Thanks for every post thus far. This thread is very interesting and you are getting some exciting stuff done.

Secondly, I am a newbie to This Forum, FreeCAD, Openfoam, CFD and Paraview so please forgive my "Beginner" Type of Questions.
thschrader wrote: Tue Jan 09, 2018 11:00 pm Animation:
After finishing the simulation you can import the results in paraview and start the animation.
The animation can be saved as vtk-files. I imported the first 20 vtk-files in FC and used a macro
from the user gift, to make the mesh moving.
https://forum.freecadweb.org/viewtopic.php?f=13&t=26107
The model tree looks a little bit weird, because I played with the geometry
I am having trouble saving the correct vtk-files to "animate" the mesh using the macro from user "gift". The mesh Paraview saves is the Full Mesh set and not just the water.

Please see the following link to case files, a few VTK sample files along with a short video of the results that I would like to see in FreeCAD but with a Solid water volume like the gifs you posted:

https://www.dropbox.com/sh/9duqmmv8dx6o ... c-SKa?dl=0

I save the VTK files from ParaView with the following steps:
File -> Save Data -> "Change File Type to VTK Multibox .vtm file" -> "Activate the Files series to write the timesteps as file series" -> Ok.

If someone would be so kind as to explain to me what I am doing wrong it would be appreciated?
I shiver; not because I'm cold, but because I'm crazy.
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Cross section river profiles

Post by thschrader »

Hello AltoRoos,
welcome to the Freecad-forum.
You must use the clip-filter in paraview with the options shown in the picture.
Then save file as vtk multiblock, enable "write all timesteps as file-series".
In FC you can import the vtu-files with the FEM-results filter. The meshes are
located in the result container. Gift has written to different macros. The first one is for
meshes NOT located in the result container. Use the second one. Workflow:
Import meshes, create a group, put all meshes in, hide all meshes.
Click on group in model tree, run macro. I personally prefer to use "save animation" in paraview
(use more than 30 frames per second), that gives a better "splash". BTW: export the cube
as stl and load it in paraview (you must scale the stl to 0.001) and adjust the opacity.
regards Thomas
clipfilter.JPG
clipfilter.JPG (84.24 KiB) Viewed 1975 times
fallingDrop.gif
fallingDrop.gif (393.88 KiB) Viewed 1975 times
AltoRoos
Posts: 2
Joined: Fri Jan 19, 2018 6:49 am
Location: Pretoria, South Africa

Re: Cross section river profiles

Post by AltoRoos »

thschrader wrote: Fri Jan 19, 2018 4:36 pm Hello AltoRoos,
welcome to the Freecad-forum.
You must use the clip-filter in paraview with the options shown in the picture.
Then save file as vtk multiblock, enable "write all timesteps as file-series".
In FC you can import the vtu-files with the FEM-results filter. The meshes are
located in the result container. Gift has written to different macros. The first one is for
meshes NOT located in the result container. Use the second one. Workflow:
Import meshes, create a group, put all meshes in, hide all meshes.
Click on group in model tree, run macro. I personally prefer to use "save animation" in paraview
(use more than 30 frames per second), that gives a better "splash". BTW: export the cube
as stl and load it in paraview (you must scale the stl to 0.001) and adjust the opacity.
regards Thomas
clipfilter.JPG
fallingDrop.gif
@thschrader Thanks for your detailed response and extra comments. Much appreciate.
It's slight but effective inputs like this that help newbies gain traction. I haven't tested it but I'm sure it will work.
I will post a decent result of what we are doing once I have analysed a better example for interest.

Kind Regards,
I shiver; not because I'm cold, but because I'm crazy.
User avatar
kwahoo
Posts: 680
Joined: Fri Nov 29, 2013 3:09 pm
Contact:

Re: Cross section river profiles

Post by kwahoo »

microelly2 wrote: Thu Jan 18, 2018 4:06 pm
Kunda1 wrote: Thu Jan 18, 2018 3:16 pm
Also, @thschrader wouldn't it be awesome if there was a university or some 3rd party that would let us upload FEM related projects to process and render instead of your poor little laptop? I wonder how we could make that happen ?
Is it possible to run such FEM simulations parallel on multiple computers?
I'm here with 8C/16T Ryzen + 16GB RAM + NVMe SSD, I can render some bigger stuff. Fell free to ask if you need some help;)

And if we could find an enough brave programmer to port one of OpenFOAM's cuda solvers to HIP, then I could use additional 6TFLOPS of GPU's computing power. But that is not easy task, I lost completely trying convert cusp-cuda for Calculix to HIP...
Post Reply