The equations of carafe.spatial.grid, declared on the code that implements them and checked by the tests.
The in-plane curl of the normal field a on the cell centres.
- cut
- B=(∂ya, −∂xa)
- rz
- B=(−∂za, ra+∂ra)
- Assumes
numpy.gradient on the cell centres: second order inside, one-sided at the edges
The curl-curl of the normal field, integrated over the cells (symmetric).
- operator
- (Ka)i=Vi(∇×∇×a)i,∇×∇×a=−∇2az (cut),−(∇2−r21)aϕ (r–z)
- energy
- aTKa=f∑cfμˉf(w+a+−w−a−)2
- metric
- cut: w=1, c=Δℓf;radial face: w=r, c=rfΔ2πdz;axial face: w=1, c=Δ2πrdr
- axis
- aϕ=0 on the axis:c=4πdz, w=1 for the half cell (Bz=2a/r0)
- Order
- cut: 2, rz: 2
- Assumes
- symmetric positive; Δ the distance between the two centres; μˉf the mean of the face coefficient's two cells
- Dirichlet edges add cw2 to the diagonal over the half-cell distance; a face to an inactive cell is a Dirichlet face
- with the axis term a uniform Bz stays a null field of the operator
The faces of the cells for finite-volume transport (see TransportFaces).
- areas
- Af=Δy (cut);Af=2πrfΔz (radial),Af=2πrcΔr=π(r12−r02) (axial)
- distances
- δlow=xf−xlow,δhigh=xhigh−xf
- Assumes
- a domain edge is a wall face, except a
neumann edge (symmetry), a periodic seam and the axis