Skip to main content

Module structured

Module structured 

Source
Expand description

Structured surface and volume domains.

A Domain is a tensor-product grid of Axis samples in a native coordinate system. It knows the position of every sample and the quadrature weight of every sample with the Jacobian included, so Σ w f approximates ∫ f dA (surfaces), ∫ f dV (volumes) or ∫ f dΩ (the far-field sphere). Integrals elsewhere in the crate always use these weights and never form a Jacobian themselves.

KindAxes (in order)Element
planex, y at height z₀dx dy
sphereθ, φ at radius RR² sin θ dθ dφ
far-field sphereθ, φ (directions)sin θ dθ dφ (solid angle)
cylinderφ, z at radius ρ₀ρ₀ dφ dz
boxx, y, zdx dy dz
spherical shellr, θ, φr² sin θ dr dθ dφ
cylindrical volumeρ, φ, zρ dρ dφ dz

Azimuth axes must be periodic with period 2π; polar axes must lie within [0, π]; radii must be non-negative. Samples are stored row-major (the last axis varies fastest).

Structs§

Domain
A tensor-product grid with quadrature weights; see the module documentation.

Enums§

DomainKind
The geometry a Domain describes.