Closed rwest closed 14 years ago
RMG-Java doesn't pass to Fame the endpoints of the Chebyshev fit, just the grid points (which don't go all the way to the end). Fame thus doesn't know how to scale T and P and does so incorrectly using the max and min grid points. This leads to a reduced P or T that is 1.000 (instead of 0.8 or something). Numerical errors can cause this to be something like 1.00000000000004 which then leads to a NaN in the fit calculation.
PDep: Fixed bug in Chebyshev polynomial fitting in FAME.
FAME was not using the correct minimum and maximum values in the range, as the Gauss-Chebyshev grid points are placed such that the endpoints of Tlist and Plist are not the same as the valid range (Tmin, Tmax) and (Pmin, Pmax). In order to do this correctly, I modified RMG to pass the correct minimum and maximum temperatures and pressures to FAME, and modified FAME to use these for the Chebyshev polynomial fitting.
This was noticed due to a roundoff error observed when FAME tried to use the minimum and maximum temperatures/pressures from the grid as the Chebyshev endpoints, due to chebyshev polynomials being stricly undefined outside of the range [-1, 1]. This commit avoids this issue because the grid endpoints are sufficiently far from +1 and -1 so that roundoff can't hurt anything.
Closed by e12a32f8a1c590973f4350e1d827c35fee5f40d4.
Excellent. Thanks Josh. Rebase to 3.2.x?
This seems to occur at high temperatures.
End of the RMG log file:
End of the fame.log file: