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

Another 'Time step continuity error' thread

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By jaydeep

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2017, 07:17
Default Another 'Time step continuity error' thread
  #1
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Hello,

Can someone please help me with the time step continuity error I'm getting?

I'm using simpleFoam and this is what I get when I run the case
Code:
#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::divide(Foam::Field<double>&, double const&, Foam::UList<double> const&) at ??:?
#4  Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(Foam::dimensioned<double> const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) at ??:?
#5  ? at ??:?
#6  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7  ? at ??:?
In the log file the last entries are like this:
Code:
Time = 8

DILUPBiCG:  Solving for Ux, Initial residual = 0.954901, Final residual = 0.072332, No Iterations 71
DILUPBiCG:  Solving for Uy, Initial residual = 0.94901, Final residual = 0.0562591, No Iterations 68
DICPCG:  Solving for p, Initial residual = 0.999999, Final residual = 0.0958529, No Iterations 293
time step continuity errors : sum local = 3.77895e+12, global = -1.04947e+10, cumulative = -1.04947e+10
ExecutionTime = 0.53 s  ClockTime = 1 s

Time = 9

DILUPBiCG:  Solving for Ux, Initial residual = 1, Final residual = 0.0892879, No Iterations 261
DILUPBiCG:  Solving for Uy, Initial residual = 1, Final residual = 0.0170661, No Iterations 132
DICPCG:  Solving for p, Initial residual = 1, Final residual = 0.0934216, No Iterations 192
time step continuity errors : sum local = 6.39919e+21, global = 5.204e+20, cumulative = 5.204e+20
ExecutionTime = 0.79 s  ClockTime = 1 s

Time = 10

DILUPBiCG:  Solving for Ux, Initial residual = 1, Final residual = 0.0895149, No Iterations 116
DILUPBiCG:  Solving for Uy, Initial residual = 1, Final residual = 0.0685429, No Iterations 109
The time step continuity errors are very large as you can see. I have been through the threads related to this topic and I haven't understood yet what is causing these errors.
I toyed around the relTol as mentioned in threads like this:
Time step continuity
But these are errors are very small in magnitude, whereas mine are on the other end of the spectrum.

What should be the source of these errors?
deepbandivadekar is offline   Reply With Quote

Old   November 14, 2017, 07:19
Default
  #2
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
This is my choice of p and U solvers in the fvSolutions
Code:
solvers
{
    p
    {
        solver          PCG;
    preconditioner    DIC;
        tolerance       1e-07;
        relTol          0.1;
//        smoother        GaussSeidel;
    }

    U
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance       1e-07;
        relTol          0.1;
    }
}

SIMPLE
{
//    nUCorrectors    2;
    nNonOrthogonalCorrectors 0;
    
    residualControl
    {
      p    1e-6;
      U 1e-6;
    }

    pRefCell 0;
    pRefValue 0;
}

relaxationFactors
{
    fields
    {
        p               0.2;
        U               0.9;
//        k               0.9;
//        epsilon         0.9;
    }
}
This is a 2D (quasi 3D) case of flow through porous medium.

Is the error related to any of these parameters ?
deepbandivadekar is offline   Reply With Quote

Old   November 14, 2017, 11:22
Default Update
  #3
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Update: Decreasing relaxation factors did not help as per this thread here: simpleFoam time step continuity errors


I changed it to 0.5 for U and same (0.2) for p in fvsolution

The boundary conditions seem to be okay for this case. Nothing has changed in the output.

I don't see how this error can be resolved. Can anyone please help?
deepbandivadekar is offline   Reply With Quote

Old   November 16, 2017, 10:04
Default
  #4
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Anyone at all ? Still stuck here..
deepbandivadekar is offline   Reply With Quote

Old   November 16, 2017, 11:44
Default
  #5
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 11
kera is on a distinguished road
Hallo!

There are still other stuff which may lead to this error:

1) Have you checked the quality of your mesh?
2) The boundary conditions at the inlet and outlet for U and p?

Regards,
Ricky

Quote:
Originally Posted by deepbandivadekar View Post
Update: Decreasing relaxation factors did not help as per this thread here: simpleFoam time step continuity errors


I changed it to 0.5 for U and same (0.2) for p in fvsolution

The boundary conditions seem to be okay for this case. Nothing has changed in the output.

I don't see how this error can be resolved. Can anyone please help?
__________________
If it is easy, then something is fishy!
kera is offline   Reply With Quote

Old   November 16, 2017, 11:56
Default
  #6
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Quote:
Originally Posted by kera View Post
Hallo!

There are still other stuff which may lead to this error:

1) Have you checked the quality of your mesh?
2) The boundary conditions at the inlet and outlet for U and p?

Regards,
Ricky
Thanks kera for responding.

1) Yes, with checkMesh. Also visually in paraview. Mesh is fine.
2) As suggested in the tutorial (image attached)
Attached Images
File Type: jpg Screenshot from 2017-11-16 16-53-24.jpg (66.9 KB, 11 views)
deepbandivadekar is offline   Reply With Quote

Old   November 16, 2017, 16:20
Default
  #7
Member
 
Jaydeep
Join Date: Jun 2015
Posts: 34
Rep Power: 10
jaydeep is on a distinguished road
Quote:
Originally Posted by deepbandivadekar View Post
Thanks kera for responding.

1) Yes, with checkMesh. Also visually in paraview. Mesh is fine.
2) As suggested in the tutorial (image attached)
There was one time I had similar error, in my case I had forgotten to scale my mesh (inch to m). Did you have any scaling operation?

Please post your case for more details
kera likes this.
jaydeep is offline   Reply With Quote

Old   November 17, 2017, 07:07
Default
  #8
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
I did. But I don't see how that should cause something like this. At max it would need more number of iterations to converge. Am I right?
deepbandivadekar is offline   Reply With Quote

Old   November 17, 2017, 07:08
Default
  #9
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Inch to metre..hmm maybe. Those are inconsistent units.
deepbandivadekar 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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 16, 2019 23:12
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 10:08
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33


All times are GMT -4. The time now is 10:41.