CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Time step continuity error on restart (https://www.cfd-online.com/Forums/openfoam-solving/79405-time-step-continuity-error-restart.html)

akidess August 23, 2010 07:53

Time step continuity error on restart
 
Hello everybody,

I have a solver I developed based on interFoam (1.6.x). It works like a charm running from t=0, but if I try to restart a simulation at an arbitrary t!=0 I get a time step continuity error. Any idea how to fix this? I already tried changing the 'writePrecision' in controlDict from 6 to 10, but that didn't help.

- Anton

Code:

time step continuity errors : sum local = 6.660168758e-11, global = 6.639932847e-11, cumulative = 6.639932847e-11

--> FOAM FATAL ERROR:
Continuity error cannot be removed by adjusting the outflow.
Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow.
Total flux              : 1.43477e-07
Specified mass inflow  : 1.17455e-13
Specified mass outflow  : 2.17053e-13
Adjustable mass outflow : 0


akidess August 23, 2010 08:40

I forgot to mention that this happens right after reading the transport properties, ie. before any computations are done. Also, all boundary conditions for U are fixedValue 0, and for p are zeroGradient.

Now I noticed the solver is unhappy with the call to adjustPhi in correctPhi.H using pCorr. If I remove the include for correctPhi.H, the solver seems to run as it should, but I don't really understand why this breaks things... Can anyone provide an insight if it is safe to remove this initialization?

Tiffany August 15, 2012 19:05

I'm getting this exact same error. Did you figure out how to fix this???

akidess August 16, 2012 02:38

A possible fix is already mentioned in my post #2.

Tiffany August 16, 2012 11:50

Sorry, I meant did you find a way to fix this error without editing the solver (i.e. removing the include for correctPhi.H)? I'm getting this error when trying to run interFoam and don't want to attempt to edit the solver to run my case for obvious reasons. I'm wondering what setting(s) I can change to get this to work for me.

akidess August 17, 2012 01:54

Unfortunately that's the only solution I found.


All times are GMT -4. The time now is 15:14.