I'm writing a Finite element method based on Whitney p-forms, where the solution coefficients are defined on edges and faces.
For example, the electric field can be approximated as
vec(E) = sum e_i vec(W)_i
where the sum is over the edges (e.g. 3 for a triangle).
If I have a function that returns Ex, Ey, and Ez in the computational domain, how do I obtain the e_i coefficients?