saving . . . saved
0
co-efficient of drag and lift
Title
Question

Hi everyone, I am studying flow past a cylinder kept between two infinitely large plates. Reynolds no. is 500 and strouhal no. is 0.18.I want to get the co-efficient of drag and lift. How can i get the values? Thanks in advance. regards Subhankar


OpenFOAM 03-08-16, 3:45 p.m. SUBHANKAR

Answers:

0

Dear Subhankar,

Add the following lines at the end of controlDict file

functions
\r\n{
\r\nforces
\r\n{
\r\ntype forces;
\r\nfunctionObjectLibs ( "libforces.so" ); // lib to load
\r\noutputControl timeStep;
\r\noutputInterval 1;
\r\npatches
\r\n(
\r\nwall // change to your patch name
\r\n);
\r\n// name of fields
\r\npName p;
\r\nUName U;
\r\nlog true; // dump to file
\r\nrhoInf 1025;
\r\nCofR ( 0 0 0 );
\r\n}
\r\nforcesCoeffs
\r\n{
\r\ntype forceCoeffs;
\r\nfunctionObjectLibs ( "libforces.so" ); // lib to load
\r\noutputControl timeStep;
\r\noutputInterval 1;
\r\npatches
\r\n(
wall // change to your patch name
\r\n);
\r\n// name of fields
\r\npName p;
\r\nUName U;
\r\nlog true; // dump to file
\r\nrhoInf 1025;
\r\nCofR ( 0 0 0 );
\r\nliftDir ( 0 1 0 );
\r\ndragDir ( 1 0 0 );
\r\npitchAxis ( 0 0 0 );
\r\nmagUInf 1.0; // velocity magnitude
\r\nlRef 0.305;
\r\nAref 0.001525;
\r\n}
\r\n}

This will create a file for lift and drag values.

03-08-16, 3:50 p.m. rahuljoshi


0


Dear Subhankar,

Please remove and from the above code.

03-08-16, 3:54 p.m. rahuljoshi

Dear rahul,
Thanks for the reply. But i couldn't find 'and' you wanted me to remove from the code.


04-08-16, 8:22 a.m. SUBHANKAR

Dear rahul,
Thanks for the reply. But i couldn't find 'and' you wanted me to remove from the code.


04-08-16, 8:31 a.m. SUBHANKAR

Login to add comment


0

Dear subhankar,


Please remove and from the above code. Remove backslash with r and n.

04-08-16, 8:29 a.m. rahuljoshi

Hi rahul
Thanks for the reply. Which solver/scheme should i use for my problem case? And what should be my boundary case files?


06-08-16, 11:32 a.m. SUBHANKAR

Login to add comment


0

Hi rahul
Thanks for the reply. Which solver/scheme should i use for my problem case? And what should be my boundary case files?

06-08-16, 10:54 a.m. SUBHANKAR


Log-in to answer to this question.