CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Stop criteria in CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2015, 22:27
Default Stop criteria in CFX
  #1
Senior Member
 
Join Date: Aug 2014
Posts: 160
Rep Power: 11
MissCFD is on a distinguished road
Is it possible to set a convergence criteria to stop once it has reached an asymptotic limit ?

Thank you very much for your help
MissCFD is offline   Reply With Quote

Old   October 14, 2015, 05:36
Default
  #2
Senior Member
 
Join Date: Feb 2011
Posts: 496
Rep Power: 18
Antanas is on a distinguished road
Quote:
Originally Posted by MissCFD View Post
Is it possible to set a convergence criteria to stop once it has reached an asymptotic limit ?

Thank you very much for your help
I guess yes. You should use interrupt condition.
Antanas is offline   Reply With Quote

Old   October 14, 2015, 08:11
Default
  #3
Senior Member
 
Join Date: Aug 2014
Posts: 160
Rep Power: 11
MissCFD is on a distinguished road
Yes, but how do we take into account the previous iteration in a expression ?
For example, if I want to stop the convergence when:
Qte,max-Qte,min < 1% during twenty iterations ?

Quote:
Originally Posted by Antanas View Post
I guess yes. You should use interrupt condition.
MissCFD is offline   Reply With Quote

Old   October 15, 2015, 09:58
Default
  #4
Senior Member
 
Join Date: Feb 2011
Posts: 496
Rep Power: 18
Antanas is on a distinguished road
Quote:
Originally Posted by MissCFD View Post
Yes, but how do we take into account the previous iteration in a expression ?
For example, if I want to stop the convergence when:
Qte,max-Qte,min < 1% during twenty iterations ?
Sorry I don't understand what you want exactly, but if you want to stop when a quantity reach prescribed value asymptoticaly, IMO it means that two conditions satisfy at the same time:
1. quantity value becomes close enought to target value
2. its time derivative -> 0.

In this case there's no problem to implement such condition using if-CEL expression, for example: if((abs(quantity - target) < eps1) && abs(quantity.dt) < eps2,1,0)
Antanas is offline   Reply With Quote

Old   October 23, 2015, 16:50
Default
  #5
Senior Member
 
Join Date: Aug 2014
Posts: 160
Rep Power: 11
MissCFD is on a distinguished road
Sorry, but I don't understand how work the Interrupt Control Conditions in CFX !

Where and how I have to write the logical expression ? In the tab ''Expressions'' or in ''Logical Expression'' of the tab ''Solver Control'' ?
What am I supposed to write in ''Logical Expression'' of the tab ''Solver Control'' ?

I would like that the solver stops when the imbalance of mass flow is below a certain level. So I have the expression following: if(Imbalance < 10^-4, 1,0).

Quote:
Originally Posted by Antanas View Post
Sorry I don't understand what you want exactly, but if you want to stop when a quantity reach prescribed value asymptoticaly, IMO it means that two conditions satisfy at the same time:
1. quantity value becomes close enought to target value
2. its time derivative -> 0.

In this case there's no problem to implement such condition using if-CEL expression, for example: if((abs(quantity - target) < eps1) && abs(quantity.dt) < eps2,1,0)
MissCFD is offline   Reply With Quote

Old   October 23, 2015, 18:47
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
MyImbalance = abs(massFlow()@MyInlet - massFlow()@MyOutlet)

Logical Expression = if(MyImbalance < 10^-4 [kg s^-1], 1,0)

Hope the above helps,
Opaque is offline   Reply With Quote

Old   October 24, 2015, 03:27
Default
  #7
Senior Member
 
Join Date: Feb 2011
Posts: 496
Rep Power: 18
Antanas is on a distinguished road
Quote:
Originally Posted by MissCFD View Post
Sorry, but I don't understand how work the Interrupt Control Conditions in CFX !

Where and how I have to write the logical expression ? In the tab ''Expressions'' or in ''Logical Expression'' of the tab ''Solver Control'' ?
What am I supposed to write in ''Logical Expression'' of the tab ''Solver Control'' ?

I would like that the solver stops when the imbalance of mass flow is below a certain level. So I have the expression following: if(Imbalance < 10^-4, 1,0).
For imbalances there's 'conservation target' convergence criterion. You may set it for all equations or on equation class basis.

Anyway, interrupt conditions are set inside Solver Control on Basic Settings tab (look for 'Interrupt Control' checkbox).
Antanas is offline   Reply With Quote

Old   August 7, 2022, 16:20
Default
  #8
New Member
 
Join Date: Mar 2022
Posts: 5
Rep Power: 4
Murillo is on a distinguished road
Yes, it is possible to do it so. Check "ANSYS CFX Solver Modeling Guide". A section called "Using Interrupt Control in Cases with Transient Convergence Behavior" describes how you can do it.
Murillo is offline   Reply With Quote

Reply


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
CFX Pre & Post Startup Error vigges CFX 12 March 17, 2023 03:30
CFX problems I got in Workbench Anna Tian CFX 13 July 3, 2017 01:49
cfx solve error and stop solve and fail solve mahdidelfan CFX 4 July 3, 2014 02:01
Trying to stop CFX running mannually cfxmar CFX 8 August 27, 2010 11:00
CFX pressure in Simulations problem nasdak CFX 1 April 14, 2010 13:22


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