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

Wall forces in interFoam

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 30, 2011, 17:34
Default Wall forces in interFoam
  #1
New Member
 
Dave West
Join Date: Mar 2011
Location: US
Posts: 12
Rep Power: 15
Terp is on a distinguished road
Hey all.
I'm a newcomer to openFoam, and trying to get a handle on VOF. I have been modifying the damBreak tutorial in version 1.7.0 and I would like to output the force on an obstacle. In my controlDict, I added:

functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so"); //Lib to load
patches (block); // change to your patch name
rhoName rhoInf;
rhoInf 1000; //Reference density for fluid
CofR (0 0 0);
outputControl outputTime;
//outputInterval 1;
}
);

Running proceeds until it tries to calculate the forces, then it errors out telling me:

--> FOAM FATAL IO ERROR:
keyword nu is undefined in dictionary ".../OpenFOAM/USRNAME-1.7.0/tutorials/multiphase/interFoam/laminar/damBreak/cons
tant/transportProperties"

But in the transportProperties file, nu is defined for both phase 1 and phase 2.

Does the "force" function not work in multiphase? If not, is there an easy way to integrate the pressure over a patch? Seems it would have to be p, not p_rgh.

A search showed that someone else had the same error, but they never mentioned if they got it working. Any help is greatly appreciated!
Terp is offline   Reply With Quote

 

Tags
forces, interfoam, multiphase modelling


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
Thin Wall Heat Transfer BC for rhoSimpleFoam swahono OpenFOAM Running, Solving & CFD 12 October 4, 2013 11:49
Patches for OpenFOAM 1.7 on MacOS X gschaider OpenFOAM Installation 101 September 21, 2011 05:37
Forces on corrugated wall kjetil OpenFOAM Post-Processing 0 November 1, 2010 17:16
Quick Question - Wall Function D.Tandra Main CFD Forum 2 March 16, 2004 04:29
Extapolation of forces with wall laws. Shu-Ren Hysing Main CFD Forum 3 October 14, 2002 04:46


All times are GMT -4. The time now is 06:29.