|
[Sponsors] |
December 11, 2012, 13:40 |
Mass Weighted Average
|
#1 |
Member
Brock Lee
Join Date: Sep 2012
Location: Midwest
Posts: 40
Rep Power: 13 |
Hey guys, I'm looking to calculate a mass weighted average over a faceZone for pressure using swak4foam. Specifically, this is the equation I'm trying to implement...
Capture.PNG My question comes when trying to implement. Is it possible in swak4foam to divide a sum by a sum within one expression? Can I do two sums separately and divide them? So far I've only seen expressions that can do one accumulation, such as the one below for mass flow rate... Code:
mass-in { type swakExpression; valueType faceZone; zoneName interior-inlet-1; expression "phi*flip()"; accumulations ( sum ); verbose true; autoInterpolate true; } |
|
Tags |
mass weighted average, swak4foam, swakexpression |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Area weighted or mass weighted average | SAM | Main CFD Forum | 31 | April 30, 2018 04:12 |
Diffference between mass weighted average and Area | giogio | FLUENT | 9 | March 6, 2018 08:24 |
mass weighted average calculation | m&s | FLUENT | 0 | April 6, 2010 11:52 |
Mass Weighted Average | Maryam | FLUENT | 0 | November 12, 2008 07:06 |
Mass Weighted Average | Maryam | CFX | 0 | November 12, 2008 07:03 |