Thermal vibrational analysis for simply supported beam and clamped beam