Fluent: Conditional functions in named expression

  • 372 Views
  • Last Post 08 May 2019
  • Topic Is Solved
esantana posted this 07 May 2019

Hi, I'm trying to use a expression to define a wall heat flux. In fluent 2019 R1 one can write the expression using named expressions. I have succeeded in creating a wall heat flux that varies with respect to time but failed to create a conditional statement for such. I need to learn how to use the conditional statements "if" but I can't find any manual or mention in a forum for its use in a named expression. Can someone help (if there is a syntax manual it would be splendid). For reference in this case I want a heat flux up to 65 ns, then it would become zero. (I tried using a UDF but when the value changes the simulation crashes with a divergence error in Temperature). Thanks!

Order By: Standard | Newest | Votes
abenhadj posted this 08 May 2019

The syntax of the expression is documented in the Fluent User'S Guide. The IF statement is quite simple as:

 

IF( x> 1[m], 0 [W/m^3], 111[W/m^3])

Best regards,

Amine

  • Liked by
  • esantana
esantana posted this 08 May 2019

Thanks for the help.

Have a nice day!

Enrique

Close