Mohamedelrefaie / DrivAerNet

A Large-Scale Multimodal Car Dataset with Computational Fluid Dynamics Simulations and Deep Learning Benchmarks
MIT License
133 stars 19 forks source link

Math problem need help #2

Closed wangguan1995 closed 6 months ago

wangguan1995 commented 6 months ago

Hi there, I am an automotive CFD Engineer interested in [AI+CFD]. So glad and excited for your reply! Your work is so chilling, [DrivAerNet] is more directly accurate, and end-to-end than other methods I have ever seen! I believe it is SOTA method currently and will make a revolution in industrial filed. I have made some proper change for a better understanding:

For car [No.0501]

cd equation

image

files in drop_box

image

image

Image

My poor math here

Fd = Cd * 0.5 * (rho * v^2 ) * A_ref 
Fd = 0.326779573 * 0.5 * (1.2 * 30 * 30) * 2.48347697559532 
Fd = 438.236754 [N]

Then, I tried to calculate [Fd] and [Ff] by [paraview 5.11.0 under macos]

image

Fp_vtk = Integrate(p * Normals_X)   =  294.474 [N]
Ff_vtk = Integrate(wallShearStress) = -22.8335 [N]
Fd_vtk = Fp_vtk + Ff_vtk            =  271.6405[N]

Current Conclusion

Here is a big gap between [272 N] and [438 N], need help for solve this problem, thanks

wangguan1995 commented 6 months ago

image

btw 0132.stl projection area missing...

Mohamedelrefaie commented 6 months ago

Hi, we've implemented simpleFoam, an incompressible solver for our simulations and the momentum equation uses the kinematic pressure. image So, please make sure to multiply your pressure with the density (rho=1.2kg.m^-3). In addition, verify that the tangential vectors are used for wall shear stress, not normals. This should give you the correct drag force/coefficient.

One important thing is that the drag values reported in the AeroCoefficients_DrivAerNet_FilteredCorrected.csv are averaged over several iterations, which might differ from direct calculations that typically represent only the latest iteration! We used RegDGCNN to directly estimate Cd from a 3D mesh. This contrasts with other approaches like neural operators, which first predict pressure and wall shear stresses and then integrate these to derive Cd. To address this, we will release the drag history and statistical metrics such as mean drag and standard deviation to provide a more reliable benchmark across different estimation methods.

wangguan1995 commented 6 months ago

Paraview Files:

CheckList:

My assumption:

Plus:

Mohamedelrefaie commented 6 months ago

Hi @wangguan1995,

Thank you for your input and the positive feedback about our work. I've reviewed your approach and I suggest the following adjustments:

Pressure Force Calculation: Please include fluid density in the pressure force equation: so it should be Fp_vtk = Integrate(p Normals_Xrho_inf) and not Fp_vtk = Integrate(p * Normals_X)

Wall Shear Stress: The stress should be calculated using tangential forces, not surface normals.

I will update the projected areas file asap.

Regarding your question on CFD physics near the boundary layer: yes, it is well-studied. However, our study aimed to balance simulation fidelity with shape variation. Simulating fine meshes for 4,000 designs would require more than 120TB, which isn't feasible at all. Our focus was to provide a large variation in shape, essential for the conceptual design phase, allowing engineers and designers to better explore the design space.

Additionally, very high-fidelity fine simulations with low design variation may cause models to overfit to specific car design. For deep learning models to generalize well to out-of-domain designs, it’s critical that they are trained on diverse geometrical modifications.

If you'd like to contribute to this work, we welcome pull requests and will acknowledge contributions in future publications.