CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Unable to validate Drag coefficient for Flow past a sphere using OpenFOAM (https://www.cfd-online.com/Forums/openfoam-solving/254263-unable-validate-drag-coefficient-flow-past-sphere-using-openfoam.html)

jd87 January 30, 2024 13:52

Unable to validate Drag coefficient for Flow past a sphere using OpenFOAM
 
1 Attachment(s)
Hi Foamers,

I am new to pimpleFoam / OpenFOAM and was trying to validate the overall drag on a sphere due to a flow past it. I am aware of a thread closely related: https://www.cfd-online.com/Forums/op...tml#post864018. There are other threads too but none speaks of validation at low Reynolds number (creeping) flows with Cd=24/Re.
I have followed the above link to build my case. I used the entries as stated in the link with the given geometry, I am not getting the drag coefficient of 27.6, I am getting something around 40. I have attached my case, it would be helpful if anyone could spot where I am going wrong or share any comment that would help me validate the same. Additionally, is there a 3D version for validating Cd for flow past a sphere in OpenFOAM?

PS: To run the case, one has to convert the .geo file in constant to .msh using GMSH and then use the two following commands:
Code:

gmshToFoam constant/sphere.msh
pimpleFoam

In case GMSH is not available, kindly drop a reply, and I will share the files over a link.

Thanks in anticipation,
JD

PASCY January 31, 2024 00:25

Hello jd87,
Just wanted to ask if you tried getting the drag force from paraview and then tried calculating Cd from there?

Regards

jd87 January 31, 2024 05:24

Quote:

Originally Posted by PASCY (Post 864043)
Hello jd87,
Just wanted to ask if you tried getting the drag force from paraview and then tried calculating Cd from there?

Regards

Hi,

I have used the forcesCoeff utility (you may find that in the controlDict file). I tried previously with paraView, but I did not get the desired results, hence attempted to use the internal OpenFOAM utility.
Let me know if you have any ideas regarding this problem.

Thanks,
JD

PASCY January 31, 2024 05:33

hello,
Sure, if i'm able to find anything on this, i'll let you know...

regards

jd87 February 11, 2024 11:05

Succesfully verified
 
1 Attachment(s)
The problem is solved and the files are attached for future help. The file is checked to run on OF v8 and v10.

Best,


All times are GMT -4. The time now is 00:49.