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 floor BC for Automobile aerodynamics #122

Closed mohdafeefbadri closed 9 months ago

mohdafeefbadri commented 10 months ago

Hello,

I am a newbie to FluidX3D and LBM.

Is it possible to make the ground BC for an automobile aerodynamics problem (STL file on the ground) to a moving wall BC? That is. moving wall BC for the box face (bottom face of the box) where the STL object/car model rests.

Best

ProjectPhysX commented 9 months ago

Hi @mohdafeefbadri,

welcome here! Yes you can make the road surface a moving boundary. Two steps to do this: enable the MOVING_BOUNDARIES extension by uncommenting the linked line, and in the main_setup() function, set the boundary flag for the bottom cells if(z==0u) lbm.flags[n] = TYPE_S; and make the velocity in this bottom layer non-zero: if(z==0u) lbm.u.y[n] = lbm_u;

See the F1 car sample setup and FluidX3D Documentation for details. Note that there might be some instabilities depending on simulation parameters, originating from where the wheels touch the road.

Kind regards, Moritz