CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   error running potentialFoam (http://www.cfd-online.com/Forums/openfoam/91891-error-running-potentialfoam.html)

cm_jubayer August 25, 2011 15:32

error running potentialFoam
 
Hi,

I am getting the following error while running potentialFoam. Can someone please tell me the probable reason for that.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam171/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam171/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam::Ostream& Foam::operator<< <Foam::error>(Foam::Ostream&, Foam::errorManip<Foam::error>) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/potentialFoam"
#3 Foam::Istream& Foam::operator>><Foam::Vector<double> >(Foam::Istream&, Foam::List<Foam::Vector<double> >&) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/potentialFoam"
#4 Foam::Field<Foam::Vector<double> >::Field(Foam::word const&, Foam::dictionary const&, int) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/potentialFoam"
#5 Foam::fvPatchField<Foam::Vector<double> >::adddictionaryConstructorToTable<Foam::fixedValu eFvPatchField<Foam::Vector<double> > >::New(Foam::fvPatch const&, Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam171/lib/linux64GccDPOpt/libfiniteVolume.so"
#6 Foam::fvPatchField<Foam::Vector<double> >::New(Foam::fvPatch const&, Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/potentialFoam"
#7 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::GeometricB oundaryField(Foam::fvBoundaryMesh const&, Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/potentialFoam"
#8 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::readField(Foam::dictionary const&) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/potentialFoam"
#9 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::readField(Foam::Istream&) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/potentialFoam"
#10 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/potentialFoam"
#11
in "/opt/openfoam171/applications/bin/linux64GccDPOpt/potentialFoam"
#12 __libc_start_main in "/lib64/libc.so.6"
#13
in "/opt/openfoam171/applications/bin/linux64GccDPOpt/potentialFoam"
Aborted

cm_jubayer August 25, 2011 15:37

The first portion of the error...

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.7.x-3776603e4c6c
Exec : potentialFoam
Date : Aug 25 2011
Time : 15:13:51
Host : pkgst1
PID : 7636
Case : /home/sysadmin/OpenFOAM/sysadmin-1.7.1/run/tutorials/basic/potentialFoam/Solarpanels
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

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

Create mesh for time = 0

Reading field p

Reading field U



--> FOAM FATAL ERROR:
Attempt to cast type N4Foam5token8CompoundINS_4ListIdEEEE to type N4Foam5token8CompoundINS_4ListINS_6VectorIdEEEEEE

From function dynamicCast<To>(From&)
in file /home/opencfd/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/typeInfo.H at line 93.

wyldckat August 25, 2011 15:47

Greetings Jubayer,

There is some strange crazy stuff going on there, which is why it's crashing!

#2 and #3 from the 1st post indicate that it crashed when it was trying to output an error message (#2), which occurred when reading from some file (#3).
From the 2nd post, there is an error that the compiler would never have allowed to happen!
To top that, it looks like you have two versions of OpenFOAM overlapping each other! Namely 1.7.1 and 1.7.x! This should never happen... unless one knows what one is doing!

Additionally, running a tutorial that is not from the official list of tutorials will increase the probability of error! "Solarpanels" is not a tutorial from the list of tutorials distributed with OpenFOAM!

Best regards,
Bruno

cm_jubayer August 26, 2011 10:23

Hello Bruno,

Thanks for your prompt reply. That really helps.

Regards,
Jubayer

blackbirdinapie January 26, 2012 15:42

Hi, I am facing a similar problem. Did anyone solve this strange error?

--> FOAM FATAL ERROR:
Attempt to cast type N4Foam5token8CompoundINS_4ListIdEEEE to type N4Foam5token8CompoundINS_4ListINS_6VectorIdEEEEEE

cm_jubayer January 26, 2012 16:42

Hi blackbirdinapie,

potentialFoam only works if the velocity and pressure are fixedValues, not a profile. For my case, I had a velocity profile at the inlet which caused the error. Hope this helps.

Jubayer


All times are GMT -4. The time now is 14:17.