1 Historical development
Artificial viscosity emerged as a practical response to the difficulty of computing flows with shocks and sharp discontinuities. Early numerical schemes often produced ringing, overshoots, or outright instability when a solution changed too abruptly over a small number of grid points. By adding a controlled dissipative mechanism, researchers were able to make shock-containing simulations more robust and more physically plausible.
1.1 Early shock-capturing methods
The earliest shock-capturing approaches relied on smearing discontinuities over a small region of the mesh. These methods were intended less as precise physical models than as stabilization tools for finite-difference calculations. The added diffusion reduced oscillations near fronts, but it also blurred important features if applied too broadly.
1.2 Von Neumann–Richtmyer formulation
A major milestone was the von Neumann–Richtmyer artificial viscosity, developed for compressible flow calculations. It introduced an extra pressure-like term activated in compression, especially where velocities converged rapidly. This formulation became influential because it combined simplicity with effective shock stabilization, and it set the pattern for many later methods.
1.3 Evolution in modern numerical methods
As computational methods advanced, artificial viscosity became more selective and less intrusive. Modern algorithms often use limiters, sensors, or Riemann solvers to localize dissipation near shocks while preserving smooth solution regions. In many applications, the original idea has evolved into more sophisticated forms of numerical stabilization rather than a single fixed formula.
2 Mathematical formulation
Artificial viscosity is added to the governing equations as an auxiliary dissipative contribution. Its role is to mimic the entropy-producing effect of a shock in a way that can be represented on a discrete grid. The exact form varies with the numerical method and the type of physical problem being solved.
2.1 Additive dissipative terms
In many schemes, artificial viscosity appears as an additional term in the momentum or energy equations. This term acts like diffusion, but only in a controlled numerical sense. It spreads abrupt transitions over several cells, which helps prevent nonphysical oscillations that arise from underresolved gradients.
2.2 Scalar and tensor artificial viscosity
Artificial viscosity may be implemented as a scalar quantity or as a tensor. Scalar forms are simpler and are often used in one-dimensional or isotropic settings. Tensor formulations can better represent directional effects in multidimensional flows, especially when compression is stronger along certain axes than others.
2.3 Dependence on local flow variables
Most artificial viscosity models depend on local indicators of shock-like behavior. These indicators are chosen so that the dissipative term is weak in smooth regions and stronger where the solution is rapidly changing. Common triggers include compression, steep pressure changes, and abrupt density variation.
2.3.1 Velocity divergence
Negative velocity divergence is a common sign of compression and is frequently used as a shock sensor. When nearby fluid elements move toward one another, the model may increase dissipation to prevent numerical instability. This criterion is especially useful in compressible-flow simulations.
2.3.2 Pressure gradients
Large pressure gradients can indicate a discontinuity or a near-shock region. Some formulations strengthen artificial viscosity when pressure varies sharply from one cell to the next. This helps smooth the transition and reduce oscillatory artifacts around the front.
2.3.3 Density variation
Rapid density changes may also signal a region that requires stabilization. By linking viscosity to density variation, the method can respond to abrupt compressions or expansions. Such dependence is often tuned carefully so that ordinary smooth stratification is not overly diffused.
3 Numerical purpose and effects
The main purpose of artificial viscosity is numerical stability. It is designed to make computations more reliable when the underlying physics includes discontinuities that cannot be resolved cleanly on a finite grid. The effect is usually beneficial, though it always comes with some loss of sharpness.
3.1 Shock smoothing
A shock cannot be represented as a mathematically perfect jump on a discrete mesh. Artificial viscosity spreads the jump across a few cells, creating a narrow transition zone. This smoothing makes the computed solution easier to handle and reduces the risk of spurious behavior at the discontinuity.
3.2 Suppression of spurious oscillations
High-order schemes without adequate stabilization may generate unphysical overshoots and undershoots near discontinuities. Artificial viscosity damps these oscillations by dissipating high-frequency numerical error. This is one of its most important practical advantages in shock-dominated calculations.
3.3 Impact on accuracy and diffusion
The same dissipative action that improves stability can also reduce accuracy. If the viscosity is too strong or applied too widely, it can blur gradients, weaken peaks, and alter wave speeds. Designers of numerical methods therefore try to make the effect strong enough to stabilize the solution but weak enough to preserve important structure.
3.3.1 Resolution loss near steep fronts
Near a steep front, artificial viscosity can reduce effective resolution by widening the transition zone. Fine details close to a shock may be lost, especially on coarse grids. This limitation is often acceptable in exchange for stable convergence, but it remains a central trade-off.
3.3.2 Balancing stability and fidelity
A well-designed scheme seeks a balance between robustness and sharpness. Too little dissipation can allow oscillations, while too much can wash out meaningful features. Modern methods often aim to localize viscosity as tightly as possible so that stable behavior is achieved with minimal distortion.
4 Implementation in computational methods
Artificial viscosity appears in several families of numerical algorithms. The implementation depends on whether the method is based on finite differences, finite volumes, or particle dynamics. In each case, the common goal is to control discontinuities without destabilizing the solver.
4.1 Finite difference schemes
In finite-difference methods, artificial viscosity is often added directly to the discretized equations as an extra difference operator. This can act like a smoothing filter for rapidly varying solutions. Such schemes are relatively straightforward to implement, though they may require careful tuning to avoid excessive damping.
4.2 Finite volume schemes
Finite volume methods naturally emphasize fluxes across cell boundaries, making them well suited to shock-capturing. Artificial viscosity in this context may modify fluxes or supplement the update with dissipative corrections. The method is commonly tied to local estimates of flow steepness.
4.2.1 Riemann-solver-based approaches
Riemann solvers approximate the interaction of left and right states at a cell interface. Their built-in dissipation often plays a role similar to artificial viscosity. In many modern schemes, the solver itself supplies the stabilization, reducing the need for an explicit separate viscous term.
4.2.2 Flux limiting and shock sensors
Flux limiters and shock sensors help activate dissipation only where needed. A limiter can reduce high-order corrections near steep gradients, while a sensor identifies regions likely to contain shocks. Together, these tools create a more selective form of numerical smoothing.
4.3 Smoothed particle hydrodynamics
In smoothed particle hydrodynamics, artificial viscosity is widely used to handle compressive events and shocks among particles. Because the method represents matter in a Lagrangian form, viscosity helps prevent particle interpenetration and noisy pressure fluctuations. It is often an essential ingredient in stable simulations of violent flows.
4.4 Astrophysical and engineering simulations
Artificial viscosity is common in large-scale simulations where shocks are frequent and complex. Astrophysical models use it for phenomena such as explosions, accretion, and colliding gas flows. Engineering applications include compressible aerodynamics, blast propagation, and impact problems, where stable shock treatment is crucial.
5 Design choices and tuning
The performance of artificial viscosity depends strongly on parameter selection. A model that is too aggressive can erase detail, while one that is too weak may fail to suppress numerical noise. For that reason, tuning is an important part of practical implementation.
5.1 Coefficient selection
The coefficient controlling artificial viscosity sets its strength. Choosing this value usually involves experimentation, analysis of test problems, and comparison with known solutions. In many cases, the best coefficient depends on mesh spacing, time step, and the character of the flow.
5.2 Shock detection criteria
Shock detection criteria determine when the viscosity is activated. Common choices examine compression, pressure jumps, or other indicators of non-smooth behavior. Effective criteria help confine dissipation to the regions that genuinely require stabilization.
5.3 Spatial and temporal adaptivity
Adaptive models adjust the amount of viscosity across space and time. This allows the method to react to changing flow conditions rather than applying a fixed level of damping everywhere. Adaptivity is especially valuable in problems where shocks move, merge, or weaken during the simulation.
5.3.1 Constant-coefficient models
Constant-coefficient models use the same viscosity strength throughout the domain. They are easy to implement and can be reliable in simple test problems. Their main drawback is that they may introduce unnecessary diffusion in regions that do not need it.
5.3.2 Variable-coefficient models
Variable-coefficient models alter the viscosity according to local conditions. They are more selective and typically preserve smooth features better than constant models. The added complexity is often justified in simulations with multiple interacting shocks or mixed flow regimes.
6 Variants and related techniques
Artificial viscosity belongs to a broader family of stabilization methods. Some related techniques are physically motivated, while others are purely numerical. They often overlap in practice and may be combined within the same solver.
6.1 Bulk viscosity
Bulk viscosity is a physical or modeled resistance to uniform compression or expansion. In numerical contexts, it can resemble artificial viscosity because it damps compressive motion. The two are conceptually distinct, however, since one may represent material behavior while the other is introduced mainly for stability.
6.2 Numerical diffusion
Numerical diffusion is the unintended or deliberate smearing of a solution caused by discretization. Artificial viscosity is a controlled form of this effect. In many schemes, the distinction between the two is subtle, since the method seeks useful diffusion while minimizing harmful diffusion.
6.3 Flux-corrected transport
Flux-corrected transport combines low-diffusion and high-diffusion updates to maintain both stability and sharpness. It can be viewed as a more selective alternative to a uniform viscosity term. The method aims to preserve fronts and peaks while still preventing oscillations.
6.4 High-resolution shock-capturing methods
High-resolution shock-capturing methods are designed to resolve discontinuities accurately without excessive smearing. They often use limiters, approximate Riemann solvers, and adaptive dissipation rather than a simple artificial viscosity term. In many modern applications, these methods have reduced reliance on older fixed-viscosity formulations.
7 Applications
Artificial viscosity is used wherever discontinuities challenge numerical stability. Its practical value lies in its ability to make difficult problems tractable without requiring unrealistically fine meshes. The technique has become a standard tool in several scientific and engineering fields.
7.1 Compressible fluid flow
Compressible fluid simulations frequently involve shocks, expansion waves, and strong gradients. Artificial viscosity helps maintain stable updates when these features interact. It is especially useful in cases where flow speed changes abruptly over a short distance.
7.2 Gas dynamics
In gas dynamics, shock waves are central to many problems, from nozzles to explosions. Artificial viscosity provides a practical way to approximate the abrupt thermodynamic changes associated with these events. It supports stable computation of pressure, density, and velocity fields.
7.3 Astrophysics
Astrophysical simulations often involve highly compressible matter and violent events. Artificial viscosity helps model shock fronts in supernova-like flows, stellar interactions, and interstellar gas dynamics. Because these systems can span many scales, controlled dissipation is often necessary for numerical robustness.
7.4 Solid mechanics and impact modeling
In solid mechanics, sudden impacts and stress waves can produce steep gradients similar to fluid shocks. Artificial viscosity is used to stabilize calculations of deformation, fracture, and collision. It helps prevent nonphysical oscillations in stress and strain variables during rapid loading.
8 Advantages and limitations
Artificial viscosity remains popular because it is effective, simple, and broadly applicable. At the same time, it is inherently a compromise: the same mechanism that stabilizes a simulation can also obscure fine-scale structure. Its usefulness therefore depends on the demands of the problem and the quality of the implementation.
8.1 Stability improvements
The principal advantage is improved stability. By damping unresolved gradients, artificial viscosity helps numerical methods converge more reliably. It also reduces oscillatory errors that can contaminate the solution near shocks and other discontinuities.
8.2 Excess dissipation
A common limitation is excessive damping. If the artificial viscosity is too strong, it can flatten peaks, soften edges, and distort transport behavior. Excess dissipation is one of the main reasons modern methods try to apply viscosity only where necessary.
8.3 Sensitivity to grid resolution
The effectiveness of artificial viscosity often depends on grid resolution. On a coarse mesh, a shock may require more smoothing simply to remain stable, whereas a finer mesh may need much less. This dependence means that parameter choices are not always transferable between different discretizations.
8.4 Comparison with alternative stabilization methods
Alternative stabilization techniques may offer sharper resolution or better adaptivity than a simple viscosity term. Limiters, Riemann solvers, and flux-corrected methods can sometimes achieve similar stability with less smearing. Even so, artificial viscosity remains valuable because of its simplicity, flexibility, and long record of practical success.