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/)
-   -   I get "segmentation fault (core dumped)" error running on tutorial. (https://www.cfd-online.com/Forums/openfoam-solving/224122-i-get-segmentation-fault-core-dumped-error-running-tutorial.html)

saidc. February 7, 2020 12:08

I get "segmentation fault (core dumped)" error running on tutorial.
 
1 Attachment(s)
Hi i am newbie in openfoam, i did draw a simple geometry in solidworks, i did mesh it with salome 8.4 NETGEN 1D-2D-3D (Image 1) and i saved it as a UNV file. Then i import openfoam7 with ideasUnvToFoam utility and i reorganize my boundarys like below downside. When i checkMesh there isn't any error but when i run my case with icoFoam i get the error which below downside. At first, code running like 5-10 second. How can i fix this, any suggestion?


(This case based on, incompressible/icoFoam/elbow tutorial.)


Code:

//boundary conditions

6
(
    wall-8
    {
        type            wall;
        inGroups        List<word> 1(wall);
        nFaces          1424;
        startFace      210272;
    }
    wall-4
    {
        type            wall;
        inGroups        List<word> 1(wall);
        nFaces          892;
        startFace      231346;
    }
    velocity-inlet-5
    {
        type            patch;
        nFaces          708;
        startFace      229924;
    }
    velocity-inlet-6
    {
        type            patch;
        nFaces          894;
        startFace      232238;
    }
    pressure-outlet-7
    {
        type            patch;
        nFaces          714;
        startFace      230632;
    }
    frontAndBackPlanes
    {
        type            empty;
    inGroups        List<word> 1(empty);
        nFaces          18228;
        startFace      211696;
    }
 )

Code:

//U file

dimensions      [0 1 -1 0 0 0 0];

internalField  uniform (0 0 0);

boundaryField
{
    wall-4
    {
        type            noSlip;
    }

    velocity-inlet-5
    {
        type            fixedValue;
        value          uniform (1 0 0);
    }

    velocity-inlet-6
    {
        type            fixedValue;
        value          uniform (0 3 0);
    }

    pressure-outlet-7
    {
        type            zeroGradient;
    }

    wall-8
    {
        type            noSlip;
    }

    frontAndBackPlanes
    {
        type            empty;
    }
}

Code:

//p file

dimensions      [0 2 -2 0 0 0 0];

internalField  uniform 0;

boundaryField
{
    wall-4
    {
        type            zeroGradient;
    }

    velocity-inlet-5
    {
        type            zeroGradient;
    }

    velocity-inlet-6
    {
        type            zeroGradient;
    }

    pressure-outlet-7
    {
        type            fixedValue;
        value          uniform 0;
    }

    wall-8
    {
        type            zeroGradient;
    }

    frontAndBackPlanes
    {
        type            empty;
    }
   
}

Code:

//HERE MY ERROR.

Time = 0.05

Courant Number mean: 0 max: 0
smoothSolver:  Solving for Ux, Initial residual = 1, Final residual = 0.00196218, No Iterations 1000
smoothSolver:  Solving for Uy, Initial residual = 1, Final residual = 0.00416482, No Iterations 1000
DICPCG:  Solving for p, Initial residual = 1, Final residual = 0.0497356, No Iterations 213
DICPCG:  Solving for p, Initial residual = 0.782642, Final residual = 0.0341562, No Iterations 3
DICPCG:  Solving for p, Initial residual = 0.070055, Final residual = 0.00346525, No Iterations 5
time step continuity errors : sum local = 1.79148, global = 0.00113881, cumulative = 0.00113881
DICPCG:  Solving for p, Initial residual = 0.0682077, Final residual = 0.00264397, No Iterations 6
DICPCG:  Solving for p, Initial residual = 0.0310689, Final residual = 0.00152218, No Iterations 121
DICPCG:  Solving for p, Initial residual = 0.772304, Final residual = 9.9493e-07, No Iterations 349
time step continuity errors : sum local = 0.000287421, global = 1.15992e-05, cumulative = 0.00115041
ExecutionTime = 52.03 s  ClockTime = 53 s

Time = 0.1

Courant Number mean: 68.3095 max: 906.024
smoothSolver:  Solving for Ux, Initial residual = 0.689452, Final residual = 0.000668878, No Iterations 1000
smoothSolver:  Solving for Uy, Initial residual = 0.684486, Final residual = 0.00454059, No Iterations 1000
DICPCG:  Solving for p, Initial residual = 0.899822, Final residual = 0.0445746, No Iterations 195
DICPCG:  Solving for p, Initial residual = 0.77014, Final residual = 0.0339018, No Iterations 3
DICPCG:  Solving for p, Initial residual = 0.069489, Final residual = 0.00337637, No Iterations 5
time step continuity errors : sum local = 87.715, global = -0.219588, cumulative = -0.218437
DICPCG:  Solving for p, Initial residual = 0.0654891, Final residual = 0.00323916, No Iterations 34
DICPCG:  Solving for p, Initial residual = 0.0920922, Final residual = 0.0039362, No Iterations 3
DICPCG:  Solving for p, Initial residual = 0.0141694, Final residual = 9.06831e-07, No Iterations 325
time step continuity errors : sum local = 0.023235, global = 0.000305516, cumulative = -0.218132
ExecutionTime = 104.26 s  ClockTime = 105 s

Time = 0.15

Courant Number mean: 6069.46 max: 137339
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::symGaussSeidelSmoother::smooth(Foam::word const&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::Field<double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, unsigned char, int) at ??:?
#4  Foam::symGaussSeidelSmoother::smooth(Foam::Field<double>&, Foam::Field<double> const&, unsigned char, int) const at ??:?
#5  Foam::smoothSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#6  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/icoFoam"
#7  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/icoFoam"
#8  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/icoFoam"
#9  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/icoFoam"
#10  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/icoFoam"
segmentation fault (core dumped) //i translate here in my language to english


HPE February 12, 2020 17:17

Setup problem, very likely.

Reduce time-step 100 times, or do use adjustableTimeStep.

saidc. February 13, 2020 12:56

Quote:

Originally Posted by HPE (Post 757941)
Setup problem, very likely.

Reduce time-step 100 times, or do use adjustableTimeStep.


Thanks for reply, HPE. I solved my problem by doing decrease deltaT value to 0.0001 and decrease nu value to 0.0001.


All times are GMT -4. The time now is 05:22.