Investigations on the porous media equations and resistance coefficients for coastal structures