FEA code for 2d bar and continuous elements