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

Patch names amp forces functionObject

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2009, 09:37
Default Hi all I encountered a prob
  #1
Member
 
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17
david is on a distinguished road
Hi all

I encountered a problem with the forces functionObject. I have a simulation with different patches in the domain. Some of the patches have similar names, e.g.:

BLADE
HUB-BLADE
SHROUD-BLADE


I wanted to calculate the forces acting on the patch "BLADE". Unfortunatelly the forces functionObject adds the forces of all patches with the string "BLADE" in its name.

Additionally I have a question concerning the moments. As far as I understand the code, the moments are calculated with the cell centers:


vectorField Md = mesh.C().boundaryField()[patchi] - CofR_;

vectorField pf =
mesh.Sf().boundaryField()[patchi]*p.boundaryField()[patchi];

fm.first().first() += rho(p)*sum(pf);
fm.second().first() += rho(p)*sum(Md ^ pf);

Wouldn't it be better to use the face centers (mesh.Cf())?


Thanks a lot & best regards
David
david is offline   Reply With Quote

Old   February 6, 2009, 10:03
Default I will look into the patch nam
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
I will look into the patch name issue.

mesh.C().boundaryField()[patchi] returns the face centres the same as mesh.Cf().boundaryField()[patchi]

H
henry is offline   Reply With Quote

Old   February 6, 2009, 12:24
Default Thanks for the report. I corre
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Thanks for the report. I corrected the wild-card matching (in 1.5.x). Now BLADE will match only BLADE. Use "BLADE.*" to match all patches starting with BLADE.
mattijs is offline   Reply With Quote

Old   April 26, 2011, 22:59
Default Help Please!
  #4
Member
 
Greg Givogue
Join Date: Aug 2010
Location: Ottawa Canada
Posts: 57
Rep Power: 16
Greg Givogue is on a distinguished road
Hi,

I realize this is an old post but I'm pretty desperate! I'm having some trouble understanding why I cannot calculate a reasonable centre of pressure when I use the forces and moments function. It is my understanding that centre of pressure (x y z) should be located on the body and that it is related by;

Mx=Fy*z+Fz*y
My=Fx*z+Fz*x
Mz=Fx*y+Fy*x

When I use these relationships I end up with x y z far from the body...

I have also ran the patchIntegrate command for p over the body and it produces a different force than the force function (pressure component)?

I have posted this question http://www.cfd-online.com/Forums/ope...aero-body.html

but I haven't received any useful feedback.

I appreciate any pointers you can give! Please help.
Greg
Greg Givogue 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
How to modify a patch from a functionObject alesch OpenFOAM 7 March 27, 2009 17:30
[OpenFOAM] Saved DATA doesnt have Patch Names velan ParaView 0 January 9, 2009 08:32
group names azmir Main CFD Forum 1 February 11, 2008 08:20
Names of CFD codes Steve Main CFD Forum 6 July 23, 2007 18:39
VARIABLE NAMES Alejandro A CFX 2 August 17, 2006 10:47


All times are GMT -4. The time now is 17:58.