Dhi Calculator

.dhi-calc-container { padding: 25px; background-color: #f9f9f9; border: 2px solid #2c3e50; border-radius: 10px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 600px; margin: 20px auto; box-shadow: 0 4px 6px rgba(0,0,0,0.1); } .dhi-calc-header { text-align: center; margin-bottom: 20px; } .dhi-calc-header h2 { color: #2c3e50; margin-bottom: 5px; font-size: 24px; } .dhi-calc-group { margin-bottom: 15px; } .dhi-calc-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #34495e; } .dhi-calc-group input { width: 100%; padding: 10px; border: 1px solid #bdc3c7; border-radius: 5px; font-size: 16px; box-sizing: border-box; } .dhi-calc-btn { width: 100%; padding: 15px; background-color: #e67e22; color: white; border: none; border-radius: 5px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background-color 0.3s; } .dhi-calc-btn:hover { background-color: #d35400; } .dhi-calc-result { margin-top: 20px; padding: 15px; background-color: #ecf0f1; border-radius: 5px; display: none; } .dhi-calc-result h3 { margin: 0; color: #2c3e50; font-size: 18px; text-align: center; } .dhi-calc-value { display: block; font-size: 28px; color: #e67e22; text-align: center; font-weight: 800; margin-top: 10px; } .dhi-article { max-width: 800px; margin: 40px auto; line-height: 1.6; color: #333; } .dhi-article h2 { color: #2c3e50; border-left: 5px solid #e67e22; padding-left: 15px; margin-top: 30px; } .dhi-article table { width: 100%; border-collapse: collapse; margin: 20px 0; } .dhi-article table td, .dhi-article table th { border: 1px solid #ddd; padding: 12px; } .dhi-article table th { background-color: #f2f2f2; }

Diffuse Horizontal Irradiance (DHI) Calculator

Calculate solar components for energy modeling

Calculated Diffuse Horizontal Irradiance:

0 W/m²

Understanding Diffuse Horizontal Irradiance (DHI)

In solar resource assessment and photovoltaic (PV) engineering, understanding the components of sunlight is critical for predicting energy yield. The Diffuse Horizontal Irradiance (DHI) represents the amount of solar radiation received per unit area by a horizontal surface that does not arrive on a direct path from the sun, but has been scattered by molecules and particles in the atmosphere.

The Fundamental Solar Irradiance Equation

To calculate DHI, we use the relationship between the three main components of solar radiation: Global Horizontal Irradiance (GHI), Direct Normal Irradiance (DNI), and the Solar Zenith Angle. The formula is expressed as:

GHI = DHI + DNI × cos(θ)

Rearranging this to solve for DHI:

DHI = GHI – (DNI × cos(θ))

Component Definitions

  • GHI (Global Horizontal Irradiance): The total amount of shortwave radiation received from above by a horizontal surface.
  • DNI (Direct Normal Irradiance): The amount of solar radiation received per unit area by a surface that is always held perpendicular (or normal) to the rays that come in a straight line from the direction of the sun.
  • Solar Zenith Angle (θ): The angle between the sun's rays and the vertical (zenith). When the sun is directly overhead, the zenith angle is 0°.

Practical Example Calculation

Imagine a solar farm located in a semi-arid region at solar noon. The sensors provide the following data:

Parameter Value
Global Horizontal Irradiance (GHI) 1000 W/m²
Direct Normal Irradiance (DNI) 900 W/m²
Solar Zenith Angle 30°

Step-by-Step Logic:

  1. Convert the Zenith Angle to Radians: 30° × (π / 180) = 0.5236 rad.
  2. Calculate the cosine: cos(0.5236) ≈ 0.866.
  3. Calculate the horizontal component of DNI: 900 × 0.866 = 779.4 W/m².
  4. Subtract from GHI: 1000 – 779.4 = 220.6 W/m².

In this case, the DHI is 220.6 W/m², indicating the amount of scattered light hitting the panels.

Importance in Solar Energy

Accurate DHI data is vital for:

  • Bifacial Solar Panels: These panels capture reflected and diffuse light on their rear side; knowing DHI helps estimate back-side gain.
  • Concentrated Solar Power (CSP): CSP systems primarily use DNI. DHI tells engineers how much energy is being "lost" to atmospheric scattering.
  • Atmospheric Studies: High DHI values relative to GHI often indicate heavy cloud cover, pollution, or high aerosol optical depth.

function calculateDHI() { var ghi = parseFloat(document.getElementById("ghiInput").value); var dni = parseFloat(document.getElementById("dniInput").value); var zenith = parseFloat(document.getElementById("zenithInput").value); var resultBox = document.getElementById("resultBox"); var dhiDisplay = document.getElementById("dhiValue"); var errorNote = document.getElementById("errorNote"); // Reset displays errorNote.innerHTML = ""; if (isNaN(ghi) || isNaN(dni) || isNaN(zenith)) { alert("Please enter valid numeric values for all fields."); return; } // Convert degrees to radians for JS Math.cos var radians = zenith * (Math.PI / 180); var cosTheta = Math.cos(radians); // Calculate DHI: DHI = GHI – (DNI * cos(theta)) var dhi = ghi – (dni * cosTheta); // Formatting result dhiDisplay.innerHTML = dhi.toFixed(2) + " W/m²"; resultBox.style.display = "block"; // Logic Check: DHI cannot be greater than GHI, and GHI shouldn't be negative if (dhi ghi) { errorNote.innerHTML = "Note: Calculated DHI exceeds GHI. This is physically impossible and suggests an error in the input data."; } }

Leave a Reply

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