CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] MassFlowAverage temperature difference (https://www.cfd-online.com/Forums/openfoam-community-contributions/129962-massflowaverage-temperature-difference.html)

vskuric February 17, 2014 08:06

MassFlowAverage temperature difference
 
Dear Foamers.
I'm a relatively new OF user and I need a little help. I'm using OF 2.2.2 and swak4foam 0.3.0.

In my 2D heat exchanger case I want to calculate average temperature increase and pressure drop from inlet to outlet boundary.

I use the principle described here:
http://openfoamwiki.net/index.php/Co...sureDifference

I've modified it to calculate temperature differences.

However, this is area-weighted averaging.

And I want to do a mass-flux-weighted averaging for my temperature increase, but in the same way as in the upper link.
It should be based on this equation:
http://openfoamwiki.net/images/math/...f163afd9ca.png

Please, show me the direction.

Thank you,
Vanja

gschaider February 20, 2014 16:43

Quote:

Originally Posted by vskuric (Post 475318)
Dear Foamers.
I'm a relatively new OF user and I need a little help. I'm using OF 2.2.2 and swak4foam 0.3.0.

In my 2D heat exchanger case I want to calculate average temperature increase and pressure drop from inlet to outlet boundary.

I use the principle described here:
http://openfoamwiki.net/index.php/Co...sureDifference

I've modified it to calculate temperature differences.

However, this is area-weighted averaging.

And I want to do a mass-flux-weighted averaging for my temperature increase, but in the same way as in the upper link.
It should be based on this equation:
http://openfoamwiki.net/images/math/...f163afd9ca.png

Please, show me the direction.

Thank you,
Vanja

Mass-flux weight would be (check the definition of phi. it has been explained multiple times before, here and on the Wiki) something like "sum(T*phi)/sum(phi)". Whether you want the upper sum in the expression or the accumulation is a matter of taste.

Would be a nice candidate for http://openfoamwiki.net/index.php/Co...Usage_examples


All times are GMT -4. The time now is 20:36.