A new analytical solution for the calculation of flexural rigidity