Error in calculating the function of Berger’s equations
#burger def solve_burgers(X, t, nu): def f(y): return torch.exp(-torch.cos(np.pi * y) / (2 * np.pi * nu)) def g(y): return np.exp(-(y**2) / (4 * nu * t)) def fun(eta): return torch.sin(np.pi * (x – eta)) * f(x – eta) * g(eta) def fun1(eta): return f(x – eta) * g(eta) U = np.zeros_like(X) for i in […]