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

Forces on cylinder in Openfoam

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 15, 2012, 07:50
Default Forces on cylinder in Openfoam
  #1
New Member
 
Join Date: Feb 2012
Posts: 6
Rep Power: 14
krsp is on a distinguished road
Hi everyone,

I am trying to determine the forces and the force coefficients on a cylinder in OpenFoam 1.6-ext. I have typed the following in my controlDict file:

libs ("libmyIncompressibleRASModels.so" "libOpenFOAM.so" "libgroovyBC.so");
application osciTurbFoam;
startFrom latestTime;
deltaT 2.7e-4;
writeControl adjustableRunTime;
startTime 0;
stopAt endTime;
endTime 200.0;
writeInterval 1;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxDeltaT 0.01;

functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so");
patches (fixedWall);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1000; // Reference density, fluid
CofR (0 0 0); // Origin for moment calculations
outputControl timeStep;
outputInterval 1;
}
forceCoeffs
{
type forceCoeffs;
functionObjectLibs ("libforces.so");
patches (fixedWall);
// pName p;
// UName U;
rhoName rhoInf;
rhoInf 1000;
CofR (0 0 0);
liftDir (0 0 1);
dragDir (1 0 0);
pitchAxis (0 0 0);
magUInf 0.05; // Free stream velocity
lRef 0.3; // Diameter of cylinder?
Aref 0.0707; // Ref. Area = cross sectional area?
outputControl timeStep;
outputInterval 1;
}
);


My problem is, that in the two directories "forces" and "forceCoeffs" I only get a 0 directory (only one .dat file for each). Does someone know, why the other timesteps do not generate files for forces and force coefficients?

Thank you in advance
krsp is offline   Reply With Quote

 

Tags
forces and force coeff.


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
forces in interFoam Svensson OpenFOAM Post-Processing 2 May 9, 2012 13:31
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
FORCES don't run! C12Carbon OpenFOAM 0 September 10, 2011 07:34
Summer School on Numerical Modelling and OpenFOAM hjasak OpenFOAM 5 October 12, 2008 13:14
OpenFOAM Training and Workshop Hrvoje Jasak Main CFD Forum 0 October 7, 2005 07:14


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