Computational Model for Wave Attenuation by Flexible Vegetation