Level set applied to a cantilever beam