FluidX3D

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

User avatar
saso
Veteran
Posts: 1920
Joined: Fri May 16, 2014 1:14 pm
Contact:

FluidX3D

Post by saso »

So has someone played with FluidX3D yet, tried to run it on some geometry created with FreeCAD etc... ?
The fastest and most memory efficient lattice Boltzmann CFD software, running on any GPU via OpenCL.
Note: License is open/free for non-commercial use

https://github.com/ProjectPhysX/FluidX3D
https://www.youtube.com/c/ProjectPhysX/videos
https://twitter.com/FluidX3D

Image
Last edited by saso on Sun Mar 03, 2024 2:09 pm, edited 2 times in total.
User avatar
saso
Veteran
Posts: 1920
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: FluidX3D

Post by saso »

FluidX3D v2.0 (multi-GPU)
Multi-GPU simulations are now possible on a single node (PC/laptop/server), allowing to pool VRAM from multiple GPUs...

FluidX3D v2.1 (fast voxelization)
Fast GPU voxelization update, new algorithm for .stl mesh GPU voxelization: ~500x faster now, from minutes to milliseconds...

FluidX3D v2.2 (velocity voxelization)
simulation of moving/rotating geometry is now possible, https://www.youtube.com/watch?v=aqG8qZ_Gc4U

https://github.com/ProjectPhysX/FluidX3D/releases
Last edited by saso on Sun Mar 03, 2024 2:11 pm, edited 1 time in total.
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: FluidX3D

Post by thschrader »

OK, how do I get this stuff running?
I am not a coder or software geek.
The developers of this program underestimate the need for easy installing.
Thats why cfdof is nice.
inspiration.JPG
inspiration.JPG (27.76 KiB) Viewed 4998 times
User avatar
saso
Veteran
Posts: 1920
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: FluidX3D

Post by saso »

thschrader wrote: Sat Jan 21, 2023 9:33 pm OK, how do I get this stuff running?
:)

Yes I have put it on my TO-DO list to play with it a bit and make a custom example and post it here with some instructions but did not yet find the time... With most of such things, once you take the time to go over it once then it gets easier... In the file src/setup.cpp there are many examples commented out, one basically sets it up in the C++ code and then compiles it and runs it, so it is basically a custom program for each example. Maybe some of our great developers would be faster to do some examples then us script kiddies... :D
User avatar
NewJoker
Veteran
Posts: 3018
Joined: Sun Oct 11, 2020 7:49 pm

Re: FluidX3D

Post by NewJoker »

It looks nice but I don’t like the fact that commercial use is not allowed even though the source code is public. Really strange approach.

When it comes to LBM, there’s another interesting open-source software called OpenLB.
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: FluidX3D

Post by thschrader »

I had a look at the presentation of Moritz Lehmann, University Bayreuth, Germany.
https://www.youtube.com/watch?v=pD8JWAZ2f8o
https://www.iwocl.org/wp-content/upload ... ehmann.pdf
Very fascinating indeed...

After installing Visual Studio and a little bit of trial and error I could get
the "beach" example running. Sometimes a blind chicken finds a corn! ;)

The program is superfast, the simulation runs in realtime! In the console!
You can pause the sim, change camera views, switching between surface/solid/streamline representation.
With or without background. All running on a laptop with intel i5 and Nvidia GeForce RTX 2060.

The computing domain in this case is defined without loading any stl-files to define the geometry,
what you must do in openFOAM/DualSPHysics.

Lets see if I can get the "Cow" example running (with cow-stl...)
setupcpp.JPG
setupcpp.JPG (187.27 KiB) Viewed 4706 times
beach3.JPG
beach3.JPG (252.15 KiB) Viewed 4706 times
beach2.JPG
beach2.JPG (68.29 KiB) Viewed 4706 times
beach.JPG
beach.JPG (274.09 KiB) Viewed 4706 times
User avatar
saso
Veteran
Posts: 1920
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: FluidX3D

Post by saso »

Nice! 8-)

Here are a few links to a bit of theory on the Lattice Boltzmann method and its pros and cons compared to the more standard CFD solvers...

Lattice Boltzmann methods (LBM)
https://en.wikipedia.org/wiki/Lattice_Boltzmann_methods

Introduction to Lattice Boltzmann Method
https://www.youtube.com/watch?v=I82uCa7SHSQ

LBM Lecture 1: Introduction to the Lattice Boltzmann Method
https://www.youtube.com/watch?v=HMbM5_TdPsc

Everything you need to know about the Lattice Boltzmann Method (LBM) for CFD Simulation
https://www.youtube.com/watch?v=JKQ0XdjLo7M

Introduction to Lattice Boltzmann Method
https://www.youtube.com/watch?v=jfk4feD7rFQ

Modelling multicomponent fluid flows with the lattice Boltzmann method
https://www.youtube.com/watch?v=arpGntfrg4s

And another open source library Palabos based on the lattice Boltzmann (LB) method
https://palabos.unige.ch/
https://www.youtube.com/@palabosunige6780/videos
https://www.youtube.com/@FlowKitLtd/videos

And the already mentioned OpenLB
https://www.openlb.net/
https://www.youtube.com/@openlb/videos
MartinKotsee
Posts: 1
Joined: Sun Feb 05, 2023 11:32 am

Re: FluidX3D

Post by MartinKotsee »

I made a basic tutorial on FluidX3D. I explained which software you need to install beforehand in order to run a simulation and how to adapt setup.cpp code to run a specific case instead of a default benchmark case. Video: https://www.youtube.com/watch?v=mhacLfz92h0
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: FluidX3D

Post by thschrader »

MartinKotsee wrote: Sun Feb 05, 2023 11:41 am I made a basic tutorial on FluidX3D. I explained which software you need to install beforehand in order to run a simulation and how to adapt setup.cpp code to run a specific case instead of a default benchmark case. Video: https://www.youtube.com/watch?v=mhacLfz92h0
+1
tutorial works for me.

EDIT:
any idea where and how to play with the mesh-resolution?
In setup.cpp?

EDIT 2:
and welcome to the FreeCAD-Forum, Martin! :)
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: FluidX3D

Post by thschrader »

I wonder how the computing domain is defined.
When reconstructing the delta-wing example (three points p0,p1,p2)) in FC,
the triangle has a strange location in space.
Where is the info about the green bounding box?
deltaWing_domain.JPG
deltaWing_domain.JPG (147.69 KiB) Viewed 4212 times
Post Reply