(Hokusai, The Great Wave off Kanagawa, 1823)
Let's consider a two-dimensional medium consisting of particles moving by inertia, without intersection and in the absence of external forces. Denote
The resulting equation describing the evolution of the velocity field of non - interacting particles is called Hopf equation
The analytical solution of Hopf equation
The analytical solution of Hopf equation can be determined by method of characteristics:
where,
It is necessary to invert the map
The solution of the Hopf equation can be easily analyzed. According to the solution, each point of the velocity profile moves with its own (constant) velocity.
In this case, the velocity profile will be deformed since faster particles will overtake the slower ones. As a result, the shape is steeper, and at time
where
is the Jacobian of
This minimum corresponds to the point x* (the breaking point). From this, it is clear that the overturning occurs for the initial profiles with a negative derivative
Model description
We study the Hopf equation with following limits: 0 < t < 1 , -5 < x < 10, and the initial condition:
Using the the analytical solution of this problem is represented by the following formula:

The overturning effect at which
We use Newton's method for two different numerical schemes (Lax-Friedrichs and MacCormack schemes) to solve the Hopf equation with the following limits and the initial condition.
Newton's method (Newton-Raphson method) is an iterative numerical method for finding the root of a given function [3, 4]. The search for a solution is carried out by constructing successive approximations based on simple iteration principles.
Description
To numerically solve the Eq. 10, by simple iteration it must be reduced to the equivalent expression Eq. 11.
where,
is used for the best convergence of the method at the next approximation point
that implies:
Assuming that the point of approximation is "close enough" to the root
The final formula for
The function
Algorithm
The algorithm for Newtons method can be described as follows:
-
Set the initial approximation
$y_0$ -
Until the stop condition is met, which can be taken as
$|y_{n+1}-y_{n}|<\epsilon$ , the error is within the required limits, calculate a new approximation:
We utilize Lax - Friedrichs and MacCormack numerical schemes using Newton's method to determine the numerical solution.
Lax - Friedrichs
The Lax-Friedrichs scheme is defined in numerical analysis as a method for the numerical solution of hyperbolic partial differential equations based on the finite difference method [5].
Extensions to Nonlinear Problems
The formula defines the hyperbolic system of one-dimensional conservation laws:
A generalization of the Lax - Friedrichs scheme to nonlinear systems can be expressed in the following form:
Lax - Friedrichs numerical scheme can be used to construct higher-order schemes for solving systems of hyperbolic partial differential equations, in the same way that Euler's method is used to construct more accurate Runge-Kutta method for solving ordinary differential equations [6].
This scheme can be written in a conservative form:
The Lax - Friedrichs scheme is explicit and has approximation error is
MacCormack scheme
Difference schemes "predictor-corrector"
Predictor-corrector schemes are a family of methods related to algorithms designed to integrate ordinary differential equations [7, 8]. All such techniques involve two steps [9]:
-
At the first step (predictor), some function is determined from values calculated in the previous step to get the approximated value of the desired function in the following point.
-
At the second step (corrector), the received approximation using the predicted value function and another operator to interpolate the value desired position at the same point.
The following steps can represented as the following expressions:
where,
Methods using the predictor-corrector scheme:
-
Milne method for ODE.
-
Heun method (predictor - Euler's method, corrector - Trapezium method).
-
Adams-Bashforth method for solutions non-rigid boundary value problems (the Adams-Bashforth-Moulton corrector is used).
-
MacCormack method.
MacCormack method
The MacCormack method is a modified two-step scheme Lax - Wendroff, but it is much easier to use [10]. Consider the following first-order hyperbolic equation:
Predictor: At this step, the predicted value of
Corrector: At this step, the predicted value
Note that the intermediate value
The MacCormack scheme is often used due to a number of its advantages [11]. In particular, it operates only with quantities in the primary grid nodes and can be easily generalized to multidimensional problems. Also, this is the schematic second-order accuracy.
Lax - Friedrichs scheme
We convert the Hopf equation into the divergent form:
and using Eq. 21 we can get the Lax - Friedrichs numerical scheme:
where
We studied the solution of the Hopf equation for different values of time:
The Fig. 2 shows the 3D numerical solution of the Hopf equation for
MacCormack scheme
Similarly, as in the previous numerical scheme, we used the divergent form of the differential equation. We calculate the predictor using the following formula:
Later, to determine the corrector, the predicted value of the function we approximated using the following formula:
The Fig. 3 shows the 3D numerical solution of Hopf equation using MacCormack scheme. In the same way as in the Lax - Friedrichs scheme, numerical solutions were constructed for different values of time
References
[1] Kuznetsov, E., and Shapiro, D., 2011. “Methods of mathematical physics: a course of lectures”. Novosibirsk State University.
[2] Kuznetsov, E., and Mikhailov, E., 2022. “Slipping flows and their breaking”. Annals of Physics,p. 169088.
[3] Mor ́e, J. J., and Sorensen, D. C., 1982. Newton’s method. Tech. rep., Argonne National Lab., IL (USA).
[4] Polyak, B. T., 2007. “Newton’s method and its use in optimization”. European Journal of Operational Research, 181(3), pp. 1086–1096.
[5] DuChateau, P., and Zachmann, D. W., 2002. Applied partial differential equations. Courier Corporation.
[6] CHU, C., 1978. Numerical methods in fluid dynamics, in “advances in applied mechanics”(cs. yih, ed.), vol. 18.
[7] Zhang, P.-G., and Wang, J.-P., 2012. “A predictor - corrector compact finite difference scheme for burgers’ equation”. Applied Mathematics and Computation, 219(3), pp. 892–898.
[8] Butcher, J. C., 2016. Numerical methods for ordinary differential equations. John Wiley & Sons.
[9] Press, W., Teukolsky, S., Vetterling, W., and Flannery, B., 2007. “Section 17.6. multistep, multivalue, and predictor-corrector methods”. Numerical Recipes: The Art of Scientific Computing.
[10] Anderson, J. D., and Wendt, J., 1995. Computational fluid dynamics, Vol. 206. Springer.
[11] Hixon, R., and Hixon, R., 1997. “On increasing the accuracy of maccormack schemes for aeroacoustic applications”. In 3rd AIAA/CEAS Aeroacoustics Conference, p. 1586.




































