calculating horizontal divergence using finite differences


Horizontal Divergence Calculator

Calculate horizontal divergence in a fluid flow using the finite difference method.


East-west wind component at the eastern grid point.


East-west wind component at the western grid point.


North-south wind component at the northern grid point.


North-south wind component at the southern grid point.


Distance between the two zonal wind points.


Distance between the two meridional wind points.




Results copied to clipboard!
Total Horizontal Divergence
2.00 x 10⁻⁵ s⁻¹

A positive value indicates divergence, while a negative value indicates convergence.


Zonal Term (∂u/∂x)
2.00 x 10⁻⁵ s⁻¹
Meridional Term (∂v/∂y)
0.00 x 10⁻⁵ s⁻¹

Chart illustrating the contribution of Zonal (∂u/∂x) and Meridional (∂v/∂y) components to the total horizontal divergence.


Parameter Changed New Value Resulting Divergence (s⁻¹)
What-If Analysis: This table shows how the total horizontal divergence changes when a single input parameter is adjusted by ±20%, keeping others constant.

What is calculating horizontal divergence using finite differences?

Horizontal divergence is a fundamental concept in meteorology and fluid dynamics that measures the rate at which air is spreading out (diverging) or concentrating (converging) horizontally. Specifically, it quantifies the net outflow of air from a given point per unit area. A positive divergence value signifies that more air is leaving a region than entering, while a negative value (convergence) means more air is entering than leaving. This horizontal movement is directly linked to vertical motion in the atmosphere: convergence at the surface forces air to rise, often leading to cloud formation and precipitation, whereas divergence aloft is necessary to sustain this upward motion.

The “finite difference” method is a numerical technique used to approximate derivatives. Since the true definition of divergence involves partial derivatives (infinitesimally small changes), which are difficult to measure directly in the real world, we use finite differences. This involves taking measurements of wind speed and direction at discrete, separate points (a “finite” distance apart) and using these values to estimate the rate of change, or gradient, across that distance. This calculator uses a centered-difference scheme, a common and effective method for calculating horizontal divergence from gridded weather data.

The Formula for Horizontal Divergence

In Cartesian coordinates, the horizontal divergence (DivH) is defined as the sum of the partial derivative of the zonal wind (u, the west-to-east component) with respect to the x-direction and the partial derivative of the meridional wind (v, the south-to-north component) with respect to the y-direction.

Differential Form:

DivH = ∂u/∂x + ∂v/∂y

Using the finite difference method, we approximate these derivatives using values at discrete points. For a grid with points 1 and 2 in each direction, separated by distances Δx and Δy, the formula becomes:

DivH ≈ (u₂ – u₁) / Δx + (v₂ – v₁) / Δy

This approximation allows for the practical calculation of divergence from real-world weather observations or model data. For more on this, see our article on the {related_keywords}.

Variables in the Divergence Calculation
Variable Meaning Unit (SI) Typical Range
u₁, u₂ Zonal (west-east) wind speed at two points. m/s -50 to 50 m/s
v₁, v₂ Meridional (south-north) wind speed at two points. m/s -50 to 50 m/s
Δx, Δy The distance between the measurement points in the x and y directions. m 10,000 to 500,000 m (10 km to 500 km)
DivH Horizontal Divergence. The result of the calculation. s⁻¹ (per second) -1×10⁻⁴ to 1×10⁻⁴ s⁻¹

Practical Examples

Example 1: Surface Convergence

Imagine a low-pressure system where winds are spiraling inwards. This is a classic case of convergence.

  • Inputs:
    • Wind from the west (u₁) is 15 m/s. Wind at the east point (u₂) is 10 m/s.
    • Wind from the south (v₁) is 10 m/s. Wind at the north point (v₂) is 5 m/s.
    • Grid spacing (Δx and Δy) is 200 km (200,000 m).
  • Calculation:
    • Zonal Term: (10 – 15) / 200,000 = -2.5 x 10⁻⁵ s⁻¹
    • Meridional Term: (5 – 10) / 200,000 = -2.5 x 10⁻⁵ s⁻¹
  • Result: Total Divergence = -5.0 x 10⁻⁵ s⁻¹. The negative sign indicates strong convergence, which would force air to rise, likely causing cloud formation. You can explore similar scenarios with our {related_keywords} tool.

Example 2: Upper-Level Divergence

