# 2D formulation for Magnetostatic Problems

From KratosWiki

The 2D Magnetostatic Poisson's equation given by the governing PDE and its boundary conditions:

can be written as (see the General formulation for Magnetostatic Problems):

with (* n* is the number of nodes of the element):

## 2D formulation for Triangular Elements

After applying the numerical integration for triangular elements by using the natural coordinates, we obtain:

### Stiffness Matrix K^{(e)}

### Source Vector f^{(e)}

**Linear case**(**n**=1 integration point):_{p}

**Quadratic case**(**n**=3 integration points):_{p}