Elastic waves in a bar with noncircle cross section