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

Forces calculation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2010, 12:53
Default Forces calculation
  #1
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 16
fusij is on a distinguished road
Hello OpenFOAM users&fans,

I am new to OpenFOAM and I am simulating a 2D flow over a cylinder with pisoFoam.

When I am trying to find the forces, the forces.dat file only shows brackets full of zeros. The forces code seen below creates a forces/0 folder where forces.dat is located. I am referring to the right patch in the code. Do you have some suggestions or ideas of what could be wrong?

This is my forces code in my controlDict.h

functions
(
forces
{
type forces;
functionObjectLibs ( "libforces.so" ); outputControl timeStep;
outputInterval 1;
patches (wall);
pName p;
UName U;
log true;
rhoName rhoInf;
rhoInf 1025;
CofR ( 0 0 0 );
}
);
fusij is offline   Reply With Quote

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

Is your cylinder named wall? If not change the

patches (wall);

line in forces{... } to

patches (whatever you've called it);

Hope that helps

Nick
NickG is offline   Reply With Quote

Old   October 29, 2010, 11:30
Default
  #3
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20
vkrastev is on a distinguished road
If the patch name is correct, try also to remove the lines beginning with pName and Uname: judging by other treads in the forum, these lines can give some troubles in the 1.7.x versions of OpenFOAM.

Regards

V.
vkrastev is offline   Reply With Quote

Old   October 29, 2010, 11:50
Default
  #4
New Member
 
Juanito
Join Date: Oct 2010
Posts: 27
Rep Power: 15
Aerospace is on a distinguished road
Any one knows if there are problems with force function in 3D multifaces patch?

Thankyou.
Aerospace is offline   Reply With Quote

Old   October 29, 2010, 12:38
Default
  #5
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 16
fusij is on a distinguished road
It was just a stupid mistake, for some reason I had changed my patch name to something else than "wall". It is fixed now, thank you.
fusij is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forces viscous calculation in VWT with OpenFOAM 15x terrybarnaby OpenFOAM Running, Solving & CFD 0 November 28, 2008 09:39
Calculation of pressure forces in Fluent Maharba FLUENT 2 June 29, 2007 02:14
forces calculation Chien CFX 9 June 23, 2005 12:45
Warning 097- AB Siemens 6 November 15, 2004 05:41
Calculation of forces Michal Marcinkowski Main CFD Forum 2 January 18, 2001 05:37


All times are GMT -4. The time now is 07:13.