Finite element analysis package for inhomogeneous H and E-plane junctions