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

Friction coefficients using icoFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2010, 11:22
Default Friction coefficients using icoFoam
  #1
New Member
 
Walid JARRAH
Join Date: Nov 2009
Location: INSA de Rouen
Posts: 14
Rep Power: 17
wjarrah is on a distinguished road
Send a message via MSN to wjarrah Send a message via Skype™ to wjarrah
Hello everyone,

I need to plot the friction coefficient using icoFoam solver on a flat plate.

I tried to add the following lines at the end of /system/controlDict, but an error appears when calling "icoFoam" :

functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so");
patches (wall);
rhoInf 1000;
CofR (0 0 0);
}
forceCoeffs
{
type forceCoeffs;
functionObjectLibs ("libforces.so");
patches (wall);
rhoInf 1000;
CofR (0 0 0);
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 0);
magUInf 0.13;
lRef 1;
Aref 1;
}
);



The error :
Create time

Create mesh for time = 0

Reading transportProperties

Reading field p

Reading field U

Reading/calculating face flux field phi

Courant Number mean: 0 max: 0.052

Starting time loop



keyword outputControl is undefined in dictionary "::functions::forces"

file: ::functions::forces from line 59 to line 63.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 388.

FOAM exiting



Can someone help me with this problem please ?
(Maybe there is another way to output the friction coefficient ?)

Thanks
wjarrah is offline   Reply With Quote

Old   August 21, 2010, 06:25
Default
  #2
New Member
 
Join Date: Mar 2010
Location: Germany
Posts: 10
Rep Power: 16
Aloex is on a distinguished road
Hi,

I have the same error after starting "icoFoam".

Is it possible that it is not sufficient to make the entry in the system/controlDict for the forces and force coefficients like wjarrah it done? Must I change also other files from the solver or so?

Thanks for your help!
Alex
Aloex is offline   Reply With Quote

Old   August 21, 2010, 07:18
Default
  #3
New Member
 
Join Date: Mar 2010
Location: Germany
Posts: 10
Rep Power: 16
Aloex is on a distinguished road
I solved the problem with the help of other threads and forums. It is not necessary to change anything else then the controlDict. Here are the additional lines for the controlDict:


functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so");
rhoInf 1.0;
patches ( ELLIPSOID.1 );
CofR (0 0 0);
outputControl timeStep;
outputInterval 1;
}
forceCoeffs
{
// rhoInf - reference density
// CofR - Centre of rotation
// dragDir - Direction of drag coefficient
// liftDir - Direction of lift coefficient
// pitchAxis - Pitching moment axis
// magUinf - free stream velocity magnitude
// lRef - reference length
// Aref - reference area
type forceCoeffs;
functionObjectLibs ("libforces.so");
patches (ELLIPSOID.1);
rhoName rhoInf;
rhoInf 1.0;
CofR (0 0 0);
liftDir (0 0 1);
dragDir (0 1 0);
pitchAxis (0 0 1);
magUInf 0.1;
lRef 0.0004; // ellipsoid max diameter
Aref 6.283e-8; //projected area from ellipsoid
outputControl timeStep;
outputInterval 1;
}
);

It creates a directory for the forces and force coefficients in your case.

Alex
Aloex 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
Calculate aerodynamic coefficients with openfoam using only opensource programs Xwang OpenFOAM 20 May 20, 2016 12:26
Density in icoFoam Densidad en icoFoam manuel OpenFOAM Running, Solving & CFD 8 September 22, 2010 05:10
Computing aerodynamic coefficients on bidimensional sections in 3D problems Aragon FLUENT 0 July 22, 2009 05:07
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 08:52
Compute Skin friction coef by hand Francois FLUENT 1 February 10, 2006 07:21


All times are GMT -4. The time now is 10:42.