ConceptPythonIntermediate Finite volumes: why a conservation law is solved by bookkeeping the fluxes return 1 - 0.375 * (np.tanh((x - 0.80) / 0.02) - np.tanh((x - 1.00) / 0.08))
ToolPythonAdvanced Fourier spectral method for KdV: two solitons pass through each other S, tau = 1 / np.cosh(a * x)**2, np.tanh(a * x)
ToolPythonIntermediate findiff.PDE with mixed boundary conditions: seepage under a dam m = np.tanh(np.pi * B / (4 * depth))**2