CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   User field function "if" condition (https://www.cfd-online.com/Forums/star-ccm/117806-user-field-function-if-condition.html)

djack May 15, 2013 10:04

User field function "if" condition
 
Hi,
I'm having one interface between two rooms at different temperature.
Natural convection is accuring between the rooms.
Hot air is entering at the top of the interface and cold air is leaving at the bottom.
My question is how can I define an unser field function (and surface integral) to measure the flow entering the interface.
I tried the following but didn't work :
($$Velocity[0] >= 0) ? $$Velocity[0] : 0
Can you help me, I'm not confortable with field function.
Thanks,
Djack

cwl May 15, 2013 17:20

Hi
I've tried the problem you described - and it works fine exactly with the field function you wrote and Surface Integral over the Interface between rooms.
Describe the problem, please

djack May 16, 2013 03:35

You're absolutly right !
Thanks


All times are GMT -4. The time now is 07:52.