CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Mass flow rate for fractions (https://www.cfd-online.com/Forums/cfx/242142-mass-flow-rate-fractions.html)

andpush April 7, 2022 04:29

Mass flow rate for fractions
 
Dear all,

I have a problem to compute mass flow rate throw a surface in the case of two phases flow water/air.

My expression is
massFlowInt(Air.Volume Fraction)@surface

When I test it in cfx-post to compute this value it is working fine. Nevertheless when I define it as monitor expression for the new task it does not work


An error: Missing phase tag for callback function massFlowInt(Air.Volume Fraction)@REG1


Is Any know what is a problem here? Thanks!

ghorrocks April 7, 2022 05:44

There are a few CEL functions which use slightly different syntax for handling multiphase simulations - massFlowInt is one of them. Also, you will probably want the massFlow() function rather than doing the integration yourself.

So the CEL expression you probably want is Air.massFlow()@REG1

andpush April 7, 2022 05:54

Thanks. Problem resolved!


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