CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] ParaFoam Segmentation Fault (https://www.cfd-online.com/Forums/paraview/138552-parafoam-segmentation-fault.html)

dancfd July 6, 2014 14:43

ParaFoam Segmentation Fault
 
Hello all,

I have a problem loading a case in paraFoam; when I run the paraFoam command from the case directory, paraView opens, but once I click "apply" to load the geometry (even if I de-select all of the patches and all of the fields) paraView crashes with the following error in terminal:

Code:

--> FOAM FATAL IO ERROR:
incorrect first token, expected <int> or '(', found on line 19 the label 77680

file: /home/daniel/OpenFOAM/daniel-2.1.1/run/cases/varFS/rep_002c5_a_longer/constant/polyMesh/points at line 19.

    From function operator>>(Istream&, List<T>&)
    in file /opt/openfoam211/src/OpenFOAM/lnInclude/ListIO.C at line 149.

FOAM exiting

Segmentation fault

Strangely, I have another case with the same mesh that was just run for less time, and it loads without this error. I also generated the mesh separately and was able to load it in paraFoam without the error. I then copied the /constant/polyMesh folder from one of the working cases into the directory of the case that gives the error, but the error persists. This suggests to me the error must be caused by interaction with something other than the mesh file. ControlDict? Maybe the time files?

I would appreciate any advice anyone could offer.

Thanks!

Daniel

------

Versions:
OF 2.3.0
ParaView 4.1.0

dancfd July 7, 2014 20:38

Hello all,

It looks like the problem was with controlDict. There was an invalid link to a library, leftover from another case. The case would still run (with warnings), but paraFoam could not handle it evidently. So others can learn from my mistake, the offending line in controlDict was:

Code:

libs ("libtimeVaryingUniformInletOutlet.so");
which was rectified by commenting it out:

Code:

//libs ("libtimeVaryingUniformInletOutlet.so");
Regards,

Daniel


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