CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: gschaider
Forum: OpenFOAM Post-Processing January 23, 2012, 17:24
Replies: 7
Views: 2,786
Posted By gschaider
I think you'll want to write sum(alpha1*vol())...

I think you'll want to write sum(alpha1*vol()) instead of alpha1*vol(). Because if in ANY cell the alpha1 is 0 then you get a division by zero there. Apart from that...
Forum: OpenFOAM Post-Processing January 12, 2012, 20:16
Replies: 7
Views: 2,786
Posted By gschaider
You mean by calculating the weighted average of...

You mean by calculating the weighted average of position of all the cells? Like this:

sum(pos()*alpha1*vol())/(vol()*alpha1)

In swak4Foam there is a functionobject swakExpression where the line...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 14:15.