|
[Sponsors] |
February 6, 2009, 08:37 |
Hi all
I encountered a prob
|
#1 |
Member
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to modify a patch from a functionObject | alesch | OpenFOAM | 7 | March 27, 2009 16:30 |
[OpenFOAM] Saved DATA doesnt have Patch Names | velan | ParaView | 0 | January 9, 2009 07:32 |
group names | azmir | Main CFD Forum | 1 | February 11, 2008 07:20 |
Names of CFD codes | Steve | Main CFD Forum | 6 | July 23, 2007 17:39 |
VARIABLE NAMES | Alejandro A | CFX | 2 | August 17, 2006 09:47 |