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

how to set functions about Cd and Cl

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2013, 05:42
Default how to set functions about Cd and Cl
  #1
New Member
 
JM
Join Date: Jul 2013
Posts: 7
Rep Power: 12
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 http://openfoamwiki.net/index.php/Be...coftac_ufr2-02but the result looks not good.

Code:
functions
{
    

    forces
    {
        type        forceCoeffs;
        functionObjectLibs ( "libforces.so" );
        outputControl timeStep;
        outputInterval 1;
        patches
        (
            INWALL
        );
		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!

regards


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

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

Reply

Tags
cd and cl


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



All times are GMT -4. The time now is 18:49.