A free boundary approach to solve the equilibrium equations of a membrane