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

How to solve the error message "Foam::error::printStack(Foam::Ostream&)"

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2021, 16:54
Default How to solve the error message "Foam::error::printStack(Foam::Ostream&)"
  #1
New Member
 
F
Join Date: Oct 2021
Posts: 10
Rep Power: 5
fran.cesc is on a distinguished road
Good day,
I am new to OpenFoam, so probably my mistakes are going to be obvious to some of you.
I am trying to simulate an external flow of water around a cylinder (2d).

I copied the tutorial Airfoil2d (simpleFoam) folder. I then imported a Fluent Mesh.
I changed just a couple of parameters here and there, but when I run the solver I get the below error message
Could anybody give me some help please?
Thanks a lot





  1. Control Dict
    Code:
    application     simpleFoam; 
     
    startFrom       startTime; 
     
    startTime       0; 
     
    stopAt          endTime; 
     
    endTime         500; 
     
    deltaT          1; 
     
    writeControl    timeStep; 
     
    writeInterval   50; 
     
    purgeWrite      0; 
     
    writeFormat     ascii; 
     
    writePrecision  6; 
     
    writeCompression off; 
     
    timeFormat      general; 
     
    timePrecision   6; 
     
    runTimeModifiable true; 
     
    functions 
    { 
        momErr 
        { 
            type            momentumError; 
            libs            (fieldFunctionObjects); 
            executeControl  writeTime; 
            writeControl    writeTime; 
        } 
     
        contErr 
        { 
            type            div; 
            libs            (fieldFunctionObjects); 
            field           phi; 
            executeControl  writeTime; 
            writeControl    writeTime; 
        } 
     
     
        turbulenceFields1 
        { 
            type            turbulenceFields; 
            libs            (fieldFunctionObjects); 
            fields 
            ( 
                k 
                epsilon 
                nut 
                nuEff 
                R 
                devReff 
                L 
                I 
            ); 
     
            executeControl  writeTime; 
            writeControl    writeTime; 
        } 
     
        mag1 
        { 
            type            mag; 
            libs            (fieldFunctionObjects); 
            field           turbulenceProperties:R; 
     
            result          magR; 
            executeControl  writeTime; 
            writeControl    writeTime; 
        } 
    }
  2. Turbolence Properties
    Code:
    simulationType          RAS; 
     
    RAS 
    { 
        RASModel            SpalartAllmaras; 
     
        turbulence          on; 
     
        printCoeffs         on; 
    }
  3. Transport Properties
    Code:
    transportModel  Newtonian; 
     
    nu              1e-06;
  4. U
    Code:
    internalField   uniform (1.5 0.01 0); 
     
    boundaryField 
    { 
        inlet 
        { 
            type            freestreamVelocity; 
            freestreamValue $internalField; 
        } 
     
        outlet 
        { 
            type            freestreamVelocity; 
            freestreamValue $internalField; 
        } 
     
        walls 
        { 
            type            noSlip; 
        } 
     
        frontandback 
        { 
            type            empty; 
        } 
    }
  5. p
    i
    Code:
    nternalField   uniform 0; 
     
    boundaryField 
    { 
        inlet 
        { 
            type            freestreamPressure; 
            freestreamValue $internalField; 
        } 
     
        outlet 
        { 
            type            freestreamPressure; 
            freestreamValue $internalField; 
        } 
     
        walls 
        { 
            type            zeroGradient; 
        } 
     
        frontandback 
        { 
            type            empty; 
        } 
    }
  6. nut
    Code:
    internalField   uniform 0; 
     
    internalField   uniform 0.14; 
     
    boundaryField 
    { 
        inlet 
        { 
            type            freestream; 
            freestreamValue uniform 0.14; 
        } 
     
        outlet 
        { 
            type            freestream; 
            freestreamValue uniform 0.14; 
        } 
     
        walls 
        { 
            type            nutUSpaldingWallFunction; 
            value           uniform 0; 
        } 
     
        frontandback 
        { 
            type            empty; 
        } 
    }
  7. nuTIlda
    Code:
    internalField   uniform 0.14; 
     
    boundaryField 
    { 
        inlet 
        { 
            type            freestream; 
            freestreamValue uniform 0.14; 
        } 
     
        outlet 
        { 
            type            freestream; 
            freestreamValue uniform 0.14; 
        } 
     
        walls 
        { 
            type            fixedValue; 
            value           uniform 0; 
        } 
     
        frontandback 
        { 
            type            empty; 
        } 
    }
  8. Boundary of the polymesh
    Code:
        walls 
        { 
            type wall; 
            physicalType wall; 
            nFaces          28; 
            startFace       43092; 
        } 
        inlet 
        { 
            type patch; 
            physicalType inlet; 
            nFaces          483; 
            startFace       43120; 
        } 
        outlet 
        { 
            type patch; 
            physicalType outlet; 
            nFaces          117; 
            startFace       43603; 
        } 
        frontandback 
        { 
            type empty; 
            physicalType empty; 
            nFaces          43406; 
            startFace       43720; 
        }
  9. fvSchemes
    Code:
    ddtSchemes 
    { 
        default         steadyState; 
    } 
     
    gradSchemes 
    { 
        default         Gauss linear; 
    } 
     
    divSchemes 
    { 
        default         none; 
     
        div(phi,U)      bounded Gauss linearUpwind grad(U); 
     
        div(phi,nuTilda) bounded Gauss linearUpwind grad(nuTilda); 
     
        div((nuEff*dev2(T(grad(U))))) Gauss linear; 
    } 
     
    laplacianSchemes 
    { 
        default         Gauss linear corrected; 
    } 
     
    interpolationSchemes 
    { 
        default         linear; 
    } 
     
    snGradSchemes 
    { 
        default         corrected; 
    } 
     
    wallDist 
    { 
        method          meshWave; 
    }
  10. fvSolution

    Code:
    solvers 
    { 
        p 
        { 
            solver          GAMG; 
            tolerance       1e-06; 
            relTol          0.1; 
            smoother        GaussSeidel; 
        } 
     
        U 
        { 
            solver          smoothSolver; 
            smoother        GaussSeidel; 
            nSweeps         2; 
            tolerance       1e-08; 
            relTol          0.1; 
        } 
     
        nuTilda 
        { 
            solver          smoothSolver; 
            smoother        GaussSeidel; 
            nSweeps         2; 
            tolerance       1e-08; 
            relTol          0.1; 
        } 
    } 
     
    SIMPLE 
    { 
        nNonOrthogonalCorrectors 0; 
     
        residualControl 
        { 
            p               1e-5; 
            U               1e-5; 
            nuTilda         1e-5; 
        } 
    } 
     
    relaxationFactors 
    { 
        fields 
        { 
            p               0.8; 
        } 
        equations 
        { 
            U               0.7; 
            nuTilda         0.7; 
        } 
    }
  11. Error Message
    Code:
    smoothSolver:  Solving for Ux, Initial residual = 0.504513, Final residual = 0.0458849, No Iterations 52 
    smoothSolver:  Solving for Uy, Initial residual = 0.506237, Final residual = 0.0415468, No Iterations 52 
    #0  Foam::error::printStack(Foam::Ostream&) at ??:? 
    #1  Foam::sigFpe::sigHandler(int) at ??:? 
    #2  ? in /lib/x86_64-linux-gnu/libpthread.so.0 
    #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 ??:? 
    #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::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const at ??:? 
    #5  Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:? 
    #6  Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ??:? 
    #7  ? at ??:? 
    #8  Foam::fvMesh::solve(Foam::fvMatrix<double>&, Foam::dictionary const&) const at ??:? 
    #9  ? in /usr/lib/openfoam/openfoam2106/platforms/linux64GccDPInt32Opt/bin/simpleFoam 
    #10  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6 
    #11  ? in /usr/lib/openfoam/openfoam2106/platforms/linux64GccDPInt32Opt/bin/simpleFoam 
    Floating point exception (core dumped)
fran.cesc is offline   Reply With Quote

Old   October 19, 2024, 01:48
Default
  #2
New Member
 
Jehan Sharook Rassdeen
Join Date: Sep 2024
Posts: 3
Rep Power: 2
Jehan99 is on a distinguished road
Hi,
did you solve this problem?
Jehan99 is offline   Reply With Quote

Reply

Tags
external flow, openfoam2106, simplefoam; convergence;

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
Fluent do not use my velocity field(by UDF) to solve energy equation tangleiplus Fluent UDF and Scheme Programming 6 January 21, 2019 22:28
solve equation michaelsmit OpenFOAM Running, Solving & CFD 4 March 24, 2011 06:35
Solve Flow or VOF simultaneously ? Ramsey FLUENT 1 February 16, 2011 14:16
Linearized NS euqations: how to solve them?(problem with Matrix operations..) matteoL OpenFOAM Running, Solving & CFD 0 November 18, 2009 07:58
MAC method solve for pressure at boundry Ron Main CFD Forum 2 January 28, 2006 03:14


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