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

How to calculate and write out transient drag / lift coefficient in OpenFOAM 2.2.1?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 19, 2013, 04:03
Default How to calculate and write out transient drag / lift coefficient in OpenFOAM 2.2.1?
  #1
Member
 
Yao Lu
Join Date: May 2013
Posts: 29
Rep Power: 3
shuoxue is on a distinguished road
It seems that a keyword functions containing forces and forcesCoeffs should be added at the end of controlDict.

Is there any tutorial to give a typical example, and what's the meaning of each entry.

These two are founded on OpenFOAM forum.
Code:
functions
{ forces
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
outputControl timeStep;
outputInterval 1;
patches (profile_wall)
pName p;
UName U;
log true;
rhoInf 1.225;
CofR ( 0 0 0 );
liftDir ( 0 1 0 );
dragDir (1 0 0 );
pitchAxis ( 0 0 1 );
magUInf 100.0;
lRef 0.1254;
Aref 0.01292;
}
}
Code:
functions
{
forces
{
type forces;
functionObjectLibs ( "libforces.so" ); // lib to load
outputControl timeStep;
outputInterval 1;
patches
(
wall // change to your patch name
);
// name of fields
pName p;
UName U;
log true; // dump to file
rhoInf 1025;
CofR ( 0 0 0 );
}
forcesCoeffs
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" ); // lib to load
outputControl timeStep;
outputInterval 1;
patches
(
wall // change to your patch name
);
// name of fields
pName p;
UName U;
log true; // dump to file
rhoInf 1025;
CofR ( 0 0 0 );
liftDir ( 0 1 0 );
dragDir ( 1 0 0 );
pitchAxis ( 0 0 0 );
magUInf 7.30;
lRef 0.305;
Aref 0.001525;
}
}
Thanks in advance.
shuoxue is offline   Reply With Quote

Old   September 30, 2014, 16:01
Default execFlowFunctionObjects
  #2
New Member
 
mohammad
Join Date: May 2014
Posts: 1
Rep Power: 0
maghsomi is on a distinguished road
i use execFlowFunctionObjects but i have this problem
Time = 0.0008
Reading phi
Reading U
Reading p
Selecting incompressible transport model Newtonian
Selecting LES turbulence model oneEqEddy
Selecting LES delta type smooth
Selecting LES delta type cubeRootVol
--> FOAM Warning :
From function cubeRootVolDelta::calcDelta()
in file cubeRootVolDelta/cubeRootVolDelta.C at line 52
Case is 2D, LES is not strictly applicable
maghsomi is offline   Reply With Quote

Old   October 8, 2014, 04:10
Default Lift and drag
  #3
New Member
 
Join Date: Aug 2014
Posts: 1
Rep Power: 0
fluxent is on a distinguished road
There's in OF a function object that allows to evaluate lift and drag?...not coefficient.
Thank's in advance for your attention
fluxent is offline   Reply With Quote

Old   November 11, 2014, 06:04
Default
  #4
New Member
 
Join Date: May 2013
Posts: 3
Rep Power: 3
er_trebbia is on a distinguished road
Hi fluxent

type this inside functions () in controlDict

forces
{
type forces;
functionObjectLibs ("libforces.so");
patches (//patches of wall you are calculating);
pName p;
UName U;
rhoName rhoInf;//for incompressible
rhoInf 1.2; // Reference density, fluid
CofR (0 0 0); // Origin for moment calculations
outputControl timeStep;
outputInterval 1;
}

You can find in tutorials/incompressible/pimpleDyMFoam/wingMotion/

Last edited by er_trebbia; November 15, 2014 at 06:51. Reason: previous was very rough
er_trebbia is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate and write out transient drag / lift coefficient in OpenFOAM 2.2.1? shuoxue OpenFOAM 1 October 19, 2013 11:51
how to write a scalar value to a file ???? SamerAli OpenFOAM Programming & Development 1 May 7, 2013 13:19
How calculate friction coefficient in a corrugated pipe Feli FLOW-3D 0 November 9, 2011 12:16
Drag coefficient as a solver criterium sanchezz CFX 1 January 4, 2010 19:30
interesting..how to calculate lift and drag distbn Endee FLUENT 1 August 30, 2005 18:54


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