The two-dimensional case is, of course, very similar to the three-dimensional one. Equations (5.35) and (5.36) correspond to
The boundary of the two-dimensional domain is divided into a Dirichlet boundary and a Neumann boundary for (5.72) and into a Dirichlet boundary and a Neumann boundary for (5.73)
The Dirichlet boundary conditions define values for on the nodes belonging to the Dirichlet boundary or for the tangential component of on the edges belonging to the Dirichlet boundary . The finite element analysis is performed as for the three-dimensional case: The unknown functions in (5.72) and (5.73) are substituted by their approximations, the corresponding residua are weighted by vector and scalar trial functions, and the weak formulation (the law of Gauß) is applied. Thereby the boundary conditions on and arise analogously to (5.29) and (5.31) and read
Often the shape and the dimensions of the simulation domain are chosen to assume the boundary conditions and are zero. For example this is the case, if the electric field is normal to the Neumann boundary or if the magnetic flux has no normal component to the Neumann boundary , or if the simulation domain is sufficiently large to assume that is zero on and is zero on . If the boundary conditions and have to be considered, for example to combine the finite element analysis with the boundary element method, the corresponding element matrices are calculated in the Appendix in Section B.1, Subsection B.2.1 and Subsection B.2.2.
The domain is discretized in triangular elements and the boundary in curves, respectively.