Skip to main content

Module surface_calculus

Module surface_calculus 

Source
Expand description

Differential operators on surface domains: surface gradient, divergence and curl, and the Laplace-Beltrami operator.

On a surface parametrised by its two axes (u₁, u₂) with scale factors (h₁, h₂) and unit tangents û₁ × û₂ = n̂ (plane: x̂, ŷ, ẑ; sphere: θ̂, φ̂, r̂; cylinder: φ̂, ẑ, ρ̂):

  • ∇ₛ f = (1/h₁) ∂f/∂u₁ û₁ + (1/h₂) ∂f/∂u₂ û₂
  • ∇ₛ·F = 1/(h₁h₂) [∂(h₂F₁)/∂u₁ + ∂(h₁F₂)/∂u₂]
  • n̂·∇×F = 1/(h₁h₂) [∂(h₂F₂)/∂u₁ - ∂(h₁F₁)/∂u₂] (the surface curl, a scalar)
  • ∇ₛ×(f n̂) = ∇ₛf × n̂ (the vector surface curl of a scalar)
  • Δₛ f = ∇ₛ·∇ₛ f (Laplace-Beltrami)

Vector operators act on the tangential part of a field (any normal component is ignored), with derivatives from the same Lagrange stencils as the volume operators. The far-field sphere is treated as the unit sphere of directions (angular operators, h = (1, sin θ)). Samples where a scale factor vanishes (the poles of a uniform sphere grid) are returned as NaN; Gauss-Legendre polar grids avoid them. Vector results are in the linear basis of the domain’s system.

See the book entry Fields on grids.