|
[Sponsors] |
July 23, 2013, 00:45 |
How to debug the error for LTSInterFoam
|
#1 |
New Member
Kshitij kunte
Join Date: Jun 2011
Posts: 18
Rep Power: 14 |
Hi All,
I'm performing steady state CFD simulation for atomizing a liquid jet in a cylindrical nozzle. I have compiled the code in debug mode and I get the following message when my simulation diverges, can anybody please suggest me what does the error message say. I want to learn in general how to understand these messages and locate where the problem is. Thanks in anticipation. HTML Code:
Create time Create mesh for time = 0 Reading field p_rgh Reading field U Reading/calculating face flux field phi Reading transportProperties Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian Selecting turbulence model type RASModel Selecting RAS turbulence model kEpsilon kEpsilonCoeffs { Cmu 0.09; C1 1.44; C2 1.92; sigmaEps 1.3; } Reading g Calculating field g.h No finite volume options present PIMPLE: Operating solver in PISO mode time step continuity errors : sum local = 11.5327, global = -11.5327, cumulative = -11.5327 GAMGPCG: Solving for pcorr, Initial residual = 1, Final residual = 0.0252914, No Iterations 4 GAMGPCG: Solving for pcorr, Initial residual = 0.000189297, Final residual = 8.84765e-06, No Iterations 2 time step continuity errors : sum local = 0.380693, global = 0.00297738, cumulative = -11.5297 Courant Number mean: 5737.01 max: 435114 Starting time loop Time = 1 Flow time scale min/max = 1.28348e-05, 1e+15 Smoothed flow time scale min/max = 1.28348e-05, 5.36101e+14 MULES: Solving for alpha1 Phase-1 volume fraction = 3.70466e-05 Min(alpha1) = 0 Max(alpha1) = 1 MULES: Solving for alpha1 Phase-1 volume fraction = 7.41328e-05 Min(alpha1) = 0 Max(alpha1) = 1 MULES: Solving for alpha1 Phase-1 volume fraction = 0.000111258 Min(alpha1) = 0 Max(alpha1) = 1 MULES: Solving for alpha1 Phase-1 volume fraction = 0.000148421 Min(alpha1) = 0 Max(alpha1) = 1 DILUPBiCG: Solving for epsilon, Initial residual = 1, Final residual = 0.0333823, No Iterations 12 bounding epsilon, min: -4.2004e-06 max: 2.56295e-05 average: 5.48135e-06 DILUPBiCG: Solving for k, Initial residual = 1, Final residual = 0.000150965, No Iterations 1 #0 Foam::error::printStack(Foam::Ostream&) at ~/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/printStack.C:221 #1 Foam::sigFpe::sigHandler(int) at ~/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/signals/sigFpe.C:117 #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 ~/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/GAMGSolverScale.C:57 (discriminator 1) #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::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const at ~/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/GAMGSolverSolve.C:297 #5 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ~/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/GAMGSolverSolve.C:99 #6 Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ~/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/fvMatrices/fvScalarMatrix/fvScalarMatrix.C:164 (discriminator 1) #7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) at ~/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude/fvMatrixSolve.C:81 #8 at ~/OpenFOAM/OpenFOAM-2.2.0/applications/solvers/multiphase/my_interFoam/LTSInterFoam/../pEqn.H:37 (discriminator 1) #9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #10 at ??:? Floating point exception (core dumped) |
|
July 23, 2013, 03:46 |
|
#2 | ||
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 19 |
I am no expert so may easily be wrong but I think that the problem starts here:
Quote:
Quote:
|
|||
July 23, 2013, 04:01 |
|
#3 | |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 19 |
Having gone through your stack print out I noticed this:
Quote:
Code:
turbulence->correct(); |
||
July 23, 2013, 04:12 |
|
#4 |
New Member
Kshitij kunte
Join Date: Jun 2011
Posts: 18
Rep Power: 14 |
Hi Arthur,
Thanks for the reply, though I have created the a new solver called my_interFoam I have changed nothing in it. I would be adding the temperature field to it, but right now its pretty much similar to the original interfoam. I'm still trying to get why this is happening, but thanks anyways. |
|
July 23, 2013, 04:18 |
|
#5 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 19 |
For the time being, if I may suggest setting your turbulent quantities in your BC files to some bigger values to see if the small bounding epsilon or k are the problem? If it turns out they aren't then at least you'll know that for sure.
|
|
July 23, 2013, 04:34 |
|
#6 | |
Member
Join Date: Apr 2013
Posts: 32
Rep Power: 13 |
Quote:
Best regards |
||
July 23, 2013, 06:28 |
|
#7 |
New Member
Kshitij kunte
Join Date: Jun 2011
Posts: 18
Rep Power: 14 |
Hi All,
I was able to come over the earlier error by giving the relTol as zero which was earlier set to 0.1. Now I'm getting a very weird divergence, which says HTML Code:
[1] --> FOAM FATAL IO ERROR: [1] error in IOstream "/home/ubuntu/Injector_Sims/ec2_22_7/processor1/114/p" for operation Ostream& operator<<(Ostream&, const Scalar&) [1] [1] file: /home/ubuntu/Injector_Sims/ec2_22_7/processor1/114/p at line 138500. [1] [1] From function IOstream::check(const char*) const [1] in file db/IOstreams/IOstreams/IOstream.C at line 99. |
|
July 23, 2013, 06:35 |
|
#8 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 19 |
From IOStream.C:
Code:
bool Foam::IOstream::check(const char* operation) const { if (bad()) { FatalIOErrorIn ( "IOstream::check(const char*) const", *this ) << "error in IOstream " << name() << " for operation " << operation <= line 99 is here << exit(FatalIOError); } return !bad(); } |
|
July 23, 2013, 06:41 |
|
#9 | |
Member
Join Date: Apr 2013
Posts: 32
Rep Power: 13 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
create the file *.foam | phongstar | OpenFOAM | 12 | October 14, 2018 18:06 |
Switching to debug mode? | NJG | OpenFOAM Installation | 4 | March 4, 2013 18:08 |
how to use gdb to debug openfoam? | houkensjtu | OpenFOAM Programming & Development | 2 | October 16, 2012 02:05 |
Eclipse - case debug error | Bufacchi | OpenFOAM | 1 | February 7, 2012 15:15 |
How to compile OF-1.5 in the debug mode? | sandy | OpenFOAM Running, Solving & CFD | 4 | July 8, 2009 08:43 |