Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Fluent: Conditional functions in named expression

    • esantana
      Subscriber

      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!

    • DrAmine
      Ansys Employee

      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])

    • esantana
      Subscriber
      Thanks for the help.

      Have a nice day!

      Enrique
Viewing 2 reply threads
  • The topic ‘Fluent: Conditional functions in named expression’ is closed to new replies.
[bingo_chatbox]