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/)
-   -   New Solver error Foam::error::printStack (https://www.cfd-online.com/Forums/openfoam-solving/171605-new-solver-error-foam-error-printstack.html)

upuli May 11, 2016 22:43

New Solver error Foam::error::printStack
 
Dear members
I developed a new solver based on reactingFoam. It was compiled without errors. But when the case was prepared and run It gave the following error. Can someone please help me to solve this.

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.3.0-f5222ca19ce6
Exec : myreactingFoam
Date : May 12 2016
Time : 07:54:22
Host : "niranjan-To-be-filled-by-O-E-M"
PID : 3627
Case : /home/niranjan/OpenFOAM/niranjan-2.3.0/run/particle
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading g
Reading physicalProperties

Reading field rho

Reading field p

Reading field U

Reading field k

Reading field epsilon

Reading field alphat

Reading/calculating face flux field phi

Creating field dpdt

Creating field kinetic energy K

Reading field G

Reading field Tg

Reading field Ts

Reading field mMoisture

Reading field mcellulose

Reading field mhemicellulose

Reading field mlignin

Reading field mWood

Reading field mchar

Reading field mash

Reading field mO2

Reading field mH2

Reading field mCO2

Reading field mCO

Reading field mH2O

Reading field mCH4

Reading field mN2

No finite volume options present

#0 Foam::error::printStack(Foam::Ostream&) at ~/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/printStack.C:221
#1 Foam::sigFpe::sigHandler(int) at ~/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/signals/sigFpe.C:108
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ~/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/fields/Fields/scalarField/scalarField.C:114
#4 Foam::operator/(Foam::UList<double> const&, Foam::UList<double> const&) at ~/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/fields/Fields/scalarField/scalarField.C:114
#5
at ~/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/compressibleCourantNo.H:41
#6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7
in "/home/niranjan/OpenFOAM/niranjan-2.3.0/platforms/linux64GccDPDebug/bin/myreactingFoam"
Floating point exception (core dumped)

Antimony May 11, 2016 23:17

Hi,

The error message indicates that it is a floating point exception. I am tempted to say that this is because you are dividing by zero somewhere in your initial calculations.

Cheers,
Antimony

upuli May 12, 2016 01:29

Hi

Thank You Very Much
I solved the problem. Some boundary field values were set to zero. I corrected the mistake.

vcvedant November 13, 2016 19:45

Hi Upuli,

Can you tell me what did you do to correct it?

Thanks

upuli May 11, 2018 01:43

Hi

I added some small value 1e-25 to the variables which are divided by volume scalar fields.


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