Edge space
The equations of patchwork.spaces.edges, declared on the code that implements them and checked by the tests.
CompositeEdges
classsourceThe edges of the leaf cells of a 1D, 2D or 3D hierarchy, and the operators on them.
- gradient
- hanging edges
- commuting
- nodal operator
- Assumes
- 2D and 3D Cartesian; edges addressed on the finest lattice
- a coarse edge and the fine edges that tile it are different edges; the fine ones hang, as do (3D) fine edges inside a coarse face
- References
- H. Whitney, Geometric Integration Theory, Princeton University Press (1957)
- Bossavit, IEE Proc. A 135, 493 (1988)
- Built from
deposit_paths
functionsourceThe current of charges moving along straight paths, integrated over the paths: (n1,).
- pieces
- continuity
- product
- work
- Assumes
- straight paths, clipped to the leaf cells of every patch and integrated on the patch's block by mpifield's compiled path deposit, which cuts them at its cell faces and integrates the edge functions (linear along a piece in 2D, quadratic in 3D) exactly;
_deposit_pieces(Simpson's rule on the finest-lattice pieces) is the NumPy reference - the bilinear node deposit (
CompositeNodes.deposit); conserved across patch edges and periodic seams to round-off - pieces outside the domain deposit nothing
- straight paths, clipped to the leaf cells of every patch and integrated on the patch's block by mpifield's compiled path deposit, which cuts them at its cell faces and integrates the edge functions (linear along a piece in 2D, quadratic in 3D) exactly;
- References
- Built from
depositmpifield.edges.EdgeWeighting
evaluation
functionsourceThe field of an edge field at points (ndim, k): one (k, n1) matrix per axis.
- whitney
- deposit
- Assumes
- the fractions from the lower-left corner of the leaf cell; the tangential component is constant along every edge
- apply to edge values with their hanging edges filled (); a point outside the domain gets zero
- References
mass
functionsourceThe edge mass matrix M1: e^T M1 e is the integral of |E|^2.
- energy
- lumped
- consistent
- Assumes
- lumped: the vertex (trapezoidal) quadrature, diagonal; its entries are the edge conductances of the nodal stencil
- consistent: the exact integral of the products of the linear profiles
- for a field on hanging edges use
- Built from