ProjectPhysX / FluidX3D

The fastest and most memory efficient lattice Boltzmann CFD software, running on all GPUs via OpenCL. Free for non-commercial use.
https://youtube.com/@ProjectPhysX
Other
3.77k stars 300 forks source link

Moving Solid Mesh #116

Closed zzhou292 closed 10 months ago

zzhou292 commented 11 months ago

Hello,

Thank you in advance for any clues provided under this issue.

I am aiming to couple FluidX3D with Project Chrono to enable CFD simulation support for moving vehicles, as shown in this vid: https://www.youtube.com/watch?v=ueWIOOU1QfI&ab_channel=UWSBEL.

For me I really just want to show the vehicle chassis, so the problem can be simplified into 'a solid and nondeformable mesh but it moves in the contained domain'. Is it possible to enable a moving mesh in the scene?

Thank you again for answering! I cannot appreciate more!

Jason

ProjectPhysX commented 10 months ago

Hi @zzhou292,

moving objects are possible and require periodic re-voxelization. For your example, my advice is to export the rotation matrix and translation vector from your animation software to one or more files. Load these in FluidX3D (write a custom function for this using read_file), and use them to periodically move/rotate the mesh, then re-voxelize and simulate a few tme steps following the documentation.

Have fun!

Kind regards, Moritz