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

How to Find Drag/Lift coefficients using icoFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2015, 04:16
Default How to Find Drag/Lift coefficients using icoFOAM
  #1
Member
 
Akr
Join Date: Apr 2015
Location: India
Posts: 53
Rep Power: 11
NightWing is on a distinguished road
Hi all,

As a beginner, I am getting used to OpenFOAM 2.4 version. I would like to compute the drag coefficient for flow over a flat plate. I am using the incompressible isothermal solver icoFoam for that purpose. Is it possible to compute the drag coefficients using icoFOAM?
NightWing is offline   Reply With Quote

Old   September 30, 2015, 06:09
Default
  #2
Member
 
Sravan Kumar
Join Date: May 2014
Posts: 57
Rep Power: 11
coolcrasher is on a distinguished road
you can calculate the coefficients by using the function objects in control dict. Just add following code in end of controlDict file and run the simulation.

Code:
functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so"); //Lib to load
patches (cylinder); // change to your patch name
rhoInf 1.204; //Reference density for fluid
CofR (0 0 0); //Origin for moment calculations
outputControl timeStep;
outputInterval 100;
}

forceCoeffs
{
type forceCoeffs;
functionObjectLibs ("libforces.so");
patches (cylinder); //change to your patch name
rhoInf 1.204;
CofR (0 0 0);
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 0);
magUInf 0.1;
lRef 1;
Aref 1;
outputControl timeStep;
outputInterval 100;
}
);
Hopefully this will work.
coolcrasher 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
ERROR: unable to find library HJH CFX 6 February 26, 2019 06:52
Error while compiling modified icoFoam: "cannot find lthermophysicalModels" DuarteMagalhaes OpenFOAM Running, Solving & CFD 6 June 15, 2014 14:03
Linear and quadratic loss coefficients of porous domain LD696 CFX 1 May 21, 2014 15:08
IcoFoam query srinath OpenFOAM 5 December 9, 2008 03:46
abnormal reaction rate coefficients? peter.zhao Main CFD Forum 4 June 6, 2001 02:06


All times are GMT -4. The time now is 03:12.