A Piecewise Model for Gravitational Waves from Young Neutron Stars