CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Error trying to access a variable (http://www.cfd-online.com/Forums/openfoam-programming-development/68548-error-trying-access-variable.html)

ziooscuro September 23, 2009 11:43

Error trying to access a variable
 
Hello people,
I have a quite strange problem... i had a working (till last week at least) solver, than i decide to upgrade the version......it compiles properly, the problem is that when i run a case (a case who was also running with the previous implementation) i get a segmentation error:

1#0 Foam::error::printStack(Foam::Ostream&) in "/nfs/home/bruno/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/nfs/home/bruno/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 ?? in "/lib64/libc.so.6"
#3 main in "/nfs/home/bruno/OpenFOAM/bruno-1.5/applications/bin/linux64GccDPOpt/evoluzione"
#4 __libc_start_main in "/lib64/libc.so.6"
#5 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in "/nfs/home/bruno/OpenFOAM/bruno-1.5/applications/bin/linux64GccDPOpt/evoluzione"


I run a LES simulation, and the problem occurs when i try to access the filter width in the line:

const volScalarField delta= turbulence->delta() ;

of course in my createFields there is:

Info << "Creating turbulence model.\n" << nl;
autoPtr<compressible::LESModel> turbulence
(
compressible::LESModel::New
(
rho,
U,
phi,
thermo()
)
);

I have no idea what's wrong.... any suggestion??
Thanks a lot
Danilo


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