|
[Sponsors] |
error - Foam::sigFpe::sigHandler(int) at ??:? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 21, 2014, 12:43 |
error - Foam::sigFpe::sigHandler(int) at ??:?
|
#1 |
Senior Member
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 13 |
Dear Foamers,
I try to compute the turbulence intensity (utiliy) and receive an error: I've tried: Code:
Tu = sqrt(0.3 *mag(Rxx + Ryy + Rzz))/sqrt(sqr(U.component(0))+sqr(U.component(1))+sqr(U.component(2))); Code:
Tu = sqrt(0.3 *mag(Rxx + Ryy + Rzz))/sqrt(mag(sqr(U.component(0))+sqr(U.component(1))+sqr(U.component(2)))); Code:
#0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 in "/lib64/libc.so.6" #3 Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:? #4 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) at ??:? #5 at ??:? #6 __libc_start_main in "/lib64/libc.so.6" #7 at /home/abuild/rpmbuild/BUILD/glibc-2.18/csu/../sysdeps/x86_64/start.S:125 Best regards, Ayla |
|
August 25, 2014, 22:56 |
|
#2 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 17 |
Hi Ayla,
Can you be 100% sure that U is non-zero throughout the entire domain? If you want to make the evaluation more fpe-proof add a Code:
+VSMALL I hope that helps! Cheers, Kyle |
|
August 26, 2014, 13:45 |
|
#3 | |
Senior Member
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 13 |
Hi Kyle,
thanks for your answer! I think the code is wrong anyway. I've changed it accordingly: Quote:
The trace elements of R and the values of mag(U) are good but Tu = 0, why? Whereas in ParaFoam I can compute Tu with the same formula and Tu is not 0. Greetings! Ayla |
||
|
|