CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

how to set functions about Cd and Cl

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

LinkBack Thread Tools Display Modes
Old   July 1, 2013, 05:42
Default how to set functions about Cd and Cl
New Member
Join Date: Jul 2013
Posts: 7
Rep Power: 6
xiaof is on a distinguished road
Hello everyone
I am simulating flow past a square cylinder problem.I have attached the model here.The flow is along z axis.The square cylinder axis is parallel to the y-axis.The width and the height of the square cylinder is 0.1 and 0.3.
I have tried to set the file accorrding the result looks not good.


        type        forceCoeffs;
        functionObjectLibs ( "" );
        outputControl timeStep;
        outputInterval 1;
		directForceDensity no;

        pName       p;
        UName       U;
        rhoName     rhoInf;
        //log         true;
        rhoInf      1;
        CofR        ( 0 0 0 );
        liftDir     ( 1 0 0 );    //x direction
        dragDir     ( 0 0 1 );    //z direction
        pitchAxis   ( 0 0 0 );
        magUInf     2;         //z direction
        lRef        0.1;
        Aref        0.03;    //
        Aref1        0.01;   //?
        rhoRef      1;

I am not sure about the red lines.

Thank you very much!


Attached Images
File Type: jpg QQ??20130701171412.jpg (15.7 KB, 3 views)

Last edited by xiaof; July 1, 2013 at 23:52.
xiaof is offline   Reply With Quote


cd and cl

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

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