Skip to content
Projects

Edge grid

The equations of carafe.spatial.edges, declared on the code that implements them and checked by the tests.

EdgeGrid

classsource

Edges and faces of a uniform Cartesian grid of cells[0] x cells[1] x cells[2].

staggering
ae=∫eA⋅dl,bf=∫fB⋅dS=(Ca)f,CG=0a_e = \int_e\mathbf A\cdot d\mathbf l, \qquad b_f = \int_f\mathbf B\cdot d\mathbf S = (C a)_f, \qquad C G = 0
hodge
edges: Le, Ae∗ (dual face);faces: Af, Lf∗ (dual edge)\text{edges: } L_e,\ A^*_e \ (\text{dual face}); \qquad \text{faces: } A_f,\ L^*_f \ (\text{dual edge})
boundaries
dirichlet: A×n=0;natural: H×n=0;periodic\text{dirichlet: } \mathbf A\times\mathbf n = 0; \qquad \text{natural: } \mathbf H\times\mathbf n = 0; \qquad \text{periodic}
Assumes
  • a uniform Cartesian grid; CC, GG incidence matrices (entries 0,±10, \pm1); the metric only in the diagonal Hodge matrices
  • dual areas halved once per boundary plane an edge lies in, dual lengths halved on a boundary
References