|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Claudio
Join Date: May 2010
Location: Boston, MA
Posts: 17
Rep Power: 5 ![]() |
Hi,
I want to compute the total forces across multiple patches. I am running a rectangular sloshing tank where each of the 4 walls is its own patch (LeftWall, RightWall, TopWall, BottomWall). I tried to use the same script in controlDict that I use when the 4 walls form one single patch, but I am not sure that I get the right results. Here's my controlDict: Code:
forces
{
type forces;
functionObjectLibs ("libforces.so"); //Lib to load
patches (TopWall, BottomWall, LeftWall, RightWall); // change to your patch name
rhoInf 1000.; //Reference density for fluid
// rhoName rhoInf;
rhoName rho;
pName p;
UName U;
CofR (0 0 0); //Origin for moment calculations
outputControl outputTime;
outputInterval 0.108;
}
Thanks. |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Claudio
Join Date: May 2010
Location: Boston, MA
Posts: 17
Rep Power: 5 ![]() |
Found the answer in a pre-processing thread:
Code:
forces
{ type forces;
functionObjectLibs ("libforces.so"); //Lib to load
patches (TopWall BottomWall LeftWall RightWall); // change to your patch name
rhoInf 1000.; //Reference density for fluid
rhoName rho;
pName p;
UName U;
CofR (0 0 0); //Origin for moment calculations
outputControl outputTime;
outputInterval 0.108; }
|
|
|
|
|
|
|
|
|
#3 | |
|
New Member
Pengchuan Wang
Join Date: Nov 2012
Location: Ann Arbor MI USA
Posts: 15
Rep Power: 2 ![]() |
Hi Claudio,
I'm new to OpenFOAM. And my research is about flow between two plates, one is stationary and one is rotating. I want to know the torques both on the topwall and the bottomwall. However, when I added two patch names, OpenFOAM only gives me the difference between these two torques. Can you help me with this? Thank you. Quote:
|
||
|
|
|
||
![]() |
| Tags |
| forces, interdymfoam, multiple patches |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to set periodic boundary conditions | Ganesh | FLUENT | 12 | April 10, 2013 00:44 |
| Forces printout for multiple patches | ozzythewise | OpenFOAM Pre-Processing | 3 | March 7, 2012 12:59 |
| OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 12:21 |
| controlDict 'forces' function: multiple output files? | lordvon | OpenFOAM | 0 | January 10, 2011 16:22 |
| Forces on multiple bodies | jakaranda | OpenFOAM | 1 | March 19, 2010 02:51 |