185 points · by Anon84 · 2y ago · 55 comments
For fluid mechanics I don’t know if Hamiltonians are the right formulation.
(QFT sort-of has an explanation for time evolution in terms of symmetries alone, but it requires a lot more machinery. But afaik classical mechanics does not.)
I’m sure the equation is right and all but this seems sideways in terms of an intuitive explanation - velocity changes position, and force changes momentum. Force doesn’t directly change position (only indirectly via changing momentum) and momentum doesn’t change velocity, having momentum is consistent with a constant velocity. It doesn’t even make much sense to me to think of integrals as being about “costs of changing”, would that not be a derivative?
Instead of doing what seemed like some mumbo-jumbo sarting from a static system, that, eventually and through convoluted ways, lead to the equations we were kind of looking for, here was a clean and logical way to look at what was relevant to the dynamics of the system, with an infaillible, straightforward, mathematical way of getting the equations of motion.
I'm not that familiar with Hamiltonian formulations, but its conservation properties could bring some important improvements to the current way the Navier-Stokes equations are treated. Conservation of linear and angular momentum, for a start, could be nice..
Now, let's see if I understand anything from this paper..
You do this by actually taking this derivative and you find that you can guarantee that the differential of the action is 0 if the system takes a path which is the solution to a set of differential equations, and you can generally find the solution to those differential equations only with information about the origin, ie you don't need both the start and end conditions to find a unique solution.
So you're right, it's a bit weird conceptually. You sort of start saying "the system obeys a path that minimizes the action between it's initial and final positions" and then find that this produces a set of conditions which form a system of diff eqs that you can find general solutions for and select out a unique solution just with the initial conditions, no need for the final condition.
The answer is, unfortunately, boring. You solve equations to find the unknowns. If there are too many unknowns there are too many solutions and the whole thing is useless.
The Hamiltonian formulation performs a Legendre transformation[1] on L giving H = v L_v - L, which is essentially a convenient trick: it reparameterizes L in (q,p) coordinates, where p = L_v, and writes S as ∫ (pv - H) dt. This changes the E.o.M. to (qdot, pdot) = (H_p, -H_q), which is (a) first-order in time and therefore easier to deal with and (b) geometrically elegant because it is a rotation in (q,p) space, which is easy to think about.
At least those are the reasons everyone gives why it's important. I think the real reason is that QM is formulated in terms of H so you need to know it, and also that this (q,p) thing makes statistical mechanics easier because it has good geometric properties: it amounts to saying that time evolution conserves area in (q,p) space, which means that you can treat the evolution of many-particle systems as being in a whole block of states at once, treated as a geometric object that flows over time.
I've never been able to understand if there is something "truly fundamental" about H compared to L, or if H is more of a mathematical convenience for making the equations first-order.
[1]: https://blog.jessriedel.com/2017/06/28/legendre-transform/ is a good exposition, if still pretty tough to understand. Legendre transforms are hard to grok.
Still, in classical mechanics some consider the Hamiltonian formulation to be more fundamental, because the first order equations can be applicable to some problems that have discontinuities incompatible with second-order equations, though such problems are artificial (real systems are continuous enough, strong discontinuities appear only through approximations).
However this changes completely in relativistic mechanics, where the Hamiltonian is not invariant, while the Lagrangian is a relativistic invariant quantity.
This makes the Lagrangian formulation a far better choice in relativistic mechanics and it is a strong argument to consider the Lagrangian formulation as the fundamental one and the Hamiltonian formulation as only an approximation that can be used at small velocities or only as a mathematical trick for numeric solutions.
When the Lagrangian formulation is used, after a coordinate system is chosen, it is always possible to use the Legendre transformation to obtain a Hamiltonian system of first order equations. However, in the relativistic case the system depends on the coordinate system. Therefore, if the coordinate system is changed, the Hamiltonian equations must be derived again from the invariant Lagrangian formulation.
The reason why the Lagrangian is a relativistic invariant is that this scalar value is the projection of the energy-momentum 4-vector on the trajectory curve in space-time. The Hamiltonian is just the temporal component of the 4-vector, which is changed by any coordinate transformation. Therefore L is more fundamental than H, in the same sense that the magnitude of a vector is more fundamental than any of the components that the vector happens to have in some particular coordinate system.
The traditional formulation of the quantum mechanics using H is a serious inconvenience for extending it to the relativistic case. Coherent formulations of the relativistic quantum mechanics must also use L instead of H.
http://files.untiredwithloving.org/thesis.pdf
The path integral method of QED does make the Lagrangian for field theories easier.
Actually, Hamiltonian formulation, being equivalent, offers more room for finding solutions. Lagrangian formulation of the Least Action principle allows you to search for a solution employing arbitrary smooth re-parameterizations of the configuration variables `q`. The Hamiltonian formulation, on the other hand, allows you to re-parametrize the entire phase space (q,p) and find solutions that are much harder to get in Lagrangian formulation.
1. Put all terms of the momentum and mass conservation equations of Navier Stokes on the right hand side. These should be normally identically 0.
2. Define an error term ('residual') R for each equation, this is basically the value of the RHS from step 1. The error term is 0 when pressure and velocities satisfy N-S.
3. Define the Lagrangian as the sum of residuals squared
4. Apply the Legendre transformation to the Lagrangian to get the Hamiltonian and the conjugate momenta
Is there a reason people had not thought of this for the last several decades? Like, was there some missing math or discovery that enabled this?
I'm guessing because it's not simple.
This could be as useful as Feynman diagrams are to physics calculations.
You would start from a Lagrangian formulation of the classical interaction, let's say Light-Matter, that would yield for example the Schrodinger and Maxwell equations. Following a Legendre transformation (there a post on the HN front page the other day on that) you end up with a so-called Hamilton operator from which you can derive a (huge) set of coupled differential equations which you then solve.
Here, if you wanted to increase temporal accuracy, it typically leads simply to longer calculation times.
We also tried a different approach using Feynman's path integrals and boy did that explode numerically. We optimized our programs to the point where everything was reduced to work on bits, but to no avail it was numerically unstable and the memory consumption when through the roof the longer or more accurate you wanted to make the simulation.
So, I would argue that NO, Feynman does not make it easier per se.
However, other groups made it work somehow.
As a starting point you can check that paper and it's references from the introduction section.
I believe the term "compute node" was first used in the context of the Intel ASCI Red supercomputer that was installed at Sandia in 1997. This later led to the Cray XT3, XT4, XT5 families of machines that used the same terminology.
But I believe the term was not in generic usage outside of those specific supercomputers until around 2005-2010.
And it is more recently that the term has been extended beyond referring to hardware.
For example dispute/disputation or repute/reputation ("a person of ill repute").
1) an invitation to the party -> an invite to the party
2) I like that quotation. -> I like that quote.
3) I gave him a consultation. -> I gave him a consult.
You could even count:
4) What's the request? -> What's the ask?
Also, broken English seen on receptacle in China:
5) "The environment needs your conserve." (instead of "conservation")
In the short-term, I think both words are fine. If it matters, use whichever one will best help you achieve your goals (e.g., if you're talking to a person who frequently uses n>>1 devices to perform computationally intensive workloads, you'll probably sound very mildly out-of-place nowadays if you don't choose "compute," which may or may not be the image you want to portray of yourself).
Slightly longer term, I expect this will be one of those cases where dictionaries and pedants try to settle the matter, nobody complies, and we have a "gray" vs "grey" scenario indefinitely. Beyond the next year or two I'm hesitant to place bets on the multitude of possible outcomes.
Way off-topic, patterns of speech like that might be a fun way to fingerprint the training data used for an LLM.
Edit: My take home message was that there is an equivalent higher order formulation which allows more structure and might be theoretically interesting. Usually higher order formulations are numerically more challenging.
> Given the title of this paper, it is incumbent on the authors to assure the reader that we do not claim to have done the impossible
Awesome. Though I have no clue what the Hamiltonian formulation is.
Both the quantum mechanics and molecular dynamics have shared a similar concept.
In structural mechanics, we use the virtual method to calculate the hyperstatic structure to determine displacements in a structure, given forces acting on the structure. Another kind of Hamiltonian.
Nothing against this tho, I just don't have the foundation for this.
We didn’t really touch fluids though. Does “classical” mean something different there?
I still remember that was mind-blowing. High school physics is so simple, whereas the Hamilton is so complex. I later on notice that Hamilton is kind of a more standard way to solve the problem. Never mind, I'm not an expert on it, but I'm just kind of amazed by the Hamiltonian mechanics.