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.81k stars 301 forks source link

No streamlines or eddies in the f1 car example #61

Closed lk251 closed 1 year ago

lk251 commented 1 year ago

Running everything on default settings, there were no streamlines or eddies happening anywhere around the car body, only around the tires. I experimented with grid size and other settings, to no avail.

ProjectPhysX commented 1 year ago

Did you remove the line from the setup that is loading the stl geometry? The stl file of the F1 car unfortunately is not available on Thingiverse anymore. Without solid geometry in the simulation domain, there will of course be no vortices.

lk251 commented 1 year ago

thanks for the reply! i found the stl file in another website, i see the car, fuselage is in grey mesh lines, the wheels in red if i recall, only flow around the tires is visible / being computed

ProjectPhysX commented 1 year ago

Can you share a screenshot so I can see what is going on exactly?

lk251 commented 1 year ago

https://media.discordapp.net/attachments/1048545964253777953/1084555640795562114/wheels_burnin.png?width=2493&height=1402

ProjectPhysX commented 1 year ago

Thanks! Ah! In the F1 setup there was a line commented that shouldn't have been. I just fixed this in the repo. Uncomment line 522 in src/setup.cpp, then it works.

lk251 commented 1 year ago

thank you! really enjoying this software. if you have a minute, i'm computing flow around an hp reverb g2 vr headset, can you recommend a good piece of software to convert the collection of pngs into a video file? cheers

ProjectPhysX commented 1 year ago

I'm using ffmpeg to convert .png images to .mp4 videos. The command is:

ffmpeg -framerate 60 -pattern_type glob -i "export/image-*.png" -c:v libx264 -pix_fmt yuv420p -b:v 80M video.mp4

For full quality, you can remove the bitrate limitation -b:v 80M, but in 4K the bitrate can get so astronomically large that the video player will crash :)