Stop the simulation when a criterion is fulfilled

  • 29 Views
  • Last Post 07 March 2019
  • Topic Is Solved
Max4 posted this 07 March 2019

Hi,

In my case, I want to stop the Fluent-Simulation when the pressure on a face exceeds 20E5 Pa. I have found this for interrupting the simulation when a field variable exceeds any user-defined limit (http://www.eureka.im/745.html)

Should I use the DEFINE_ADJUST Macro too? Can I keep the same frame in my case? In order to have the pressure on the face, I may use F_P(t,tf).

Regards,

Maxime

Order By: Standard | Newest | Votes
abenhadj posted this 07 March 2019

Okay I go it. 

Please have a look into Global Reduction Section in the customization manual. In a nutshell this would provide you the maximum value of the variable over all nodes and this is then synchronized over all nodes so that at all nodes the same max value can be accessed.

I recommend reading thoroughly the manual and if possible attending a UDF training.

Best regards,

Amine

  • Liked by
  • Max4
abenhadj posted this 07 March 2019

I will do the whole calculation only on the nodes. After getting the variable I will then send it to host. On the host you can then set the interrupt flag. But hese are only some flavors.

Bear in mind that we do not make UDF support here.

Best regards,

Amine

  • Liked by
  • Max4
abenhadj posted this 07 March 2019

What do want to do with the Adjust?

Best regards,

Amine

Max4 posted this 07 March 2019

Goal is to stop the simulation if a pressure value on a face is reached.

The Define_ADJUST are used here, so I guess that I have to use it too.

By adapting the UDF-Code of the website, I guess that I can do it for a pressure on a surface. Nevertheless, I don´t understand this line of the code in yellow:

Regards,

Maxime

Max4 posted this 07 March 2019

Thank you for the answer, I understood the code then.

In my case, I will compute the pressure on a face by using "F_P(t,f)" and not using "PRF_GIHIGH1" macro.

Is there any other macro to replace it for my case, i.e. on a surface?

 

Regards,

Maxime

Close