CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Conditional functions as expressions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2023, 09:23
Default Conditional functions as expressions
  #1
New Member
 
Viktor Polasek
Join Date: Feb 2023
Posts: 1
Rep Power: 0
Viktor Polasek is on a distinguished road
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
File Type: png Profile_functional_expressions.png (50.8 KB, 5 views)
Viktor Polasek is offline   Reply With Quote

Reply

Tags
conditionals, conjugate heat transfer, expressions, functions


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:55.