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

forceCoeffs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2015, 14:36
Default forceCoeffs
  #1
New Member
 
shokat
Join Date: Apr 2015
Location: Iran,Amol
Posts: 9
Rep Power: 11
khatereh is on a distinguished road
Dear friends,
I run a case study in openfoam, i added to controlDict a subfunction for computing Cd and CL,such as,
---------------------------------------------------------------------------------
forceCoeffs_object
{
// rhoInf - reference density
// CofR - Centre of rotation
// dragDir - Direction of drag coefficient
// liftDir - Direction of lift coefficient
// pitchAxis - Pitching moment axis
// magUinf - free stream velocity magnitude
// lRef - reference length
// Aref - reference area
type forceCoeffs;
functionObjectLibs ("libforces.so");
//patches ("body1" "body2" "body3");
type forceCoeffs;
functionObjectLibs ("libforces.so");
//patches ("body1" "body2" "body3");
patches (movingWall);
pName p;
Uname U;
rhoName rhoInf;
rhoInf 1.0;
//// Dump to file
log true;
CofR (0.0 0 0);
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 1);
magUInf 1.0;
lRef 1;
// reference length for moments!!!
Aref 2.0;
// reference area 1 for 2d
outputControl
outputInterval
timeStep;
outputInterval 1;
---------------------------------------------------------------------------------
the program has been run without error,but it did not have output for forceCoefficient!!!
I do not know how i compute these parameters and draw!!!
please help me, thanks
khatereh is offline   Reply With Quote

Old   April 26, 2015, 14:41
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
Dear khatereh
Did you define patch name properly?
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   April 26, 2015, 15:35
Default
  #3
New Member
 
shokat
Join Date: Apr 2015
Location: Iran,Amol
Posts: 9
Rep Power: 11
khatereh is on a distinguished road
hi,
i am sure for patch name!
khatereh is offline   Reply With Quote

Old   April 28, 2015, 05:06
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
then upload your test , your setup seems perfect
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
forceCoeffs and rhoInf dependency Horus OpenFOAM 3 August 9, 2018 03:55
Problem in simpleFoam airFoil2D forceCoeffs junkie71189 OpenFOAM Running, Solving & CFD 31 March 11, 2017 21:56
Adding forcecoeffs file to the controldict is causing pimpleDyMfoam to crash. pruthvi1991 OpenFOAM Running, Solving & CFD 13 April 13, 2015 01:46
RNG diverged during the analysis the flow over a multi element airfoil, why? s.m OpenFOAM Running, Solving & CFD 0 August 5, 2013 08:39
Problem in forceCoeffs file srini_esi OpenFOAM 0 October 19, 2012 06:34


All times are GMT -4. The time now is 23:24.