|
[Sponsors] |
how to accurately simulate flow around cylinder |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 4, 2014, 16:32 |
|
#41 |
Senior Member
|
Move 0 folder to 0.org and retry with paraFoam. I really would like to know where is defaultFaces from the point of view of openfoam-extend-3.0.
Meanwhile I've generated mesh with OpenFOAM 2.2.2 and put case files with converted mesh to https://dl.dropboxusercontent.com/u/...ylinder.tar.gz (as it is too big for attachment). |
|
March 4, 2014, 16:35 |
|
#42 | |
Senior Member
|
Quote:
|
||
March 5, 2014, 04:48 |
|
#43 | |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Quote:
What is the Reynolds number in your attached case? |
||
March 5, 2014, 05:23 |
|
#44 | ||
Senior Member
|
Quote:
Quote:
|
|||
March 5, 2014, 06:15 |
|
#45 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Alexey,
I attached paraview screen. Is that make sense? You are using two walls on the top and bottom of the domain. Am I right? |
|
March 5, 2014, 06:26 |
|
#46 |
Senior Member
|
The screen shot shows internalMesh and all the patches, I'd like to see only defaultFaces patch, as with OF 2.2.2's gmshToFoam there is no such thing.
Also I've updated case files for the case with Re = 100 (https://dl.dropboxusercontent.com/u/...ylinder.tar.gz). You need around 9000 seconds for the flow to develop periodic vortex structure as inlet velocity is quite low. And my quickly made mesh is not so good in fact, you need to play with densities in different regions to make more or less uniform mesh, maybe create additional layer of cell between cylinder and the rest of the mesh. |
|
March 5, 2014, 07:31 |
|
#47 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Many thanks Alexey. I'm trying all posibilities now. I will let you know then what I would get. Moreover,
1. Did you try to plot velocity, drag and lift forces for that last case? 2. In the attached screenshot, you are using two walls on the top and bottom of the domain. You should use slip boundary conditions on these walls. You should only apply v = 0. The figure shows that you are applying both velocity components equal to zero on the top and bottom walls. Am I right? |
|
March 5, 2014, 09:14 |
|
#48 |
Senior Member
|
1. Well, I've plotted them, after 9000 s these plots have periodic structure. I did not check the values.
2. Patches top and bottom have empty type as we are running 2D simulation (assuming infinite height of the channel), so there is actually no BC there. I set non-slip BCs only on walls patch (usual BC for walls). |
|
March 5, 2014, 09:59 |
|
#49 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
I got very high velocity that is imposible, isn't it? see the attached file please
|
|
March 5, 2014, 10:42 |
|
#50 |
Senior Member
|
Where did you probe this velocity?
Also as I said the mesh is far from being even good. I've tried another more uniform mesh with grading towards the cylinder and the results are more beautiful. I'll post case files as soon as it will finish running. |
|
March 5, 2014, 10:50 |
|
#51 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
I probe this velocity from the output file which gives forces. It gives time, cm, cd, cl, cl(f) and cl (r). I think cm represents velocity. Isn't it?
I don't know what are cl(f) and cl(r)? I'm looking forward to get the new mesh. With lots of thanks. |
|
March 5, 2014, 11:18 |
|
#52 |
Senior Member
|
Meanwhile,
here's how Cm is calculated: Code:
... scalar pDyn = 0.5*rhoRef_*magUInf_*magUInf_; ... Field<vector> totMoment(moment_[0] + moment_[1] + moment_[2]); ... coeffs[2] = (totMoment & pitchAxis_)/(Aref_*lRef_*pDyn); ... scalar Cm = sum(coeffs[2]); |
|
March 7, 2014, 07:21 |
|
#53 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Alexey,
the last changes that I did for Reynolds number= 100, I fix U=1.0 , D = 1.0 and changed the value of nu = 0.001. But unfortunately, I didn't solve the convergence problem for lift and drag coefficients which gave very high value. Do you get the result for your case? My last changes and the graph shown drag coefficient were attached. If you have any idea let me know please. Many thanks in advanced. |
|
March 7, 2014, 12:42 |
|
#54 |
Senior Member
|
As I said, calculation of Cm, Cd, and Cl depends on the properties you've used in forces dictionary in controlDict. If you put there wrong values of CofR, lRef or Aref, you'll get very strange values in the forcesCoeffs.dat.
Here is the new mesh - https://dl.dropboxusercontent.com/u/...inder-n.tar.gz. I've reduced D, modified controlDict to correspond to the new mesh and velocities. At Re=100, I've got no vortexes (maybe did not wait enough), so I've increased inlet velocity ten times, now Re=1000. You need to ignore initial values of force coefficients as the initial flow is not physical. Check the parameters of the mesh, initial conditions, contents of forces dictionary before running the case. As I don't know what you are trying to do (except development of vortex street) they can be wrong. Maybe also you'll need to reduce density of the mesh, now it's rather fine, so running time can be unacceptable. In the GEO file density of the mesh is controlled by RHO{1..6} variables. |
|
March 7, 2014, 13:37 |
|
#55 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Alexey,
many thanks. I'll check everything, then I'm going to inform you about the final result. |
|
March 10, 2014, 08:55 |
|
#56 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Alexey,
In force function in controlDict file, is the following meaning correct? a.) magUInf is relative velocity. b.) lRef is length of the domain (21 m in my case?) c.) Aref is area of the domain (rectangular area + cylinder area in my case?) d.) What does CofR mean? I'm still trying to solve my problem regarding velocity, lift and drag coefficients. Any idea? |
|
March 10, 2014, 09:07 |
|
#57 |
Senior Member
|
If you take a look at $FOAM_SRC/postProcessing/functionObjects/forces/forceCoeffs/forceCoeffs.H, you will be able to find this comment:
Code:
\heading Function object usage \table Property | Description | Required | Default value ... patches | patches included in the forces calculation | yes | liftDir | lift direction | yes | dragDir | drag direction | yes | pitchAxis | picth axis | yes | magUInf | free stream velocity magnitude | yes | lRef | reference length scale for moment calculations | yes | ARef | reference area | yes | ... \endtable Code:
\heading Function object usage \table Property | Description | Required | Default value ... CofR | centre of rotation (see below) | no | ... \endtable |
|
March 10, 2014, 10:26 |
|
#58 | |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Alexey,
now I understand the meaning of each forces coefficients. After I did changes regarding my case ( I fixed D=1, U = 1 and nu = 0.001 to get Re = 100), but unfortunately it gives me the following error Quote:
Could you please go through the attached file? |
||
March 10, 2014, 10:43 |
|
#59 |
Senior Member
|
I don't know why you've decided to increase initial deltaT to 0.01.
This is the reason for the error. Set it to smaller value (1e-3 or 1e-4, as I my original case files). |
|
March 10, 2014, 10:55 |
|
#60 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Many thanks. It is running now. I will contact you when get the result.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] OpenFoam Flow over a Circular Cylinder | WolfgangS. | OpenFOAM Meshing & Mesh Conversion | 12 | March 3, 2014 11:53 |
benchmark: flow over a circular cylinder | goodegg | Main CFD Forum | 12 | January 22, 2013 12:47 |
Particle deposition on circular cylinder in turbulent flow | Julian K. | CFX | 1 | October 3, 2011 18:51 |
flow around a cylinder | pXYZ | Main CFD Forum | 14 | July 25, 2011 11:05 |
Flow induced vibration of a mobile cylinder | Hooman | Main CFD Forum | 0 | December 31, 2010 09:48 |