Dirichlet condition for tangential/normal component

Hello everyone,

i’m still a bit new to NGSolve, so despite your (quite enjoyable) i-tutorial there are still some questions arrising.

I wanted to solve the Maxwell-equations for the electric field E on some domain on which i need to impose the boundary condition given by the vector product

n x E = 0

on parts of the domain boundary. How do i implement this in NGSolve? The boundaries are already labelled accordingly.


fes = HCurl(mesh, order=2, dirichlet="dirbnd")

Homogenous Dirichlet bc for H(curl) means tangential component 0.