At the top of a thunderstorm, air spreads out rapidly. This is a region of strong divergence aloft.

  • Inputs:
    • Wind at the west point (u₁) is 20 m/s. Wind at the east point (u₂) is 30 m/s.
    • Wind at the south point (v₁) is 5 m/s. Wind at the north point (v₂) is 15 m/s.
    • Grid spacing (Δx and Δy) is 100 km (100,000 m).
  • Calculation:
    • Zonal Term: (30 – 20) / 100,000 = 10 x 10⁻⁵ s⁻¹ = 1.0 x 10⁻⁴ s⁻¹
    • Meridional Term: (15 – 5) / 100,000 = 10 x 10⁻⁵ s⁻¹ = 1.0 x 10⁻⁴ s⁻¹
  • Result: Total Divergence = 2.0 x 10⁻⁴ s⁻¹. This strong positive value indicates divergence, which helps to “pull” air up from below, sustaining the storm. Understanding these dynamics is crucial, similar to how one might use a {related_keywords} to model financial growth.

How to Use This Horizontal Divergence Calculator

  1. Enter Wind Components: Input the zonal (u) and meridional (v) wind speeds at four points defining a rectangular grid: east, west, north, and south.
  2. Specify Grid Spacing: Enter the distance (Δx and Δy) between your measurement points. For accurate results, ensure these distances correspond to the locations where the wind speeds were measured.
  3. Select Units: Choose the appropriate units for your input wind speed (m/s, knots, mph) and distance (km, m). The calculator will handle the conversion automatically. A {related_keywords} can be just as important for getting the right inputs.
  4. Interpret the Results: The calculator provides the total horizontal divergence, along with the individual contributions from the zonal and meridional wind fields. A positive result is divergence; a negative result is convergence. The chart and table provide further insight into the sensitivity of the calculation.

Key Factors That Affect Horizontal Divergence

  • Wind Speed Gradient: The primary driver. The greater the change in wind speed over a given distance, the stronger the divergence or convergence.
  • Grid Spacing (Scale): The value of divergence is highly dependent on the scale (the size of Δx and Δy). A value calculated over 10 km will be different from one over 500 km. It’s crucial to match the scale to the weather phenomenon being studied (e.g., mesoscale for thunderstorms, synoptic scale for large pressure systems).
  • Jet Streaks: These are areas of maximum wind speed within the jet stream. The entrance and exit regions of jet streaks are prime locations for divergence and convergence, making them critical for storm development.
  • Friction: Near the Earth’s surface, friction slows down the wind. This can cause air to “pile up” (converge) as it flows from a low-friction area (like the ocean) to a high-friction area (like a forested landscape).
  • Topography: Mountains and valleys force air to move around and over them, creating localized areas of strong convergence and divergence. For instance, wind flowing into a narrowing valley is forced to converge. This is a key part of {related_keywords}.
  • Coriolis Force: While not a direct term in the divergence equation, the Coriolis force governs the large-scale wind patterns (like geostrophic wind) that create the wind gradients in the first place.

Frequently Asked Questions (FAQ)

What is the difference between divergence and convergence?

Divergence is when horizontal airflow spreads out, associated with sinking air and high pressure. Convergence is when horizontal airflow comes together, associated with rising air, clouds, and low pressure. Convergence is simply negative divergence.

What are typical values for horizontal divergence in the atmosphere?

For large-scale (synoptic) weather systems, typical values are around 10⁻⁵ s⁻¹. For smaller, more intense systems like thunderstorms (mesoscale), values can be 10⁻⁴ s⁻¹ or even higher.

Why use the finite difference method?

It provides a practical way to approximate the true, differential nature of divergence using data from discrete points, which is how weather data is collected and stored in models.

What does a divergence of zero mean?

It means the flow is non-divergent. The amount of air entering the horizontal area is exactly equal to the amount leaving. This does not mean there is no wind, only that the wind field is not causing a net accumulation or loss of mass in the area.

How does horizontal divergence relate to vertical motion?

Mass conservation requires that horizontal convergence in the lower atmosphere be balanced by rising air. Conversely, horizontal divergence near the surface is balanced by sinking air. The opposite is true in the upper atmosphere to complete the circulation.

What units should I use for calculating horizontal divergence?

The standard SI units are meters per second (m/s) for wind and meters (m) for distance. This yields a result in inverse seconds (s⁻¹). Our calculator allows you to input other common units and converts them for you.

p class=”faq-question”>Can this method be used for oceanography?

Yes, the exact same principle applies to calculating the divergence of ocean currents. The values and scales will differ, but the underlying mathematical concept is identical.

What are the limitations of this calculator?

This is a simplified, two-dimensional calculator. It assumes a uniform grid and uses a first-order finite difference scheme. Real-world atmospheric models use more complex grids and higher-order numerical methods for greater accuracy.

Related Tools and Internal Resources

Explore other concepts in atmospheric science and fluid dynamics with our related calculators and articles:

© 2026 Your Website. All Rights Reserved.



Leave a Reply

Your email address will not be published. Required fields are marked *