- Open Access
Variational projection of Navier-Stokes: Fluid mechanics as a quadratic programming problem
Phys. Rev. Fluids 11, 014901 – Published 12 January, 2026
DOI: https://doi.org/10.1103/w2bn-5j4h
Abstract
Gauss's principle of least constraint transforms a dynamics problem into a pure minimization problem, where the total magnitude of the constraint force is the cost function, minimized at each instant. A candidate motion whose evolution minimizes the Gaussian cost at each instant is guaranteed to satisfy Newton's equation. In other words, Newton's equation is the first-order necessary condition for minimizing the Gaussian cost, subject to the given kinematic constraints. The principle of minimum pressure gradient (PMPG) is to incompressible fluid mechanics what Gauss's principle is to particle mechanics. The PMPG asserts that an incompressible flow evolves from one instant to another by minimizing the -norm of the pressure gradient force. A candidate flow field whose evolution minimizes the pressure gradient cost at each instant is guaranteed to satisfy the Navier-Stokes equation. Consequently, the PMPG transforms the incompressible fluid mechanics problem into a pure minimization framework, allowing one to determine the evolution of the flow field by solely focusing on minimizing the cost—without directly invoking the Navier-Stokes equation. In this paper, we show that the resulting minimization problem is a convex quadratic programming (QP) problem—one of the most computationally tractable classes in nonlinear optimization, which has a rich literature with many efficient algorithms. Moreover, leveraging tools from analytical mechanics and the Moore-Penrose theory of generalized inverses, we derive an analytical solution for this QP problem. As a result, we present an explicit formula for the projected dynamics of the spatially discretized Navier-Stokes equation on the space of divergence-free fields. The resulting ordinary differential equation (ODE) is ready for direct time integration, eliminating the need for solving the Poisson equation in pressure at each time step. It is typically an explicit nonlinear ODE with constant coefficients. This compact form is expected to be highly valuable for both simulation and theoretical studies, including stability analysis and flow control design. We demonstrate the framework on the benchmark problem of unsteady flow in a lid-driven cavity.
Physics Subject Headings (PhySH)
Article Text
References (65)
- C. Lanczos, The Variational Principles of Mechanics (Courier Corporation, North Chelmsford, MA, 1970).
- J. Papastavridis, Analytical Mechanics: A Comprehensive Treatise on the Dynamics of Constrained Systems (World Scientific, Singapore, 2014).
- A. J. Chorin and J. E. Marsden, A Mathematical Introduction to Fluid Mechanics (Springer, Berlin, 1990), Vol. 3.
- T. Kambe, Geometrical theory of fluid flows and dynamical systems, Fluid Dyn. Res. 30, 331 (2002).
- P. M. Gresho and R. L. Sani, On pressure boundary conditions for the incompressible Navier-Stokes equations, Int. J. Numer. Methods Fluids 7, 1111 (1987).
- K. R. Rajagopal and A. R. Srinivasa, On the nature of constraints for continua undergoing dissipative processes, Proc. R. Soc. A. 461, 2785 (2005).
- P. J. Morrison, T. Andreussi, and F. Pegoraro, Lagrangian and Dirac constraints for the ideal incompressible fluid and magnetohydrodynamics, J. Plasma Phys. 86, 835860301 (2020).
- A. J. Chorin, Numerical solution of the Navier-Stokes equations, Math. Comp. 22, 745 (1968).
- R. Temam, Sur l'approximation de la solution des équations de Navier-Stokes par la méthode des pas fractionnaires (II), Arch. Ration. Mech. Anal. 33, 377 (1969).
- P. Moin and J. Kim, On the numerical solution of time-dependent viscous incompressible fluid flows involving solid boundaries, J. Comput. Phys. 35, 381 (1980).
- J. Fang, A fast hybrid pressure-correction algorithm for simulating incompressible flows by projection methods, Algorithms 16, 287 (2023).
- V. I. Arnold, Sur la géométrie différentielle des groupes de lie de dimension infinie et ses applications à l'hydrodynamique des fluides parfaits, Annales de l'institut Fourier, 16, 319 (1966).
- R. Dugas, A History of Mechanics, translated into English by J. R. Maddox, NY (Dover Publications, Oxford, UK, 1988).
- F. Bullo and A. D. Lewis, Geometric Control of Mechanical Systems, Applied Mathematics (Springer-Verlag, Berlin, Germany, 2004).
- K. Yasue, A variational principle for the Navier-Stokes equation, J. Funct. Anal. 51, 133 (1983).
- R. R. Kerswell, Variational principle for the Navier-Stokes equations, Phys. Rev. E 59, 5482 (1999).
- D. A. Gomes, A variational formulation for the Navier-Stokes equation, Commun. Math. Phys. 257, 227 (2005).
- G. L. Eyink, Stochastic least-action principle for the incompressible Navier–Stokes equation, Physica D 239, 1236 (2010).
- H. Fukagawa and Y. Fujitani, A variational principle for dissipative fluid dynamics, Prog. Theor. Phys. 127, 921 (2012).
- C. R. Galley, D. Tsang, and L. C. Stein, The principle of stationary nonconservative action for classical mechanics and field theories, arXiv:1412.3082.
- F. Gay-Balmaz and H. Yoshimura, A lagrangian variational formulation for nonequilibrium thermodynamics. Part II: Continuum systems, J. Geom. Phys. 111, 194 (2017).
- J. W. Sanders, A. C. DeVoria, N. J. Washuta, G. A. Elamin, K. L. Skenes, and J. C. Berlinghieri, A canonical Hamiltonian formulation of the Navier–Stokes problem, J. Fluid Mech. 984, A27 (2024).
- C. R. Galley, Classical mechanics of nonconservative systems, Phys. Rev. Lett. 110, 174301 (2013).
- C. F. Gauß, Über ein neues allgemeines grundgesetz der mechanik., J. Reine Angew. Math. 1829, 232 (1829).
- F. E. Udwadia and R. E. Kalaba, Analytical Dynamics (Cambridge University Press, Cambridge, UK, 1996).
- The principle of least action is indeed due to Maupertuis [13], but the currently prevalent form of the principle is due to Hamilton [63].
- Constraints that are nonlinear in position or velocity are, in fact, linear in accelerations.
- D. P. Bertsekas, Nonlinear programming, J. Oper. Res. Soc. 48, 334 (1997).
- S. Boyd, Convex Optimization (Cambridge University Press, Cambridge, UK, 2004).
- F. E. Udwadia and R. E. Kalaba, A new perspective on constrained motion, Proc. R. Soc. London, Ser. A 439, 407 (1992).
- E. Pennestrì, P. P. Valentini, and D. de Falco, An application of the Udwadia–Kalaba dynamic formulation to flexible multibody systems, J. Franklin Inst. 347, 173 (2010).
- H. Zhao, S. Zhen, and Y.-H. Chen, Dynamic modeling and simulation of multi-body systems using the Udwadia-Kalaba theory, Chin. J. Mech. Eng. 26, 839 (2013).
- E. J. Yap, D. Rezgui, M. H. Lowenberg, S. A. Neild, and K. Rahman, Modeling flexible multi-body systems within the Udwadia–Kalaba framework, a lumped parameter approach, J. Comput. Nonlinear Dyn. 17, 121005 (2022).
- J. Huang, Y.-H. Chen, and Z. Zhong, Udwadia-Kalaba approach for parallel manipulator dynamics, J. Dyn. Syst., Meas., Control 135, 061003 (2013).
- J. Liu and R. Liu, Dynamic modeling of dual-arm cooperating manipulators based on Udwadia–Kalaba equation, Adv. Mech. Eng. 8, 1687814016658849 (2016).
- R. Yu, H. Zhao, S. Zhen, K. Huang, X. Chen, H. Sun, and K. Shao, A novel trajectory tracking control of AGV based on Udwadia-Kalaba approach, IEEE/CAA J. Autom. Sin. 11, 1069 (2024).
- X.-M. Zhao, Y.-H. Chen, H. Zhao, and F.-F. Dong, Udwadia–Kalaba equation for constrained mechanical systems: Formulation and applications, Chin. J. Mech. Eng. 54, 1 (2018).
- H. E. Taha, C. Gonzalez, and M. Shorbagy, A minimization principle for incompressible fluid mechanics, Phys. Fluids 35, 127110 (2023).
- H. K. Khalil, Noninear Systems (Prentice-Hall, Englewood Cliffs, NJ, 2002).
- E. H. Moore, On the reciprocal of the general algebraic matrix, Bull. Amer. Math. Soc. 26, 294 (1920).
- R. Penrose, A generalized inverse for matrices, in Mathematical Proceedings of the Cambridge Philosophical Society, Vol. 51 (Cambridge University Press, Cambridge, UK, 1955), pp. 406–413.
- In this formulation, may include inertial (e.g., Coriolis) forces too.
- L. C. Evans, Partial Differential Equations (American Mathematical Society, Providence, RI, 2022), Vol. 19.
- H. Alhussein and M. Daqaq, The principle of minimum pressure gradient: An alternative basis for physics-informed learning of incompressible fluid mechanics, AIP Adv. 14, 045112 (2024).
- A. Elmaradny, A. Atallah, and H. E. Taha, Minimizing nature's cost: Exploring data-free physics-informed neural network solvers for fluid mechanics applications, Phys. Fluids 37, 027142 (2025).
- H. Sababha, A. Elmaradny, H. Taha, and M. Daqaq, A variational computational-based framework for unsteady incompressible flows, arXiv:2412.05525.
- C. Gonzalez and H. E. Taha, A variational theory of lift, J. Fluid Mech. 941, A58 (2022).
- M. Shorbagy and H. Taha, Magnus force estimation using Gauss's principle of least constraint, AIAA J. 62, 1 (2024).
- M. Shorbagy and H. Taha, On the separating flow behind a cylinder: Insights from the principle of minimum pressure gradient, arXiv:2501.02061.
- B. Dacorogna, Introduction to the Calculus of Variations (World Scientific, Singapore, 2014).
- J. Leray, Sur le mouvement d'un liquide visqueux emplissant l'espace, Acta Math. 63, 193 (1934).
- L. S. Caretto, A. D. Gosman, S. V. Patankar, and D. B. Spalding, Two calculation procedures for steady, three-dimensional flows with recirculation, in Proceedings of the 3rd International Conference on Numerical Methods in Fluid Mechanics: Vol. II Problems of Fluid Mechanics (Springer, Berlin, 1973), pp. 60–68.
- Another alternative is the artificial compressibility approach [64].
- A. Prohl, Projection and Quasi-compressibility Methods for Solving the Incompressible Navier-Stokes Equations (Springer, Berlin, 1997).
- J.-L. Guermond, P. Minev, and J. Shen, An overview of projection methods for incompressible flows, Comput. Methods Appl. Mech. Eng. 195, 6011 (2006).
- C. Hirsch, Numerical Computation of Internal and External Flows, Volume 2: Computational Methods for Inviscid and Viscous Flows (Wiley, New York, 1991).
- N. Gourianov, M. Lubasch, S. Dolgov, Q. Y. van den Berg, H. Babaee, P. Givi, M. Kiffner, and D. Jaksch, A quantum-inspired approach to exploit turbulence structures, Nat. Comput. Sci. 2, 30 (2022).
- A. V. Fiacco, Penalty methods for mathematical programming in with general constraint sets, J. Optim. Theory Appl. 6, 252 (1970).
- J. Nocedal and S. J. Wright, Penalty and augmented Lagrangian methods, Numer. Optimiz. 497 (2006).
- H. Bhatia, G. Norgard, V. Pascucci, and P.-T. Bremer, The Helmholtz-Hodge decomposition—A survey, IEEE Trans. Visual. Comput. Graph. 19, 1386 (2012).
- S. Sastry, Nonlinear Systems: Analysis, Stability, and Control (Springer, New York, NY, 1999), Vol. 10.
- U. K. N. G. Ghia, K. N. Ghia, and C. T. Shin, High-Re solutions for incompressible flow using the Navier-Stokes equations and a multigrid method, J. Comput. Phys. 48, 387 (1982).
- W. R. Hamilton, On a General Method in Dynamics (Richard Taylor, London, UK, 1834).
- A. J. Chorin, A numerical method for solving incompressible viscous flow problems, J. Comput. Phys. 135, 118 (1997).
- H. Taha and K. Anand, Data set for: Variational projection of Navier-Stokes: Fluid mechanics as a quadratic programming problem (2025), https://taha.eng.uci.edu/Datasets.html.