CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Save and Exit Simulation Based on Criteria

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By gearboy

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2016, 12:51
Default Save and Exit Simulation Based on Criteria
  #1
Member
 
Join Date: Jun 2016
Posts: 64
Rep Power: 9
Baden is on a distinguished road
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.
Baden is offline   Reply With Quote

Old   August 14, 2016, 21:18
Default
  #2
Senior Member
 
Join Date: Feb 2010
Posts: 164
Rep Power: 17
gearboy is on a distinguished road
Quote:
Originally Posted by Baden View Post
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 and UchihaMadara like this.
gearboy is offline   Reply With Quote

Old   August 18, 2016, 17:26
Default
  #3
Member
 
Join Date: Jun 2016
Posts: 64
Rep Power: 9
Baden is on a distinguished road
Quote:
Originally Posted by gearboy View Post
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.
Baden is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatic save and exit in GUI cinwendy FLUENT 3 March 15, 2013 11:57
Exit fluent after simulation Ragnar FLUENT 5 November 28, 2012 09:57


All times are GMT -4. The time now is 18:48.