Modelling friction as a conservative force Friction is usually considered as a non-conservative force, but by considering the microscopic movement of particles which produce the friction, it seems we can model friction as conservative force field (the lost energy transform in kinetic energy of microparticles, what we call "heat").
For example, consider the uni-dimensional movement of a macroscopic solid block sliding on the floor, let call its position as $X(t)$. On the other hand, the floor is modeled as a huge collection of $N$ material particles, like a thermal reservoir/bath, interacting with each other and with the block. As these particles move very little from their equilibrium position $x_i = 0$, we can approximate the potential energy associated with their interaction by a Taylor series up to quadratic terms:
$$V(x_i) = \frac{1}{2}\sum_{i, j=1}^N k_{ij}x_ix_j $$
The interaction of the block and the floor is assumed to be represented by a potential $V_f(x_i,X,\dot{X})$ ("potential associated with friction"). So, the Lagrangian of this system would be:
$$L(X,x_i,\dot{X},\dot{x}_i) = \frac{M}{2}\dot{X}^2 + \frac{m_i}{2}\sum_{i=1}^N \dot{x}_i^2 - V_f(x_i,X,\dot{X}) - \frac{1}{2} \sum_{i, j=1}^N k_{ij}x_ix_j .$$
Then for almost every solution with initial conditions $\dot{x}_i = 0$ the energy flows to the floor and we have $\dot{X}\to 0$.
My question are:

*

*What forms could the potential $V_f(x_i,X,\dot{X})$ take?


*How could we show that most solutions (with the above-mentioned initial conditions) end up with the block stopped on the floor?

My guess for the question 1 is that
$$V_f(x_i,X,\dot{X}) = -(\alpha\ \text{sgn}(\dot{X})X) \sum_{i=1} \text{rect}(X-x_i)$$ or some modification will work, because this guarantees that each particle only produces influence during the time there is contact between the block and itself.
 A: Adding friction to a Lagrangian is not commonly taught. It is non-trivial, but not too difficult in the end. The key element is producing a "dissipation function" $D$ that we can use to augment the Euler Lagrange equations. This approach is well described in this tutorial, but I will summarize the key points here.
In this approach the Euler Lagrange equations are modified as follows: $$ \frac{d}{dt}\frac{\partial L}{\partial \dot q}=\frac{\partial L}{\partial q}-\frac{\partial D}{\partial \dot q} $$ where $D$ is the "dissipation function" and represents the rate at which power is leaving the system due to dissipation. It is related to the generalized frictional force by $$Q=-\frac{\partial D}{\partial \dot q}$$
As you mentioned, the dissipation function is a sort of a potential, but with the potential being related to the generalized velocities instead of the generalized coordinates. That makes it non-conservative.
For a frictional force which is proportional to the n-th power of the velocity the dissipation function can be written $$D=\frac{1}{n+1}c v^{n+1}$$ where $c$ is usually determined by comparison with the frictional force law which gives $Q$.
For example, with a typical normal friction force we have $F=-\mu m g$ which is proportional to the 0-th power of the velocity and therefore yields $$D=\mu m g \dot x$$ Or for a typical drag friction force we have $F=\frac{1}{2}\rho C_D A v^2$ which is proportional to the 2-nd power of the velocity and therefore yields $$D=\frac{1}{6}\rho C_D A \dot x^3$$
A: For systems with a Hamiltonian formulation, the Poincaré recurrence theorem (PRT) would indicate that most trajectories will eventually evolve back to a state arbitrarily close to their initial conditions.  Under such circumstances if $X = X_0 \neq 0$ initially then the system will eventually evolve back to some state where $X \approx X_0$.  In such a case, to say that $X \to 0$ in the strict mathematical sense of $\lim_{t \to \infty} X = 0$ can't be true; the best you can do is to say that $X \approx 0$ for most of the time for "most" trajectories.
If you want to avoid the PRT, your system will have to either (a) not have a Hamiltonian formulation, or (b) have trajectories that are unbounded in phase space.  Option (b) is probably not what you want on physical grounds, so your best hope for avoiding the consequences of the PRT rests on whether a Hamiltonian formulation of the system exists.  This, in turn, will depend on the form of your "potential" $V_f(x_i, X, \dot{X})$;  you can probably avoid it for a "non-smooth" version of $V_f$, but I would worry that it can't be avoided for a "nice" $V_f$ function.
A: It's not possible to do what you are attempting. For friction to be a conservative force, then the net work done by moving along a path where the start and endpoints are the same is zero which would mean the net heat generated would be zero. If this were true, then an object could be cooled to its original temperature before motion by simply reversing its path back to its origin: $F_{friction}(d_{forward} + d_{back}) = 0 = \Delta Q$
The reason is that friction is a destructive force. A wooden block moving along sandpaper is losing mass left as wood dust. This is the part of the friction process that is irreversible. So if you could model friction as a conservative force, you would have to add equations to cover the loss in mass and heat released from the breaking of bonds.
