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

Residual Convergence

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2021, 17:16
Default Residual Convergence
  #1
C72
New Member
 
Calum
Join Date: Sep 2021
Posts: 14
Rep Power: 4
C72 is on a distinguished road
Hi folks. I'm attempting to model a standard low-rise building in a kind of urban environment with a wall and roof thickness of 1m. I've created my first mesh and refined this appropriately to capture most of the wake phenomena etc.

Since then, to begin with, i've selected the following physics models that i've seen used before:

Implicit Unsteady
Gas
Segregated Flow
Constant Density
Turbulent - K-Omega
Turbulence Suppression with all-y+ auto-selected

My inlet velocity magnitude is a constant 40m/s (to begin with as I will later apply a power law field function with height) and i've specified turbulence intensity and length scale as 0.01 and 0.02 respectfully.

Time step is 0.01s with temporal discretisation 1st order and max. inner iterations is set to 10.

When I run my first simulation. My residuals all seem to oscillate forever, meaning that I can't get any accurate readings from pressure etc. I plan to make the building walls and roof a porous media in future so i dont know if i should have maybe done this before simulating or if that would make a difference to this.

I'm more or less a beginner with Star anyway and would just like to what is causing this and how to solve it, or if anyone could just point me in the right direction so i can learn it would be much appreciated! I've attached some images to make this easier to understand.

Thanks!
Attached Images
File Type: jpg Capture.jpg (115.7 KB, 60 views)
File Type: png Capture1.PNG (116.8 KB, 21 views)
File Type: png Capture2.PNG (32.8 KB, 20 views)
File Type: png Capture3.PNG (6.0 KB, 10 views)
C72 is offline   Reply With Quote

Old   October 1, 2021, 19:03
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Residuals do that in unsteady simulations. At the start of each time-step, the residuals will spike if there's any change in the solution; and there should be unless you found the steady state solution.


I'm not saying there isn't a million thing you could be doing better, but this behavior in residuals is expected.
LuckyTran is offline   Reply With Quote

Old   October 2, 2021, 12:31
Default
  #3
C72
New Member
 
Calum
Join Date: Sep 2021
Posts: 14
Rep Power: 4
C72 is on a distinguished road
Hi thanks for the response!

I've since gone and changed my approach, switching to the following physics models:

• Three Dimensional;
• Steady;
• Gas;
• Segregated Flow;
• Constant Density;
• Turbulent;
– Reynolds-Averaged Navier-Stokes (RANS);
– K-Epsilon Turbulence / Standard K-Epsilon / High y
+ Wall Treatment.

This has improved my output however my residuals still don't converge to flat lines. Is this simply due to the fact that i have turbulence involved in the physics and will this always be the case?

Thanks and i appreciate the help.
Attached Images
File Type: png Residuals.PNG (124.0 KB, 48 views)
C72 is offline   Reply With Quote

Old   October 5, 2021, 00:04
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Although a turbulence model might be involved, there isn't a rule that residual plots will look like this if there is a turbulence model activated. There's tons of reasons why residuals might act that way and almost none of them can be determined simply by looking at the residuals.


You could model a simple box or pipe with the same turbulence model and get a very different looking residual plot.
LuckyTran is offline   Reply With Quote

Old   October 6, 2021, 14:23
Default
  #5
New Member
 
Sibylle Walter
Join Date: Aug 2020
Posts: 7
Rep Power: 5
SWalter_RSI is on a distinguished road
In addition to the residuals, I'd look at what the outflow pane looks like. Are there gradients across the outflow? If so, while modern CFD codes are pretty robust with respect to that, you may want to increase the distance from your area of interest to let the flow settle out. If you still see the behavior in your residuals, it's likely an issue with how you set up your simulation.



Also, check your outlet type. Different outlets are better suited for different problems. The user manual/help file should be able to give you some guidance on which is best suited for your simulation type.
SWalter_RSI is offline   Reply With Quote

Old   October 19, 2021, 03:38
Default
  #6
New Member
 
Nikolaos Papafilippou
Join Date: Apr 2019
Posts: 25
Rep Power: 7
Nikpap is on a distinguished road
It is likely that your simulation does not have a steady solution and that's why your residuals look like this for your steady results.

If that is not the case, other reasons include: discretisation errors, modelling errors, ill-conditioned physics etc.

Just by briefly looking at your residuals for the unsteady case, they are what I would expect to see.

Your results will not be what you want if you're looking at the instantaneous values of whatever you're looking for, so you need to average them by yourself using a monitor for each value of interest.

The results at the beginning of the unsteady simulation are considered "noise", that is why you generally want ~4 flow through times through your volume to start collecting averages. You can have a tiny bit of confidence when your average is not changing anymore.

It would be better if you had a look at the book by Ferziger, Peric and Street: Computational Methods for Fluid Dynamics to get yourself familiar with what each option does.
Nikpap 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
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" bigphil OpenFOAM CC Toolkits for Fluid-Structure Interaction 686 December 22, 2022 09:10
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 08:35
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50


All times are GMT -4. The time now is 02:57.