|
[Sponsors] |
July 11, 2012, 18:51 |
Forces on multiple patches in InterDyMFoam
|
#1 |
New Member
Claudio
Join Date: May 2010
Location: Boston, MA
Posts: 28
Rep Power: 16 |
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. |
|
July 13, 2012, 12:13 |
THe answer
|
#2 |
New Member
Claudio
Join Date: May 2010
Location: Boston, MA
Posts: 28
Rep Power: 16 |
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; } |
|
February 6, 2013, 18:08 |
|
#3 | |
Member
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 14 |
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:
|
||
October 19, 2016, 18:46 |
|
#4 | |
Member
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11 |
Quote:
|
||
October 19, 2016, 21:13 |
|
#5 |
Member
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 14 |
Hi Hassan,
Yes, the right way is that you need to calculate the torque on each plate separately. So the right format should be: functions ( force1 { type forces; functionObJectLibs ("libfroces.so") outputControl timeStep; outputInterval 10; patches (patch_name) pname p; uname U; rhoName rhoInf; log true; rhoInf XXX; CofR (0 0 0); } forces2 { same information as above, the only difference should be the patch name } ) |
|
October 20, 2016, 13:46 |
|
#6 |
Member
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11 |
Thanks a lot for your help
|
|
Tags |
forces, interdymfoam, multiple patches |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
Forces printout for multiple patches | ozzythewise | OpenFOAM Pre-Processing | 3 | March 7, 2012 13:59 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
controlDict 'forces' function: multiple output files? | lordvon | OpenFOAM | 0 | January 10, 2011 17:22 |
Forces on multiple bodies | jakaranda | OpenFOAM | 1 | March 19, 2010 02:51 |