A particle in molecular dynamics represents an atom or molecule. A particle in smoothed particle hydrodynamics represents a moving parcel of a continuum. Both calculations can store positions, velocities, masses and neighbour lists, yet they answer different physical questions. The resemblance of their update loops must not obscure the origin of their interactions.
The useful question is how a pressure gradient, originally defined as a field, becomes a sum of forces between numerical particles while respecting conservation laws.
8.1 Replace a field by a local average, then by quadrature
Start from the continuum identity
Replace the delta distribution by a normalised smoothing kernel , usually symmetric and compactly supported. The smoothed field is
For smooth fields away from boundaries, a symmetric kernel with finite second moment gives a smoothing error of order by Taylor expansion: the first-order moment cancels. For a nonzero finite , convolution is generally not equal to the original field. The equality in the source was missing this approximation.
Now partition the continuum into parcels of fixed mass . Their volume elements are represented by . Replacing the integral by a particle quadrature gives
For density, cancels the volume denominator:
This is a density estimator defining the discrete model, often including the self contribution . Particle-distribution error and smoothing error are distinct. Near boundaries the kernel support is truncated unless boundary treatment corrects it; a disordered quadrature need not reproduce even a constant field exactly.
In the illustration, three equal-mass parcels each contribute a compact kernel to the density. The sum is a field even though its representation uses finitely many moving points. Observe that overlapping support, rather than physical molecular contact, determines which parcels communicate.
Each parcel supplies a kernel
The finite support describes smoothing, not an atomic hard core.
Add contributions at each position
The dots locate parcels. The continuous curve estimates density between them.
The plotted one-dimensional kernel is , whose integral is one. Its corner is useful for seeing support and normalisation; smoother kernels are generally preferable for accurate pressure gradients. Reducing changes spatial resolution and neighbour number, not a molecular interaction radius.
Compress the parcel positions. Does the height of the density change because mass was created, or because the same mass occupies less space?
ρ(x) = ΣⱼmⱼWₕ(x−xⱼ); ∫ρ dx = 5
Spacing 0.51; peak density 2.00; represented total mass 5.
Paused. Play the sequence, step through it, or drag the position slider.
Five one-dimensional unit-mass parcels and a normalised compact cubic B-spline kernel with support |x| < 2h. Motion is a prescribed geometry experiment, not an integrated fluid flow. Total represented mass is exactly five.
8.2 Build a pressure force with a conservation argument
For an inviscid fluid, the material momentum equation is
A direct replacement of by an unsymmetrised particle sum can lose pairwise momentum conservation. A common fixed- SPH form instead uses
For a symmetric kernel, . Multiply by to obtain forces: the force of on is exactly opposite to that of on . Pair contributions therefore cancel in total momentum. If the kernel is radial, they are also central and conserve angular momentum in continuous time.
There is a deeper route to the same formula. Let be specific internal energy and hold each parcel's entropy label fixed. For adiabatic thermodynamics,
Use the discrete Lagrangian
Varying particle positions differentiates every density containing the moved particle. For a pair , the terms from and add, producing precisely the symmetric pressure coefficient. Thus continuum internal energy can generate conservative discrete interactions. They are not microscopic pair potentials: the pressure coefficients depend on the surrounding density and thermodynamic state.
The variational SPH formulation in Price's review develops this relationship between density estimation, thermodynamics and conservation. It also explains why variable smoothing lengths require consistent correction terms. The fixed- expression above should not be copied unchanged into an adaptive formulation.
If two parcels have unequal mass, should equal and opposite pressure forces produce equal accelerations?
Fᵢⱼ = −Fⱼᵢ; aᵢ = Fᵢⱼ/mᵢ
Forces -1.420 and 1.420; accelerations -1.420 and 0.947.
Paused. Play the sequence, step through it, or drag the position slider.
Fixed-h one-dimensional SPH pressure pair, h = 0.65, mᵢ = 1, P = ρ−0.7. Includes each parcel's self-density. Separations are prescribed, not a simulated fluid trajectory. Force arrows share one linear scale.
8.3 The equation of state closes the particle model
Density alone does not supply the pressure. A barotropic model prescribes , for example
Here is the squared sound speed and a reference density. Weakly compressible approximations choose large enough to keep density variations small relative to the flow speed, while paying the cost of a shorter acoustic timestep. The pressure law is a material/numerical closure, not a substitute for the momentum equation or the kernel discretisation.
For non-barotropic thermodynamics, evolve internal energy or entropy and use an equation of state . For the inviscid adiabatic fixed- scheme, one compatible work equation is
Combined with the symmetric momentum equation, pair terms exchange kinetic and internal energy while preserving their total in continuous time. Viscous stresses and shock-capturing terms add dissipation and the corresponding heating. Artificial viscosity used for shocks must be distinguished from a calibrated physical viscosity.
8.4 Similar computation, different limits
Both MD and SPH integrate positions and velocities, often use finite-support neighbour searches, and need timestep-convergence checks. MD forces approximate microscopic interactions; SPH pressure forces approximate a continuum conservation law. SPH parcels do not acquire independent molecular thermal noise merely because they are called particles.
In an explicit SPH method, acoustic and flow propagation impose a Courant-type bound involving , with additional restrictions for viscosity, acceleration and the specific integrator. Increasing sound speed to suppress compressibility therefore increases cost. Kernel choice, neighbour resolution, boundary treatment and particle disorder affect convergence; decreasing without improving quadrature is insufficient.
This chapter has reduced a continuum field to numerical parcels. The final chapter makes another kind of reduction: it maps a full microscopic configuration onto a small set of collective coordinates, while retaining the statistical weight of the unresolved degrees of freedom.
Exercises
- Use a Taylor expansion to show why a symmetric normalised kernel has no first-order smoothing error in the interior.
- Verify the total momentum cancellation pair by pair for unequal parcel masses.
- Differentiate the density sum and derive the adiabatic work equation. Check that it conserves total energy with the stated momentum equation.