Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

Stop simulation after given conditions are met.

    • jmoss
      Subscriber

      How do I stop a transient simulation once a certain condition is met?   ex:  Inlet pressure has reached a target value.

      Thanks in advance!

    • RK
      Ansys Employee

      Hello, 

      You could use the execute commands to set the conditions. Please see the users guide. 

    • jmoss
      Subscriber

      The command shown below isn't working.  I want the calculation to stop once the inlet pressure decays below 0 bar at the inlet.

      Is this the correct way to write the command?  (Inlet zone ID = 6)

      (if ( < 0 (pick-a-real "/rep/volume/volume-avg 6 , pressure n")) (set! mstop? #t))

      Users guide does not explain how to write scheme programming.

      Thanks for your help!

    • Rob
      Ansys Employee

      I don't think there is any public Scheme documentation. My approach is to monitor the value of interest and manually stop the model once that point is reached. Otherwise you need a monitor linked to a trigger to cause the convergence criterion to be met. 

Viewing 3 reply threads
  • You must be logged in to reply to this topic.