Supposing a behavior function $C(x_1, \ldots, x_n)$, then we have a scalar potential energy function
$E = \frac{k_s}{2}C\cdot C$ where $k_S$ is stiffness constant.
Hence, the force is as follows $f_i = -\frac{\partial E}{\partial x_i} = -k_sC\frac{\partial C}{\partial x_i}$
I caught up so far, but couldn't understand when adding damping.
The paper read $f_i = (-k_sC - k_d\dot{C})\frac{\partial C}{\partial x_i}$ , where $k_d$ is damping constant and $\dot{C}$ is derivative of $C$.
How to derive the damping part?
I know damping equation is $f_d = -k_dv$,
In detail, supposing there are two end of points in a spirng, called $p_a, p_b$.
then the damping force $f_d = -k_d\frac{\dot{l}\cdot l}{|l|}\frac{l}{|l|}$ in 3D sapce ($\dot{l}$ is $v_a - v_b$, $l = p_a - p_b$)
However, I could not correspond this equation to the above damping part.