You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrals are evaluated one time step at a time, using the same numpy.inf upper bound for every time step. The evaluation of integral can be made more efficient by using the property: integral(f(x), x=a..c) = integral(f(x), x=a..b) + integral(f(x), x=b..c)
a = [1.0 / np.sqrt(4.0*alpha*t) for t in time]
b = [np.inf] + a[:-1]
h = np.cumsum(np.stack(
[0.5 / H2 * quad_vec(f, a[i], b[i])[0]
for i, t in enumerate(time)],
axis=-1), axis=-1)
The text was updated successfully, but these errors were encountered:
Integrals are evaluated one time step at a time, using the same
numpy.inf
upper bound for every time step. The evaluation of integral can be made more efficient by using the property:integral(f(x), x=a..c) = integral(f(x), x=a..b) + integral(f(x), x=b..c)
As an example:
pygfunction/pygfunction/heat_transfer.py
Lines 399 to 402 in 79e0198
Becomes:
The text was updated successfully, but these errors were encountered: