CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   sigSEGV error + custom boundary condition in OF 2.3.0 (https://www.cfd-online.com/Forums/openfoam-programming-development/145339-sigsegv-error-custom-boundary-condition-2-3-0-a.html)

bharat.gmail December 3, 2014 05:00

sigSEGV error + custom boundary condition in OF 2.3.0
 
Dear All FOAMers.

I am new to OF and am currently working on modifying an existing solver to suit my requirements. IN this work I have made few custom boundary conditions. While wmaking them there is no error however when I run the application on a test case I get following error.

Code:

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigSegv::sigHandler(int) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2  in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::GeometricBoundaryField(Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField const&) in "/root/OpenFOAM/root-2.3.0/platforms/linux64GccDPOpt/bin/impesFoam"
#4  Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&) in "/root/OpenFOAM/root-2.3.0/platforms/linux64GccDPOpt/bin/impesFoam"
#5 
 in "/root/OpenFOAM/root-2.3.0/platforms/linux64GccDPOpt/bin/impesFoam"
#6  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7 
 in "/root/OpenFOAM/root-2.3.0/platforms/linux64GccDPOpt/bin/impesFoam"
Segmentation fault (core dumped)

After reading other threads similar to my problem I understood that perhaps this is due to my custom B.C's. But I am unable to sort out the problem myself. Thus I request your kind help to solve this problem.

Regards,

Bharat

Tushar@cfd December 19, 2014 06:52

Quote:

Originally Posted by bharat.gmail (Post 522249)
Dear All FOAMers.

I am new to OF and am currently working on modifying an existing solver to suit my requirements. IN this work I have made few custom boundary conditions. While wmaking them there is no error however when I run the application on a test case I get following error.

Code:

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigSegv::sigHandler(int) in "/opt/openfoam230/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2  in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::GeometricBoundaryField(Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField const&) in "/root/OpenFOAM/root-2.3.0/platforms/linux64GccDPOpt/bin/impesFoam"
#4  Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&) in "/root/OpenFOAM/root-2.3.0/platforms/linux64GccDPOpt/bin/impesFoam"
#5 
 in "/root/OpenFOAM/root-2.3.0/platforms/linux64GccDPOpt/bin/impesFoam"
#6  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7 
 in "/root/OpenFOAM/root-2.3.0/platforms/linux64GccDPOpt/bin/impesFoam"
Segmentation fault (core dumped)

After reading other threads similar to my problem I understood that perhaps this is due to my custom B.C's. But I am unable to sort out the problem myself. Thus I request your kind help to solve this problem.

Regards,

Bharat

Dear Bharat,

Can you please detail your case (solver, case directory etc.)? which custom boundaries you use? At this moment you left it on foamer's to guess.

-
Best Regards!

bharat.gmail December 19, 2014 07:58

Quote:

Originally Posted by Tushar@cfd (Post 524663)
Dear Bharat,

Can you please detail your case (solver, case directory etc.)? which custom boundaries you use? At this moment you left it on foamer's to guess.

-
Best Regards!

Hi tushar. Thanks for your reply. I have solved this error but I am facing same error at another place. I have detailed everything about it in my new thread.

http://www.cfd-online.com/Forums/ope...need-help.html


Please help me in that.

Thanks & Regards,

Bharat


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