CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   [groovyBC] Error at the beginning of a simulation (http://www.cfd-online.com/Forums/openfoam/74244-groovybc-error-beginning-simulation.html)

piprus March 27, 2010 12:50

[groovyBC] Error at the beginning of a simulation
 
Hi,

New question concerning proper installation of a groovyBC. I have some strange situation here and maybe some of you know what it is.

So, when I'm trying to run the simulation, using groovyBC, then I get something like below:

Code:

#0  Foam::error::printStack(Foam::Ostream&) in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so"
#1  Foam::sigFpe::sigFpeHandler(int) in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so"
#2  ?? in "/lib/libc.so.6"
#3  Foam::divide(Foam::Field<double>&, double const&, Foam::UList<double> const&) in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so"
#4  Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(Foam::dimensioned<double> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/compressibleInterFoam"
#5  main in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/compressibleInterFoam"
#6  __libc_start_main in "/lib/libc.so.6"
#7  _start at /build/buildd/eglibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:116
Floating point exception

Of course I've put a line in a controlDict:
Code:

libs ( "libOpenFOAM.so" "libgroovyBC.so" ) ;
but it doesn't work.

I feel that probably I made something wrong during the "installation" of groovyBC on my machine. Is it all right, that the path to the groovy library is:
Code:

./OpenFOAM/piotr-1.6.x/lib/linux64GccDPOpt/libgroovyBC.so
instead of:
Code:

./OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/
Is it ok?

elliot_hfx March 27, 2010 18:30

Quote:

Originally Posted by piprus (Post 251972)
Hi,
Code:

./OpenFOAM/piotr-1.6.x/lib/linux64GccDPOpt/libgroovyBC.so
instead of:
Code:

./OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/
Is it ok?


I think it is OK. Generally, we should put library in our own directory. Did you run the demo case in groovyBC package?

Elliot

piprus March 27, 2010 18:35

Quote:

Originally Posted by elliot_hfx (Post 251989)
Did you run the demo case in groovyBC package?

Elliot


Good point, I have to check it...

---------
OK I checked that. I ran the average-t-junction case and it crashed after the step t=0.429104 and just before calculating deltaT of the next step:
Code:

Courant Number mean: 2.06335e+30 max: 6.04513e+31
#0  Foam::error::printStack(Foam::Ostream&) in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so"
#1  Foam::sigFpe::sigFpeHandler(int) in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so"
#2  ?? in "/lib/libc.so.6"
#3  Foam::Time::adjustDeltaT() in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so"
#4  main in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/pimpleFoam"
#5  __libc_start_main in "/lib/libc.so.6"
#6  _start at /build/buildd/eglibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:116
Floating point exception

So there is a problem for sure, but this time different (only first 3 lines are exactly the same) than before, even though stinks the same...
--------
This time I ran wobbler. The simulation went smoothly without any errors and the results looks quite nice in ParaView. Strange

gschaider March 29, 2010 14:24

Quote:

Originally Posted by piprus (Post 251972)
Hi,

New question concerning proper installation of a groovyBC. I have some strange situation here and maybe some of you know what it is.

So, when I'm trying to run the simulation, using groovyBC, then I get something like below:

Code:

#0  Foam::error::printStack(Foam::Ostream&) in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so"
#1  Foam::sigFpe::sigFpeHandler(int) in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so"
#2  ?? in "/lib/libc.so.6"
#3  Foam::divide(Foam::Field<double>&, double const&, Foam::UList<double> const&) in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libOpenFOAM.so"
#4  Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(Foam::dimensioned<double> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/compressibleInterFoam"
#5  main in "/home/piotr/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/compressibleInterFoam"
#6  __libc_start_main in "/lib/libc.so.6"
#7  _start at /build/buildd/eglibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:116
Floating point exception


There is no place in the stack-trace that says "groovyBC" so the problem didn't happen during the execution of groovyBC. Nevertheless it is possible that you used groovyBC to set something to 0 that shouldn't be 0 (the stack-trace indicates division by 0). But that is something groovyBC cannot be held responsible for

Bernhard

piprus March 30, 2010 13:42

Quote:

Originally Posted by gschaider (Post 252170)
There is no place in the stack-trace that says "groovyBC" so the problem didn't happen during the execution of groovyBC. Nevertheless it is possible that you used groovyBC to set something to 0 that shouldn't be 0 (the stack-trace indicates division by 0). But that is something groovyBC cannot be held responsible for

Bernhard

Bernhard is right, this error is simply due to my lack of knowledge. Sorry Bernhard... and thanks for all hints.


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