|
[Sponsors] |
February 13, 2023, 09: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 |
|
Tags |
conditionals, conjugate heat transfer, expressions, functions |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF to disable wall functions | Abhinand | Fluent UDF and Scheme Programming | 3 | June 15, 2020 17:05 |
How to solve the boundary layer without wall functions? | WhiteW | OpenFOAM Running, Solving & CFD | 4 | January 20, 2020 05:55 |
[swak4Foam] Using calculated swak expressions in another functions | arsalan.dryi | OpenFOAM Community Contributions | 2 | October 22, 2016 12:07 |
[Commercial meshers] CCM+ Mesh Conversion | Ingenieur | OpenFOAM Meshing & Mesh Conversion | 17 | February 2, 2014 10:34 |
Field Function Conditional Expressions | shanefarrell | STAR-CCM+ | 4 | February 21, 2013 10:44 |