Equations are presented for calculating the fields from a bunched beam that penetrate into the layers of a beamtube of circular cross section. Starting from the radial wave impedance of an outer surface, the wave functions in inner layers are calculated numerically to obtain field strengths or the longitudinal beam impedance. Examples of a vertex-detector region and of an injection kicker are given.