CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Cd Variation on a Cylinder in the Vertical Direction

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By sherif35
  • 1 Post By sherif35
  • 2 Post By sherif35

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2014, 12:44
Default Cd Variation on a Cylinder in the Vertical Direction
  #1
New Member
 
AI
Join Date: Jun 2014
Posts: 17
Rep Power: 11
sherif35 is on a distinguished road
I知 trying to calculate the drag and lift coefficient along the vertical axis of the cylinder and I知 using the following functions in the controlDict file (by changing CofR (0 0 -2.0) to the desired vertical location). However, I知 getting the same exact Cd and Cl (and forces for that matter) along the length for a 3-D calculations with turbulent flow.

How do I get the variation of forces (or Cd) along the cylinder in the vertical direction? Thank you.

forceCoeffs02
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
patches (cylinder);
rhoName rhoInf;
rhoInf 1000;
UName U;
magUInf 1.0;
log on;
outputControl timeStep;
outputInterrval 1;
CofR (0 0 -2.0);
lRef 1.0;
Aref 10.0;
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 1);
}

forceCoeffs03
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
patches (cylinder);
rhoName rhoInf;
rhoInf 1000;
UName U;
magUInf 1.0;
log on;
outputControl timeStep;
outputInterrval 1;
CofR (0 0 -3.0);
lRef 1.0;
Aref 10.0;
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 1);
}
zacwhee likes this.
sherif35 is offline   Reply With Quote

Old   September 22, 2014, 12:17
Default Sectional Cd is Different along Vertical Sections
  #2
New Member
 
AI
Join Date: Jun 2014
Posts: 17
Rep Power: 11
sherif35 is on a distinguished road
Hello all,

I figured out how to get the sectional CD and CL by adding the binData section to the forceCoeffs function in controlDict as follow:

forceCoeffs
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
patches (cylinder);
rhoName rhoInf;
rhoInf 1000;
UName U;
magUInf 1.0;
log on;
outputControl timeStep;
outputInterrval 1;
CofR (0 0 -5.0);
lRef 1.0;
Aref 10.0;
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 1);

binData
{
nBin 10;
direction (0 0 1);
cumulative no;
}
}


I'm getting two distinct groups of Cd curves based on the vertical location of the section.

The simulation is for classic flow over a cylinder with Re = 200, (the flow is 2-D) with the vertical distance of the domain is 10D divided into 24 cells of equal height along the axes of the cylinder.

Looking at the Cd curves, sections 0, 3, 6 and 9 (from the bottom to top) are all in one group with Cd around 0.172 (multiply by 10) vs. the remaining sections with Cd around 0.114.

For higher Re (3-D flow) same issue but with random signal.

I understand that sectional Cd might be different for different sections but having 2 distinct groups of curves doesn't look right to me.

Can anyone help explaining this issue? Any contribution to the discussion of this issue is welcomed, Thank you.
Attached Images
File Type: jpg Re_200_Sectional_Cd.jpg (40.3 KB, 52 views)
zacwhee likes this.
sherif35 is offline   Reply With Quote

Old   September 23, 2014, 17:20
Default Sectional Cd issue is resolved
  #3
New Member
 
AI
Join Date: Jun 2014
Posts: 17
Rep Power: 11
sherif35 is on a distinguished road
The issue I explained above is resolved now, it痴 simple geometry issue. Basically, I have divided the grid into 48 or 24 cells in the vertical direction. And for the purpose of calculating the sectional drag coefficients, I've divided the domain into 10 sections in the vertical direction.

When openFoam calculates the forces in each vertical section, it adds the forces from all the cells that their centers lie within this section vertically. Although, all the sections have the same delta z, some sections may include more cells than other sections. hence, higher forces in some vertical sections.

This explains why the 2 grids with 24 cells in the vertical direction have similar patterns regardless of the Reynolds number and the grids with 48 cells have different pattern. So I think this issue is resolved now.

Just wanted to share with others.
kkpal and zacwhee like this.
sherif35 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
oscillating cylinder dynamic mesh Scabbard OpenFOAM Pre-Processing 159 February 6, 2022 15:47
Cylinder moving in fluid,Solution diverging arun7328 STAR-CCM+ 5 February 27, 2013 14:28
Air natural convection inside a vertical cylinder Pavolo FLUENT 3 December 12, 2012 06:00
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 09:03
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 11:04.