CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

what reasons may make fluctuations in residuals?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2013, 06:46
Default what reasons may make fluctuations in residuals?
  #1
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Hi everybody,

what reasons may make fluctuations in residuals?
residuals are attached.

I work with a modified viscoelasticFluidFoam solver that combined whit buoyantBoussinesqSimpleFoam.

thanks
Mostafa
Attached Images
File Type: png Capture.PNG (35.5 KB, 159 views)
adambarfi is offline   Reply With Quote

Old   March 7, 2013, 08:13
Default
  #2
Member
 
Nikesh Bhattarai
Join Date: Nov 2011
Location: Sacheon, South Korea
Posts: 82
Rep Power: 13
nikesh is an unknown quantity at this point
Such a small fluctuation in residuals is not a problem. You should take care to see whether ur residual reaches below the convergence tolerance or not! Generally we would set the convergence tolerance to be 10^-5 or 10^-6 or less which depends on user.
In your case, the residuals are not decreasing. They are fluctuating around a mean value and that mean value is of the order 10^-3 for the p-residual and 10^-1 for Uy-residual. As we can see, these are pretty high values. We want our residuals to be as small as possible, thats the general concept.
nikesh is offline   Reply With Quote

Old   March 7, 2013, 08:35
Default
  #3
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by nikesh View Post
Such a small fluctuation in residuals is not a problem. You should take care to see whether ur residual reaches below the convergence tolerance or not! Generally we would set the convergence tolerance to be 10^-5 or 10^-6 or less which depends on user.
In your case, the residuals are not decreasing. They are fluctuating around a mean value and that mean value is of the order 10^-3 for the p-residual and 10^-1 for Uy-residual. As we can see, these are pretty high values. We want our residuals to be as small as possible, thats the general concept.
I meant that what might cause this problem????!?
adambarfi is offline   Reply With Quote

Old   March 7, 2013, 09:11
Default
  #4
Member
 
Nikesh Bhattarai
Join Date: Nov 2011
Location: Sacheon, South Korea
Posts: 82
Rep Power: 13
nikesh is an unknown quantity at this point
There could be numerous reasons for your residuals to be so high. We can't point out one reason for sure. However, you might want to recheck your boundary conditions and schemes used and also the mesh criteria first.
nikesh is offline   Reply With Quote

Old   March 7, 2013, 09:34
Default
  #5
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by nikesh View Post
There could be numerous reasons for your residuals to be so high. We can't point out one reason for sure. However, you might want to recheck your boundary conditions and schemes used and also the mesh criteria first.
in buoyantboussinesqsimplefoam i just replace the turbulent model with some constants.
alpha, kappa, nu ...
adambarfi is offline   Reply With Quote

Old   March 7, 2013, 09:47
Default
  #6
Member
 
Nikesh Bhattarai
Join Date: Nov 2011
Location: Sacheon, South Korea
Posts: 82
Rep Power: 13
nikesh is an unknown quantity at this point
I might not be able to help you much with this since I don't have experience working on this case.
Maybe somebody with experience in this might!!
nikesh is offline   Reply With Quote

Old   May 17, 2021, 06:47
Default Fluctuation in the PimpleFOAM
  #7
New Member
 
Ashish
Join Date: Mar 2020
Posts: 7
Rep Power: 6
ashishdarekar14 is on a distinguished road
Hello people

What will be the reason behind the big fluctuation in the residual values, and the simulation is crashing after that??

Thanks in advance
Attached Images
File Type: png Screenshot from 2021-05-17 16-16-47.png (13.0 KB, 47 views)
ashishdarekar14 is offline   Reply With Quote

Old   May 18, 2021, 06:41
Default
  #8
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 665
Rep Power: 14
Tobermory will become famous soon enough
My dear friend - I wonder whether you realise how impossible it is to answer such a question, based off just a single chart?

