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.

How to auto-stop the calculations without UDFs

    • Eduardo Miranda
      Subscriber

      Hello everybody!

       Recently i've research on how to auto stop a simulation when a specific value is reached and didn't find any easy way to do that. Some UDFs options were presented but seem too complicated.

       I found a work around using named expressions, Report definitions and Convergence conditions that goes:

      1° Set a Report definition of the region you want to monitor (in my case is the copper surface temperature)

       

      2° Set a Named expression to output a constant value when the target value is reached and the original value if not. This is the work around to use in the 4° step convergence condition.

      -     Expression used: IF((1355[K]-{copper-surface})>0[K],{copper-surface},1355[K])

      (The constant value of 1355 I used was the desired value to don't mess with the graph)

       

      3° Set a Expression Report Definition using 'new -> expression' with the named Named Expression set in 2° step



      4° Set a Convergence Condition using the Named Expression of step 3° in Report Definition and a stop criteria of 0,001 or less

       

      That's it! Hope to be useful for someone else! :D
      I couldn't upload prints to help the visualization :/
      Any doubts I will be glad to answer!

    • Rob
      Channel Partner

      Thanks. We're working on that, so please try posting images another time. 

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
[bingo_chatbox]