The equations of patchwork.spaces.nodes, declared on the code that implements them and checked by the tests.
The nodes and leaf cells of a hierarchy, and the maps to its patches.
- lattice
- k=iLrLmax−L
- hanging
- ϕhanging=(1−sk)ϕa+skϕb(from the ends a,b of the coarsest edge it lies in, span s)
- composition
- T←TTuntil no master hangs (at most Lmax+1 times)
- control volume
- Vp=K∋p∑2d∣K∣
- Assumes
- nodes shared by patches are one unknown; a periodic axis wraps the lattice
- in 1D no node hangs: a coarse-fine interface is a node of both levels
- a node is owned by the lowest rank of its leaf cells
The charges of point particles at points (ndim, k) on the nodes: (n,).
- bilinear
- Qc=k∑qkwc(xk),w00=(1−ξ)(1−η), w10=ξ(1−η), w01=(1−ξ)η, w11=ξη
- transpose
- Q=E⊤q,Ekc=wc(xk)(evaluation)
- hanging
- QF=(T⊤Q)F(in NodalPoisson.solve(charge=)): the total is kept
- Assumes
- (ξ,η) the fractions of the point in its leaf cell, from its lower-left corner; linear weights in 1D
- points outside the domain deposit nothing
The node mass matrix M0: u^T M0 u is the integral of u_h**2.
- mass
- u⊤M0u=∫uh2dV,M0=K∑PK⊤M0,KPK
- lumped
- M0=diag(Vp)
- Assumes
- on all nodes, hanging ones included: for the free nodes use T⊤M0T
- Cartesian measure, also on an (r,z) hierarchy
- Built from