Infragravity-wave dynamics in a barred coastal region, a numerical study