|
[Sponsors] |
How to calculate and write out transient drag / lift coefficient in OpenFOAM 2.2.1? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 19, 2013, 05:00 |
How to calculate and write out transient drag / lift coefficient in OpenFOAM 2.2.1?
|
#1 |
Member
Yao Lu
Join Date: May 2013
Posts: 33
Rep Power: 13 |
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; } } |
|
October 19, 2013, 12:51 |
|
#2 |
Senior Member
Join Date: Jun 2011
Posts: 163
Rep Power: 15 |
there is not any difference between the steady and unsteady case
it is sufficient to add as follow Code:
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; } } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to write a scalar value to a file ???? | SamerAli | OpenFOAM Programming & Development | 1 | May 7, 2013 14: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 19:54 |