CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Save and Exit Simulation Based on Criteria (https://www.cfd-online.com/Forums/fluent-udf/176133-save-exit-simulation-based-criteria.html)

Baden August 11, 2016 12:51

Save and Exit Simulation Based on Criteria
 
Hello all.

I am a college student who has been working this summer on a particular simulation. I believe I have reached the point where I am ready to run my simulation for an extended period of time, however, I want my simulation to stop running once a certain value of UDM has been reached for the outlet cells.

I have read through the Fluent User's Manual and was not able to find anything that would help me. I did find this tutorial, but I am completely unfamiliar with Scheme and could not make sense of it. Does anyone know how to stop a simulation once a certain UDM value has been reached in a cell?

Any help would be greatly appreciated as I do not know where else to turn.

gearboy August 14, 2016 21:18

Quote:

Originally Posted by Baden (Post 613681)
Hello all.

I am a college student who has been working this summer on a particular simulation. I believe I have reached the point where I am ready to run my simulation for an extended period of time, however, I want my simulation to stop running once a certain value of UDM has been reached for the outlet cells.

I have read through the Fluent User's Manual and was not able to find anything that would help me. I did find this tutorial, but I am completely unfamiliar with Scheme and could not make sense of it. Does anyone know how to stop a simulation once a certain UDM value has been reached in a cell?

Any help would be greatly appreciated as I do not know where else to turn.

You can set the iteration number to 1 and judge whether UDM value has reached a certain value at the end of an iteration using udf macro DEFINE_EXECUTE_AT_END or scheme code in fluent menu "solve->Execute Commands". If not reached, then perform another iteration using scheme command "(interate 1)". If reached, do not perform any iteration more. This technique's effect is same as you stop the iteration if criteria reached.

Baden August 18, 2016 17:26

Quote:

Originally Posted by gearboy (Post 614029)
You can set the iteration number to 1 and judge whether UDM value has reached a certain value at the end of an iteration using udf macro DEFINE_EXECUTE_AT_END or scheme code in fluent menu "solve->Execute Commands". If not reached, then perform another iteration using scheme command "(interate 1)". If reached, do not perform any iteration more. This technique's effect is same as you stop the iteration if criteria reached.

Thank you for the response. I will look into this.


All times are GMT -4. The time now is 11:04.