|
[Sponsors] |
March 15, 2012, 07:50 |
Forces on cylinder in Openfoam
|
#1 |
New Member
Join Date: Feb 2012
Posts: 6
Rep Power: 14 |
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 |
|
Tags |
forces and force coeff. |
|
|
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 |