Cracking simulation in a plain structure using the finite element method