|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Saeed
Join Date: Aug 2019
Location: *There is no border for science*
Posts: 131
Rep Power: 6 ![]() |
Hello everyone,
Would you please tell know what is the lRef and Aref in force function. I,m going to calculate drag and lift coefficients of circular cylinder in openfoam. Assume that the diameter of cylinder is 0.04 and we have considered the thickness in z direction equal to 0.02. Best, Saeed Code:
functions { forces { type forceCoeffs; functionObjectLibs ( "libforces.so" ); outputControl timeStep; outputInterval 1; patches ( cylinder ); pName p; UName U; rhoName rhoInf; log true; rhoInf 1; liftDir (0 1 0); dragDir (1 0 0); CofR (-0.5 0 0); pitchAxis (0 1 0); magUInf 1; lRef 1; Aref 1; } } |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 888
Rep Power: 24 ![]() |
Hello Saeed,
These are the reference length and area to compute the coefficients. https://doc.openfoam.com/2306/tools/...s/forceCoeffs/ The choice of these reference dimensions is arbitrary and depends on the application. For a circular cylinder I guess the diameter should do the job as the reference length, and frontal area as reference area. But if you intend to compare your results with reference data, the best way would be to check what reference dimensions has been used, and use the same dimensions for your case. Cheers, Yann |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Saeed
Join Date: Aug 2019
Location: *There is no border for science*
Posts: 131
Rep Power: 6 ![]() |
Dear Yann, thank you for your response 🙏.
As you said, Aref is frontal area which means diameter of the cylinder times to the height of the cylinder. I'm worry about the value of the height of the cylinder, because it's arbitrary and on the basis of it we will have different Aref. Shall we consider it to 1 m? |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 888
Rep Power: 24 ![]() |
No, keep using the actual height of your cylinder. So you can compare coefficients between cylinders of different sizes.
What would be wrong would be to change the dimension you are using, or to not use the same characteristic dimension than the data you want to compare to. (like using something else than the cylinder height) But with a circular cylinder there are not really a lot of options to choose from to define characteristic dimensions ![]() |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What are the best settings for a channel flow simulation? | Ashkan Kashani | CFX | 3 | October 13, 2022 22:36 |
Simulation of a single bubble with a VOF-method | Suzzn | CFX | 21 | January 29, 2018 01:58 |
It would be wonderful if a tool for FoamToTecplot is available | luckyluke | OpenFOAM Post-Processing | 165 | November 27, 2012 07:54 |
OpenFOAM-2.1.x on fedora 16 x86_64 | anand_30 | OpenFOAM Installation | 3 | December 26, 2011 03:09 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 01:34 |