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/)
-   -   Segmentation Fault (Core dumped) (https://www.cfd-online.com/Forums/openfoam-solving/115251-segmentation-fault-core-dumped.html)

sihaqqi March 27, 2013 00:38

Segmentation Fault (Core dumped)
 
Hi

In my case, flow enters a pipe in +Y direction and turns at 90 degrees in +X direction. Flow is turbulent and Reynold's number is 3x10e5. Medium is air. When I type simpleFoam, after 50 iterations, terminal gives message "segmentation fault (core dump)". I have also tried to change value of inlet and outlet in nut from 0 to 0.0001 but to no avail. Please advise how to rectify this error.

Regards

msuaeronautics March 27, 2013 11:24

Did you check to see if there may be any meshing errors?

sihaqqi March 27, 2013 17:26

it is not giving me the type of error. i made my geometry and meshing in ansys. in fluent it was working fine, but this is my MS project and according to my supervisor, i have to work in openfoam. how can i determine the type of error. does ubuntu use any particular software for this or are there any special commands to track the source.

this is my first time with openfoam so i am a bit struggling.

thanks for response.

sihaqqi March 27, 2013 17:28

1 Attachment(s)
Thanks for the response.

It is not giving me the source of error. I made my geometry and meshing in ansys. In fluent it was working fine, but this is my MS project and according to my supervisor, I have to work in openfoam. How can i determine the type of error. does ubuntu use any particular software for this or are there any special commands to track the source.

This is my first time with openfoam so i am a bit struggling. error image is attached. complete case is at this address

http://www.4shared.com/archive/U267rBPa/90mitretar.html

Regards

JimKnopf March 28, 2013 08:23

Maybe the problem is due to the bounding of epsilon. What BC did you use for the epsilon equation?

Did you already make a checkmesh run? Do you have non-orthogonal or higly skewed cells in your mesh. Fluent has much more "dark magic" in its solvers so they are more robust to bad meshes.

have you already tried to start the simulation from a potentialFoam run?


Greetz,
Jim

Maybe you should reproduce your mesh with BlockMesh, this ensures a better mesh quality

sihaqqi March 28, 2013 09:04

2 Attachment(s)
Hello Jim

checkMesh results are attached. blockMesh is valid only if there is a blockMesh dict. I used Ansys DesignModeler for geometry and Meshing. Anyways, checkMesh results are good as in the image.

My complete case is at http://rapidshare.com/files/83104833/90mitre.tar.gz should you want to check it.

I have only used simpleFoam
epsilon value is 862.132 as mean free stream velocity is 75.5m/s

What do you mean by bounding of epsilon. For BC, please refer to my calculation sheet. I am a beginner level openFoam user so I am still learning basic stuff.

Thanks for your response. I appreciate it.

Regards

JimKnopf March 29, 2013 18:32

Hi Sihaqqi

The checkMesh looks OK.

But in the screenshot of the log (first post), there is a line, Bounding of epsilon. This might be the cause of the segmentation fault.

If your case is a pipe, then you should give potentialFoam a try for a starting solution. Just run potentialFoam and afterwards simpleFoam.
This might reduce Gradients and there make it more easy for the solver to iterate a steady and stable solution.

I tried download your case but you have denied download permission, so I couldn't. If you grant download access i can have a look at your case.

Greetz
Jim

msuaeronautics March 30, 2013 00:21

sihaqqi,

I wonder if using linearUpwind for epsilon will help this, or any other bounded scheme. I have had a similar issue before and a scheme change always helped in this situation.

sihaqqi March 30, 2013 00:54

msuaeronautics

thanks, i am trying to find where and how to change schemes as I am only a beginner with OpenFoam. I shall go through some documentation in OpenFoam and if I can find a tutorial, I shall run and advise you on the result

Jim, I am also trying to implement your advise from motorbike tutorial and as a result I have made a new omega file and made some modifications in fvsolution file but still I cannot run first potentialFoam and then simpleFoam. In fact it is giving strange errors which means I have not implemented conditions properly. The files I have uploaded on links I have given above does not contain omega and fvschemes changed file. It still contain the same files. Perhaps you may want to have a look at them as I have discovered how to give public access on both links. If you have any tutorial in pdf which advise the whole thing, I can try at my end.

Many thanks to you both for your precious time.

Regards

JimKnopf March 30, 2013 07:35

Hi there,

i got your case running, although bounding of epsilon is still active. Anyways,
what I did was to initialize with potentialFoam - if you like to call it this way. You need to add a potentialFoamdict to your fvSolutions

Code:

potentialFlow
{
  nNonOrthogonalCorrectors 10;
}

and also a laplacian term to fvSchemes
Code:

laplacian(1,p) Gauss linear corrected;
additionally I reduced relaxation factors for k and epsilon to 0.5 (you find them in the fvSolutions as well)

then it was running on my computer, or is still running :)

