Making Things Move
Mechanica updates the velocity and position of an object by calculating the net force acting on it. Working with forces in Mechanica is very flexible, whether using one of the variety of built-in potentials and forces provided by Mechanica or designing and implementing a custom force.
Conservative forces are usually a kind of Potential object, where the
force is described in terms of its potential energy function. Long-range,
fluid, and most bonded interactions are examples of forces based on
conservative potential energy functions. All potential-based forces contribute
to the total potential energy of a system in a simulation.
How forces affect the trajectory of a particle occurs according to the dynamics
of the type of the particle. Mechanica supports simulating Netwonian and
Langevin (overdamped) mechanics on the basis of individual particles, which is
described using the particle type attribute dynamics and defaults to
Newtonian. In general, integrating the universe in time consists of updating
the position \(\mathbf{r}_i\) of each \(i\mathrm{th}\) particle according
to its mass \(m_i\) and the total force exerted on it \(\mathbf{f}_i\).
For Newtonian mechanics, particle acceleration is proportional to total force,
For overdamped mechanics, particle velocity is proportional to total force,