Generalized Shape Optimization Using Xfem And Level Set Description