I have another hint on your case, I think you should definitly refine the mesh around the bend. This is a sharp corner and you definitly get separation behind it.

Maybe you can think of a scaled Version of your case, then it wouldn't need so much computational power.

HTH, greetz,
Jim

p.s.: I didn't use the powerlaw BC, just a fixedValue, but I think it should work anyway

sihaqqi March 30, 2013 19:45

thanks Jim but it is the powerLawVelocity profile which is creating trouble. I intend to refine mesh considerably once I see that this profile which is 1/7th power Law is working alright as the next step is LES. I shall give you a background of the project.

My project is tee junction and turbulence around it. The reason why my supervisor has advised me to do the elbow is because it is half and has symmetry. Once I will do tee junction, another 4m leg shall be added on the other side and geometry will not be symmetry but full circular pipe which means cells will be 4x what they will be in a refined mesh. You are correct and I shall have to go for very refined mesh but at this stage I need to get this velocity profile working in smaller time as compared to what it would be in a refined mesh. Right now I have 125000 cells. My other refined mesh which I made for same geometry has 850,000 cells but it requires more time to get these errors or results. Once I make a tee with circular pipe it shall be more than 2 million. This is the first phase of my MS by research project. I must get velocity profile working. I shall reduce vertical upstream leg to reduce computations as I can have developed flow in smaller dimensions.
Second phase of the project include frequency measurement of forces and vibrations those forces are creating. Excessive vibrations at tee junctions are a constant issue and sometimes hairline cracks happen.
I have again tried with what you have said and result is still same except for the fact that bounding of epsilon has removed but segmentation failure is there. Thanks for all your support.

kgmenit June 30, 2016 03:04

segmentation core dumped
 
Hello dear all,
I am beginner in OpenFOAM and facing a very trivial problem of segmentation core dumped issue, even after 2-3 days i am not able to resolve this. If any one of you can help me, i will highly thankful. I am posting my pic of terminal..
sudhir@sudhir:~$ cd OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike/
sudhir@sudhir:~/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike$ ls
0.org 500 Allclean Allrun constant postProcessing processor0 system
sudhir@sudhir:~/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike$ ./Allrun
Running surfaceFeatureExtract on /home/sudhir/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike
Running blockMesh on /home/sudhir/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike
Running decomposePar on /home/sudhir/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike
Running snappyHexMesh in parallel on /home/sudhir/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike using 6 processes
Running patchSummary in parallel on /home/sudhir/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike using 6 processes
Running potentialFoam in parallel on /home/sudhir/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike using 6 processes
Running simpleFoam in parallel on /home/sudhir/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike using 6 processes
Running reconstructParMesh on /home/sudhir/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike
Running reconstructPar on /home/sudhir/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike
sudhir@sudhir:~/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike$ paraFoam
created temporary 'motorBike.OpenFOAM'


--> FOAM FATAL IO ERROR:
cannot find file

file: /home/sudhir/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike/system/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

Segmentation fault (core dumped)
sudhir@sudhir:~/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike$
Thanks in advance

MBttR June 30, 2016 05:12

What is your folder structure? It seems to look for controlDict in motorBike/system/system, while this should just be motorBike/system.

Saran16 December 6, 2016 06:17

Hii
My problem is am using a laminar flow inside a rectangular duct in simplefoam. after 15 iteration am getting a error message as floating point error core dumped :confused: how can i rectify it....

somebody help me with it.


:)Thank you

KarenRei December 6, 2016 10:51

Quote:

Originally Posted by Saran16 (Post 628475)
Hii
My problem is am using a laminar flow inside a rectangular duct in simplefoam. after 15 iteration am getting a error message as floating point error core dumped :confused: how can i rectify it....

somebody help me with it.


:)Thank you


Could be almost anything. What's your max courant number? Any checkMesh errors? Have you tried running in a debug build of OpenFOAM and looking up what the program is doing when it crashes?

Saran16 December 9, 2016 07:27

hai karenRei thank you for replying there is no checkmesh and the error message is

error printstack
error solve sergregation

mom January 20, 2017 15:02

Hi guys,
I think this problem can be rise even regardless of your case. I am running OF on a virtual machine and even when I type "foamList -list" in terminal, after showing the list, this "Segmentation fault (core dumped)" error pops up. I have no clue about the reason.


All times are GMT -4. The time now is 08:48.