CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

STAR-CCM+ Stopping simulations after residuals convergence

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2018, 19:46
Default STAR-CCM+ Stopping simulations after residuals convergence
  #1
New Member
 
Sameh Khan
Join Date: Sep 2018
Posts: 2
Rep Power: 0
skhan547 is on a distinguished road
Hi all,

I've been wondering how to stop a simulation based on residuals convergence.

When I've got MATLAB models, I usually exit my numerical analysis when error hits a predetermined lower limits, such as 1e-4. The only thing I've found built into STAR-CCM+ is the 'Stopping Criteria', which seems to be based off number of iterations. I want to optimise here, and not run more iterations than needed.

I'm proficient at writing macros, so if there's anything in the API you'd like to point me to, I'd appreciate the reference.

Thanks!
skhan547 is offline   Reply With Quote

Old   September 22, 2018, 00:41
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25
me3840 is on a distinguished road
There are stopping criterion you can add from the residuals. Right click the stopping criterion folder in the tree. Then add one based on a monitor. A monitor exists for all residuals.


Though I will add deciding convergence on residuals alone is not a good idea. You should be monitoring engineering quantities and ensure they converge as well.
me3840 is offline   Reply With Quote

Old   September 22, 2018, 01:20
Default
  #3
New Member
 
Sameh Khan
Join Date: Sep 2018
Posts: 2
Rep Power: 0
skhan547 is on a distinguished road
Thanks for the help, that worked great for what I wanted!

However, I thought that convergence of engineering quantities was proportionally reflected in the convergence of error (ie, residuals). I may have a flawed understanding of residuals then; will try and do more reading.
skhan547 is offline   Reply With Quote

Old   September 22, 2018, 01:51
Default
  #4
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25
me3840 is on a distinguished road
The residuals are just one measure of convergence. The value you get is just a volume weighted average of sorts of all residuals in the domain. I'm sure you can imagine several ways such a value can fool you. In academic problems it can be easier to actually get them to machine zero, but for engineering problems this is often impossible. They may just flatline or oscillate about a low value as the linear solver struggles to reduce error further. Many times this would make evaluation of convergence ambiguous without another quantity to measure.

It may or may not be true for your problem, but I would encourage you to monitor both and find out. Ideally you should have a mix of important localized values (probes in a shear layer or expected area of instability, for example) and integrated quantities (drag, nusselt number, mass flow rate in a passage, etc). Monitor a few and see what happens on different cases, you may find yourself surprised.
me3840 is offline   Reply With Quote

Reply

Tags
convergence criteria, residuals target


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
convergence and residuals ebm CFX 2 February 2, 2009 18:55
error in star ccm maurizio Siemens 3 October 16, 2007 06:17
convergence of DPM simulations fluid FLUENT 0 October 12, 2007 10:11
Convergence - scaled vs unscaled residuals HS FLUENT 1 November 7, 2005 06:45
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


All times are GMT -4. The time now is 16:26.