CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Drag Coefficient monitoring

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 22, 2012, 19:13
Default Drag Coefficient monitoring
  #1
New Member
 
Stefan Gracik
Join Date: Oct 2011
Location: Penn State
Posts: 8
Rep Power: 5
stefan.gracik is on a distinguished road
Are there any tools out there that enable you to monitor things like the drag coefficient while the solver is running? My goal is to be able to stop the simulation if it looks like the drag coefficient (or particular variable of interest) has converged but the solver hasn't reached convergence criteria yet.
stefan.gracik is offline   Reply With Quote

Old   January 23, 2012, 04:45
Default
  #2
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 175
Rep Power: 8
MadsR is on a distinguished road
I think you need to find the search button on this forum :-) Or, you could do a

grep "forceCoeffs" `find $WM_PROJECT_DIR -name 'controlDict'`

on your machine. Anyways, add the below (taken from the motorbike tutorial) to your controlDict file and watch how force coefficients pop up in the <case>/forceCoeffs directory. It's like magic! :-) . Remember to alter the settings to match your setup (patch, direction-vectors and reference areas and lengths).

forces
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
outputControl timeStep;
outputInterval 1;

patches ( "motorBike.*" );
pName p;
UName U;
rhoName rhoInf; // Indicates incompressible
log true;
rhoInf 1; // Redundant for incompressible
liftDir (0 0 1);
dragDir (1 0 0);
CofR (0.72 0 0); // Axle midpoint on ground
pitchAxis (0 1 0);
magUInf 20;
lRef 1.42; // Wheelbase length
Aref 0.75; // Estimated
}

Cheers,
Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   January 23, 2012, 10:52
Default Thanks....
  #3
New Member
 
Stefan Gracik
Join Date: Oct 2011
Location: Penn State
Posts: 8
Rep Power: 5
stefan.gracik is on a distinguished road
Thanks for the response, but I guess I should have been more clear. I know how to get the values for force coeffs. I'm just wondering if there is some type of add-on that could graph this while the solver is running.

For example, I use pyFoam to plot the residuals in gnuplot as the solution converges, I was wondering if there was something out there that could do the same thing for forceCoeffs. This way I could actively watch the values and stop the simulation when it looks like forceCoeffs has reached a constant value.

I suppose I could just look at the text file while solving.....

Thanks
stefan.gracik is offline   Reply With Quote

Old   January 23, 2012, 11:07
Default
  #4
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 175
Rep Power: 8
MadsR is on a distinguished road
Ah sorry, I misunderstood you. You want the fancy option :-)
A quick and dirty approach would of course be to just fire up Gnuplot and do a repl now and then, but I guess you are doing that already and it's not really what you want.

Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
drag coefficient in ansys fluent 12.0 krishna FLUENT 18 May 2, 2013 13:29
Incorrect Drag and Drag Coefficient for flow over a cylinder ozzythewise Main CFD Forum 8 June 13, 2012 06:24
Drag Coefficient Convergence Problem John FLUENT 16 September 4, 2009 02:44
Drag coefficient for parcels in dieselFoam sebastian_vogl OpenFOAM Running, Solving & CFD 5 December 31, 2008 13:19
Automotive test case vinz OpenFOAM Running, Solving & CFD 98 October 27, 2008 09:43


All times are GMT -4. The time now is 09:15.