write grid and deformation into a single file; fix geometric moments of the rod, to really model a quadratic cross-section [[Imported from SVN: r1537]]