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

fatal error with a custom solver buoyantBoussinesqCO2SimpleFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2014, 03:28
Default fatal error with a custom solver buoyantBoussinesqCO2SimpleFoam
  #1
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12
imani is on a distinguished road
hi dear formers
i a want to run a case with a solver that i make it an wmake it successfully
but i have this error when i run my case

Code:
 /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  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   : buoyantBoussinesqCO2SimpleFoam
Date   : Aug 26 2014
Time   : 10:55:35
Host   : "ubuntu"
PID    : 5948
Case   : /home/dell/Desktop/Imani-Case
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Create mesh for time = 0


Reading g
Reading thermophysical properties

Reading field AoA

Reading field T

Reading field p_rgh

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Creating turbulence model

Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
    Cmu             0.09;
    C1              1.44;
    C2              1.92;
    sigmaEps        1.3;
}

Reading field alphat

Calculating field g.h

Selecting radiationModel none
No finite volume options present


SIMPLE: convergence criteria
    field p_rgh     tolerance 0.01
    field U     tolerance 0.0001
    field T     tolerance 0.01
    field "(k|epsilon|omega)"     tolerance 0.001


Starting time loop

Time = 1

DILUPBiCG:  Solving for Ux, Initial residual = 1, Final residual = 0.0153138, No Iterations 1
DILUPBiCG:  Solving for Uy, Initial residual = 1, Final residual = 0.0139123, No Iterations 1
DILUPBiCG:  Solving for Uz, Initial residual = 1, Final residual = 0.0115496, No Iterations 1
DILUPBiCG:  Solving for T, Initial residual = 1, Final residual = 0.0413473, No Iterations 1


--> FOAM FATAL ERROR: 
updateCoeffs(const scalarField& snGradp) MUST be called before updateCoeffs() or evaluate() to set the boundary gradient.

    From function fixedFluxPressureFvPatchScalarField::updateCoeffs()
    in file fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C at line 151.

FOAM exiting

dell@ubuntu:~/Desktop/Imani-Case$ 
dell@ubuntu:~/Desktop/Imani-Case$

Last edited by wyldckat; August 28, 2014 at 17:01. Reason: Added [CODE][/CODE]
imani is offline   Reply With Quote

Old   August 27, 2014, 03:04
Default divergence error
  #2
Member
 
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12
imani is on a distinguished road
hi formers
who know what is this error
i guesss it is related to my p_rgh boundary condition
but i dont know where is wrong!!
please help me

Code:
Time = 13

DILUPBiCG:  Solving for Ux, Initial residual = 0.299958, Final residual = 0.00436591, No Iterations 9
DILUPBiCG:  Solving for Uy, Initial residual = 0.298262, Final residual = 0.00234667, No Iterations 9
DILUPBiCG:  Solving for Uz, Initial residual = 0.287591, Final residual = 0.00106722, No Iterations 9
DILUPBiCG:  Solving for T, Initial residual = 0.358471, Final residual = 0.000245979, No Iterations 3
#0  Foam::error::printStack(Foam::Ostream&) in "/home/dell/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigFpe::sigHandler(int) in "/home/dell/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2   in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::DICPreconditioner::calcReciprocalD(Foam::Field<double>&, Foam::lduMatrix const&) in "/home/dell/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4  Foam::DICPreconditioner::DICPreconditioner(Foam::lduMatrix::solver const&, Foam::dictionary const&) in "/home/dell/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#5  Foam::lduMatrix::preconditioner::addsymMatrixConstructorToTable<Foam::DICPreconditioner>::New(Foam::lduMatrix::solver const&, Foam::dictionary const&) in "/home/dell/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#6  Foam::lduMatrix::preconditioner::New(Foam::lduMatrix::solver const&, Foam::dictionary const&) in "/home/dell/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#7  Foam::PCG::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const in "/home/dell/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#8  Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) in "/home/dell/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#9  Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/home/dell/OpenFOAM/dell-2.3.0/platforms/linux64GccDPOpt/bin/buoyantBoussinesqCO2SimpleFoam"
#10  
 at buoyantBoussinesqCO2SimpleFoam.C:0
#11  
 in "/home/dell/OpenFOAM/dell-2.3.0/platforms/linux64GccDPOpt/bin/buoyantBoussinesqCO2SimpleFoam"
#12  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#13  
 in "/home/dell/OpenFOAM/dell-2.3.0/platforms/linux64GccDPOpt/bin/buoyantBoussinesqCO2SimpleFoam"
Floating point exception (core dumped)

Last edited by wyldckat; August 28, 2014 at 17:02. Reason: Added [CODE][/CODE]
imani is offline   Reply With Quote

Old   August 29, 2014, 05:22
Default
  #3
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 21
marupio is on a distinguished road
That's a floating point error. Your solution diverged.
__________________
~~~
Follow me on twitter @DavidGaden
marupio 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
different results between serial solver and parallel solver wlt_1985 FLUENT 11 October 12, 2018 09:23
Fatal overflow in linear solver error. Why? zaidun CFX 7 August 11, 2016 06:59
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 10:52
Different errors when linking custom library via solver vs controlDict chrisb2244 OpenFOAM Programming & Development 0 February 21, 2014 04:12
Error compiling solver controlling custom BC Gaetano OpenFOAM Programming & Development 2 January 22, 2014 07:48


All times are GMT -4. The time now is 07:43.