Things for you to think about: are your boundaries correct/physical/working as intended? Are the fields behaving physically during this period - if not, where is the error happening - find out why and you might solve your issue.

Finally - what actually are you plotting - residual for every inner iteration? If so, then the saw-tooth behaviour is normal. Try running a tutorial case for example.
Tobermory is offline   Reply With Quote

Old   May 18, 2021, 07:38
Default
  #9
New Member
 
Ashish
Join Date: Mar 2020
Posts: 7
Rep Power: 6
ashishdarekar14 is on a distinguished road
Quote:
Originally Posted by Tobermory View Post
My dear friend - I wonder whether you realise how impossible it is to answer such a question, based off just a single chart?

Things for you to think about: are your boundaries correct/physical/working as intended? Are the fields behaving physically during this period - if not, where is the error happening - find out why and you might solve your issue.

Finally - what actually are you plotting - residual for every inner iteration? If so, then the saw-tooth behaviour is normal. Try running a tutorial case for example.
Sorry for the incomplete Information,
But I will let you know everything.

1. I am solving a simple FSI-benchmarking case from Wall and Ramm (Attached herewith the test case). If you want more details about how I am solving kindly let me know
2. But simply, from OF side -> I am solving this problem using PIMPLE solver (controlDict, FvScheme, FvSolution files are attached herewith)
3. Dynamic Mesh is used for the motion of a flap (dynamicMeshDict also Attached)
4. Mesh: created using the BlockMesh (attached herewith the output of the checkMesh
-> initial and last time step, Last time step is failed due to non orthogonal mesh elements)
5. Also the Simulation stopped after few time steps: with the FPE (shown below)

Code:
Time = 0.0805

PIMPLE: Iteration 1
smoothSolver:  Solving for cellDisplacementx, Initial residual = 0.0509482779987, Final residual = 5.0820900698e-06, No Iterations 73
smoothSolver:  Solving for cellDisplacementy, Initial residual = 0.179955306297, Final residual = 1.78276847317e-05, No Iterations 61
GAMG:  Solving for pcorr, Initial residual = 1, Final residual = 8.99785732436e-05, No Iterations 26
GAMG:  Solving for pcorr, Initial residual = 0.333399937369, Final residual = 5.93490175136e-06, No Iterations 25
time step continuity errors : sum local = 4.24894215131e-08, global = -2.10306284577e-10, cumulative = -3.20959092079e-09
smoothSolver:  Solving for Ux, Initial residual = 0.116746487056, Final residual = 7.41363983302e-06, No Iterations 19
smoothSolver:  Solving for Uy, Initial residual = 0.0796490045324, Final residual = 4.92202324779e-06, No Iterations 20
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::GAMGSolver::scale(Foam::Field<double>&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::Field<double> const&, unsigned char) const at ??:?
#4  Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMatrix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const at ??:?
#5  Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#6  Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ??:?
#7  Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/pimpleFoam"
#8  Foam::fvMatrix<double>::solve() in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/pimpleFoam"
#9  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/pimpleFoam"
#10  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/pimpleFoam"
Floating point exception (core dumped)
6. Residuals plotted using residual function object. No more fluctuations (they are gone) but still the solution is not converging (attached herewith the latest graph).

So, Could anyone help me to understand the exact problem and how to tackle that? Any suggestion will be appreciated


If you want anything more about my case kindly let me know, I will provide it
Thanks in advance
Ashish
Attached Files
File Type: zip Case_files.zip (34.4 KB, 2 views)
ashishdarekar14 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
under-relaxation factors -> level of residuals Zigainer FLUENT 19 July 21, 2017 16:53
Inlet fluctuations issue in LES Ivan Main CFD Forum 0 October 15, 2012 12:57
[OpenFOAM] paraFoam not found maysmech ParaView 26 October 25, 2011 03:14
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
a way to make lots of money quick and easy no lies Dob Main CFD Forum 0 October 10, 2006 16:45


All times are GMT -4. The time now is 08:40.