CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Running first iteration issue (https://www.cfd-online.com/Forums/openfoam/226499-running-first-iteration-issue.html)

Elboy April 29, 2020 08:13

Running first iteration issue
 
1 Attachment(s)
Hi, I have noticed somthing wrong with my export to OpenFOAM from the mesh software Pointwise. When I create a mesh, even the simplest one (a rectangle with inlet outlet and walls), the simulation crashes giving me the following :

Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  5.x                                  |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
/*  Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt  *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com  |
\*---------------------------------------------------------------------------*/
Build  : 5.x-963176928289
Exec  : C:/PROGRA~1/BLUECF~1/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/bin/simplefoam.exe
Date  : May 06 2020
Time  : 14:24:30
Host  : "LAPTOP-BBJV64ED"
PID    : 4452
I/O    : uncollated
Case  : C:/Users/juhus/OneDrive/Bureau/t
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

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

Create mesh for time = 0


SIMPLE: no convergence criteria found. Calculations will run for 1000 steps.

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model SpalartAllmaras
Selecting patchDistMethod meshWave
RAS
{
    RASModel        SpalartAllmaras;
    turbulence      on;
    printCoeffs    on;
    sigmaNut        0.66666;
    kappa          0.41;
    Cb1            0.1355;
    Cb2            0.622;
    Cw2            0.3;
    Cw3            2;
    Cv1            7.1;
    Cs              0.3;
}

No MRF models present

No finite volume options present


Starting time loop

Time = 1

smoothSolver:  Solving for Ux, Initial residual = 1, Final residual = 1.01808483039e-005, No Iterations 1
smoothSolver:  Solving for Uy, Initial residual = 0.999187340076, Final residual = 0.477171144829, No Iterations 1000
Generating stack trace...


Backtrace:
        ZN10StackTraceC1Ev [0x705c1465+0x25]
                module: C:\PROGRA~1\BLUECF~1\ThirdParty-5.x\platforms\mingw_w64GccDPInt32\lib\libstack_trace.dll
        ZN4Foam5error10printStackERNS_7OstreamE [0xa51c88+0x218]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZN4Foam6sigFpe13sigFpeHandlerEi [0xa52af3+0x33]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        (No symbol) [0x403cad]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simplefoam.exe
        _C_specific_handler [0x7ff82cc48048+0x98]
                module: C:\WINDOWS\System32\msvcrt.dll
        0_chkstk [0x7ff82e0611cf+0x11f]
                module: C:\WINDOWS\SYSTEM32\ntdll.dll
        RtlRaiseException [0x7ff82e02a209+0x399]
                module: C:\WINDOWS\SYSTEM32\ntdll.dll
        KiUserExceptionDispatcher [0x7ff82e05fe3e+0x2e]
                module: C:\WINDOWS\SYSTEM32\ntdll.dll
        ZNK4Foam10GAMGSolver5scaleERNS_5FieldIdEES3_RKNS_9lduMatrixERKNS_10FieldFieldIS1_dEERKNS_8UPtrListIKNS_17lduInterfaceFieldEEERKS2_h [0x907a70+0xc0]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZNK4Foam10GAMGSolver6VcycleERKNS_7PtrListINS_9lduMatrix8smootherEEERNS_5FieldIdEERKS8_S9_S9_S9_S9_S9_RNS1_IS8_EESD_h [0x90b0f0+0xe80]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZNK4Foam10GAMGSolver5solveERNS_5FieldIdEERKS2_h [0x90c92f+0x36f]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
        ZN4Foam8fvMatrixIdE15solveSegregatedERKNS_10dictionaryE [0x65ef1c17+0x127]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libfiniteVolume.dll
        (No symbol) [0x42d551]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simplefoam.exe
        (No symbol) [0x42d84c]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simplefoam.exe
        (No symbol) [0x44e342]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simplefoam.exe
        (No symbol) [0x4013f7]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simplefoam.exe
        (No symbol) [0x40152b]
                module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\simplefoam.exe
        BaseThreadInitThunk [0x7ff82de57bd4+0x14]
                module: C:\WINDOWS\System32\KERNEL32.DLL
        RtlUserThreadStart [0x7ff82e02ce51+0x21]
                module: C:\WINDOWS\SYSTEM32\ntdll.dll

I don't understand why the simulation crashes, while if i do the same mesh with snappyhexmesh (nothing else changes), the calculation runs. I've linked the files so may someone could tell me what is going on ...

SimonStar May 6, 2020 08:30

Do you have the boundarys right?
You need two empty Boundarys in a 2D-Mesh.

Elboy May 6, 2020 08:37

Can you explain me why I need two ? I based my simulation on the ones from the tutorials, I let the files in attached so you might be sure if that's the mistake I made (I'm quite new to OpenFOAM)

HPE May 6, 2020 16:28

imho, not enough info to reproduce or understand the issue.

cnsidero May 7, 2020 09:05

Renumber the mesh and it will run:

Code:

renumberMesh -constant -overwrite


All times are GMT -4. The time now is 21:56.