Skip to main content

bsecureengineering.com

BSecure Engineering

Solar Panel Angle Optimizer

Explore how sun position and panel tilt change the efficiency across a hill, a solar farm terrain or a roof.

LowHighMost efficient spotDrag to rotate
Most efficient spot-
Peak efficiency-
Angle of incidence-
Directional derivative Dug-
Gradient (gx, gy)-
Surface average-

How the optimizer works (the maths)

The ground is modelled as a surface z = f(x, y). Its partial derivatives fx and fy give the slope towards east and north, and together form the gradient ∇f = (fx, fy).

A panel with tilt τ facing direction α adds a constant slope, so the panel surface has gradient ∇g = ∇f − tanτ · d with d = (sinα, cosα).

The surface normal is n = (−gx, −gy, 1) / √(1 + gx² + gy²) and the sun direction is s = (cosφ sinθ, cosφ cosθ, sinφ).

Efficiency is the cosine of the angle between them, E = n · s. With u the horizontal unit vector towards the sun, this equals E = (sinφ − cosφ · Dug) / √(1 + |∇g|²), where Dug = ∇g · u is the directional derivative of the panel surface towards the sun. The lower this slope, the more sunlight the panel receives. The bright yellow area is where it is lowest.

Current surface:

Simplified model: direct sunlight only, with no shading, clouds or atmospheric losses. Use it to compare orientations; a final design needs a site survey.

Want This Analysis for Your Own Roof or Site?

Our engineers survey your property and design the layout that gets the most from the sun.