error - Foam::sigFpe::sigHandler(int) at ??:?
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 ??:? Best regards, Ayla |
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 |
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 |
All times are GMT -4. The time now is 04:03. |