Harmonic#
Definition#
Name |
Mesh>Harmonic |
Type |
Harmonic |
Defined in |
Edges |
Calculate stretching energy by assuming that edges are Hookean harmonic springs [SN88]:
\[U = \frac{1}{2} k \left( l - l_0 \right)^2\]
where \(k\) is the spring constant, \(l_0\) is the length of the unstretched (reference) edge, and \(l\) is the current edge length.
Python calling#
evolver.add_force("Mesh>Harmonic", {
"k": {"1": str(spring_constant_value)}, # spring constant
"l0": {"1": str(unstretched_bond_value)} # unstretched bond length
})