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

Forces printout for multiple patches

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 5, 2010, 20:27
Default Forces printout for multiple patches
  #1
Senior Member
 
jeff osborne
Join Date: Mar 2010
Posts: 108
Rep Power: 7
ozzythewise is on a distinguished road
Hi all,

I'm trying to print out forces and forcesCoeffs for more than 1 patch and I'm not sure on the syntax that I use in my controlDict file. The case that I have is a simple 2D pipe flow with some bends. I am using my wall friction as a condition for convergence so I need to monitor it as I progress through my iterations. Any help would be greatly appreciated.

Thanks
ozzythewise is offline   Reply With Quote

Old   October 29, 2010, 10:29
Default
  #2
Member
 
Nick Gardiner
Join Date: Apr 2009
Location: Chichester, UK
Posts: 93
Rep Power: 8
NickG is on a distinguished road
Hi

e.g.:

forcesA
{
interval 25;
type forces;
functionObjectLibs ("libforces.so"); //Lib to load
patches (vanA); // change to your patch name
rhoName rhoInf;
rhoInf 1.23; //Reference density for fluid
CofR (0 0 0); //Origin for moment calculations
}
forcesB
{
interval 25;
type forces;
functionObjectLibs ("libforces.so"); //Lib to load
patches (vanB); // change to your patch name
rhoName rhoInf;
rhoInf 1.23; //Reference density for fluid
CofR (0 0 0); //Origin for moment calculations
}
forcesC
{
interval 25;
type forces;
functionObjectLibs ("libforces.so"); //Lib to load
patches (vanC); // change to your patch name
rhoName rhoInf;
rhoInf 1.23; //Reference density for fluid
CofR (0 0 0); //Origin for moment calculations
}
NickG is offline   Reply With Quote

Old   November 10, 2010, 12:01
Default
  #3
New Member
 
Amin
Join Date: Oct 2010
Location: Notre Dame, US
Posts: 6
Rep Power: 6
AcfdO is on a distinguished road
Hi Jeff,

I am kind of new in OpenFOAM world; could you please help me know how could I use calculated forces during run time in my solver?
I want to use the calculated forces, but I don't know what I should do.
Thank you.
AcfdO is offline   Reply With Quote

Old   March 7, 2012, 13:59
Default
  #4
New Member
 
Gabriele
Join Date: Feb 2012
Posts: 6
Rep Power: 5
protarius is on a distinguished road
If you have multiple patches and if you want only the sum of the data (and not the data for each patch), you can use one "forces", e.g.

forces
{
type forces;
functionObjectLibs ("libforces.so");
outputControl timeStep;
outputInterval 1;
patches (patch1 patch2); // change to your patches name
rhoName rhoInf;
log true;
rhoInf 1.205; //Reference density for fluid
CofR (0 0 0); //Origin for moment calculations
}

The sum of the data will be written in the "forces.dat" file

Regards
protarius 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
Forces in V1.6 terrybarnaby OpenFOAM 71 July 8, 2014 10:42
Error Message Determining Forces in OpenFOAM 1.7 Greg Givogue OpenFOAM 3 August 23, 2010 18:03
Forces calulated through pressure LVDH OpenFOAM Post-Processing 2 February 26, 2010 04:15
Moving mesh forces on patches and turbulence solver jackdaniels83 OpenFOAM Running, Solving & CFD 3 May 31, 2007 10:29
Valve Forces in CFdesign Mike Clapp Main CFD Forum 3 March 8, 2001 15:09


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