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

I get "segmentation fault (core dumped)" error running on tutorial.

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

Like Tree1Likes
  • 1 Post By HPE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2020, 13:08
Post I get "segmentation fault (core dumped)" error running on tutorial.
  #1
New Member
 
Said
Join Date: Feb 2020
Location: Türkiye
Posts: 5
Rep Power: 2
saidc. is on a distinguished road
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
Attached Images
File Type: jpg image1-mesh.jpg (79.3 KB, 4 views)
saidc. is offline   Reply With Quote

Old   February 12, 2020, 18:17
Default
  #2
HPE
Senior Member
 
Herpes Free Engineer
Join Date: Sep 2019
Posts: 298
Rep Power: 3
HPE is on a distinguished road
Setup problem, very likely.

Reduce time-step 100 times, or do use adjustableTimeStep.
saidc. likes this.
__________________
Kind regards,
HPE

The OpenFOAM community is the biggest contributor to OpenFOAM; not person A or B. Let's report bugs or issue feature requests in GitLab-OpenFOAM.

Please `design` your questions well. Such effort always pays off well for inquirers and `helpmate`s:
How to create a Minimal, Reproducible Example,
How to give enough info to get help.
HPE is offline   Reply With Quote

Old   February 13, 2020, 13:56
Default
  #3
New Member
 
Said
Join Date: Feb 2020
Location: Türkiye
Posts: 5
Rep Power: 2
saidc. is on a distinguished road
Quote:
Originally Posted by HPE View Post
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.
saidc. is offline   Reply With Quote

Reply

Tags
error, mesh 2d, openfaom-7, salome mesh

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
Segmentation Fault (Core dumped) sihaqqi OpenFOAM Running, Solving & CFD 16 January 20, 2017 16:02
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 03:01
Segmentation fault (core dumped) in Axial_Rotor_MRF sam.ho OpenFOAM Running, Solving & CFD 0 March 17, 2014 02:42
Segmentation fault (core dumped) when changing pressure BC jptorol OpenFOAM Running, Solving & CFD 0 September 25, 2013 19:05
Segmentation Fault w/ compiled OF 2.2.0 - motorBike example sudo OpenFOAM Running, Solving & CFD 3 April 2, 2013 18:27


All times are GMT -4. The time now is 10:16.