# Conditional functions as expressions

 Register Blogs Members List Search Today's Posts Mark Forums Read

February 13, 2023, 08:23
Conditional functions as expressions
#1
New Member

Viktor Polasek
Join Date: Feb 2023
Posts: 1
Rep Power: 0
Hi gents,
I'm dealing with water flow in the pipe and air flow around the pipe at the same time. Whether water or air is flowing is controlled by the following condition. If the temperature of monitored point (tp) at tube is below 263K, the water is flowing. If temperature of tp is above 333K water is switched off and air starts flowing. Air flows until temperature of tp is below 263K. See behavior of flowing in graph below.I'm trying solve it through expressions at water/air velocity inlet.Water:

IF(OR(AND(tp>=263.15[K],vc=0[m/s])AND(tp<=333.15[K],vc=0.25[m/s]))), 0.25 [m/s], 0 [m/s])

Air:

IF(OR(AND(tp>=333.15[K],vair=0[m/s])(AND(tp>=263.15[K],vair=4[m/s]))), 4 [m/s], 0 [m/s])

where

tp - monitored temperature of point at tube wall

vc - monitored water velocity at inlet

vair - monitored air velocity at inlet

Unfortunatelly, it doesnt work. Any idea how to solve? Thanks in advance.

Greetings amd smooth convergence.

Viktor
Attached Images
 Profile_functional_expressions.png (50.8 KB, 5 views)

 Tags conditionals, conjugate heat transfer, expressions, functions