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

Mass flow averaged pressure

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2013, 10:01
Question Mass flow averaged pressure
  #1
New Member
 
Aditya
Join Date: May 2013
Location: Munich Germany
Posts: 29
Rep Power: 12
kingmaker is on a distinguished road
Hello
I am using MRFSimple foam to do simulation of a blower. I want to calculate the mass flow averaged pressure on the outflow patch of the geometry. I have tried doing it using "libfieldFunctionObjects.so" in controlDict like :

weight_avg_p
{
type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so");
enabled true;
outputControl timeStep;
outputInterval 1;
log true;
valueOutput true;
source patch;
sourceName wall_inlet;
operation weightedAverage;
weightField phi;

fields
(
p
);


But I get an error saying that the solver has a floating point exception.
Please help me in this regard. If any one has any suggestion on how to calculate the mass flow averaged pressure on a patch it will be very helpful.

Also it says that It cannot find field U when I give U as weightField in the above.
kingmaker is offline   Reply With Quote

Old   June 28, 2013, 10:47
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by kingmaker View Post
Hello
I am using MRFSimple foam to do simulation of a blower. I want to calculate the mass flow averaged pressure on the outflow patch of the geometry. I have tried doing it using "libfieldFunctionObjects.so" in controlDict like :

weight_avg_p
{
type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so");
enabled true;
outputControl timeStep;
outputInterval 1;
log true;
valueOutput true;
source patch;
sourceName wall_inlet;
operation weightedAverage;
weightField phi;

fields
(
p
);


But I get an error saying that the solver has a floating point exception.
Please help me in this regard. If any one has any suggestion on how to calculate the mass flow averaged pressure on a patch it will be very helpful.

Also it says that It cannot find field U when I give U as weightField in the above.
I your example the patch you average on has "wall" in the name. This does not necessarily mean that phi is 0 there. But it is rather common. And if you divide through a sum of zeros (no matter how many zeros there are) you get a floating point exception
Hamed1117 likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
simple model, difficult outlet Eric CFX 7 May 23, 2014 08:13
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
Net mass flow inlet vs outlet Nigui28 FLUENT 1 August 12, 2011 10:09
how to calculate the averaged mass flow along a line over time ? iampolaris OpenFOAM Post-Processing 0 March 10, 2011 22:03
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 21:31


All times are GMT -4. The time now is 01:10.