|
[Sponsors] |
How to Find Drag/Lift coefficients using icoFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 30, 2015, 04:16 |
How to Find Drag/Lift coefficients using icoFOAM
|
#1 |
Member
Akr
Join Date: Apr 2015
Location: India
Posts: 53
Rep Power: 11 |
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? |
|
September 30, 2015, 06:09 |
|
#2 |
Member
Sravan Kumar
Join Date: May 2014
Posts: 57
Rep Power: 11 |
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; } ); |
|
|
|
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 |